gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudOrgpolicyV2AlternatePolicySpec extends \Google\Model
{
/**
* Reference to the launch that will be used while audit logging and to
* control the launch. Set only in the alternate policy.
*
* @var string
*/
public $launch;
protected $specType = GoogleCloudOrgpolicyV2PolicySpec::class;
protected $specDataType = '';
/**
* Reference to the launch that will be used while audit logging and to
* control the launch. Set only in the alternate policy.
*
* @param string $launch
*/
public function setLaunch($launch)
{
$this->launch = $launch;
}
/**
* @return string
*/
public function getLaunch()
{
return $this->launch;
}
/**
* Specify constraint for configurations of Google Cloud resources.
*
* @param GoogleCloudOrgpolicyV2PolicySpec $spec
*/
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_PolicySimulator_GoogleCloudOrgpolicyV2AlternatePolicySpec');
@@ -0,0 +1,248 @@
<?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\PolicySimulator;
class GoogleCloudOrgpolicyV2CustomConstraint extends \Google\Collection
{
/**
* This is only used for distinguishing unset values, and results in an error
* if used.
*/
public const ACTION_TYPE_ACTION_TYPE_UNSPECIFIED = 'ACTION_TYPE_UNSPECIFIED';
/**
* Allowed action type.
*/
public const ACTION_TYPE_ALLOW = 'ALLOW';
/**
* Deny action type.
*/
public const ACTION_TYPE_DENY = 'DENY';
protected $collection_key = 'resourceTypes';
/**
* Allow or deny type.
*
* @var string
*/
public $actionType;
/**
* A Common Expression Language (CEL) condition which is used in the
* evaluation of the constraint. For example:
* `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
* `resource.management.auto_upgrade == true` The max length of the condition
* is 1000 characters.
*
* @var string
*/
public $condition;
/**
* Detailed information about this custom policy constraint. The max length of
* the description is 2000 characters.
*
* @var string
*/
public $description;
/**
* One line display name for the UI. The max length of the display_name is 200
* characters.
*
* @var string
*/
public $displayName;
/**
* All the operations being applied for this constraint.
*
* @var string[]
*/
public $methodTypes;
/**
* Immutable. Name of the constraint. This is unique within the organization.
* The name must be of the form: *
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
* The max length is 71 characters and the minimum length is 1. Note that the
* prefix `organizations/{organization_id}/customConstraints/custom.` is not
* counted.
*
* @var string
*/
public $name;
/**
* Immutable. The resource instance type on which this policy applies. Format
* will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
*
* @var string[]
*/
public $resourceTypes;
/**
* Output only. The last time this custom constraint was updated. This
* represents the last time that the `CreateCustomConstraint` or
* `UpdateCustomConstraint` methods were called.
*
* @var string
*/
public $updateTime;
/**
* Allow or deny type.
*
* Accepted values: ACTION_TYPE_UNSPECIFIED, ALLOW, DENY
*
* @param self::ACTION_TYPE_* $actionType
*/
public function setActionType($actionType)
{
$this->actionType = $actionType;
}
/**
* @return self::ACTION_TYPE_*
*/
public function getActionType()
{
return $this->actionType;
}
/**
* A Common Expression Language (CEL) condition which is used in the
* evaluation of the constraint. For example:
* `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
* `resource.management.auto_upgrade == true` The max length of the condition
* is 1000 characters.
*
* @param string $condition
*/
public function setCondition($condition)
{
$this->condition = $condition;
}
/**
* @return string
*/
public function getCondition()
{
return $this->condition;
}
/**
* Detailed information about this custom policy constraint. The max length of
* the description is 2000 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* One line display name for the UI. The max length of the display_name is 200
* characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* All the operations being applied for this constraint.
*
* @param string[] $methodTypes
*/
public function setMethodTypes($methodTypes)
{
$this->methodTypes = $methodTypes;
}
/**
* @return string[]
*/
public function getMethodTypes()
{
return $this->methodTypes;
}
/**
* Immutable. Name of the constraint. This is unique within the organization.
* The name must be of the form: *
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
* The max length is 71 characters and the minimum length is 1. Note that the
* prefix `organizations/{organization_id}/customConstraints/custom.` is not
* counted.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Immutable. The resource instance type on which this policy applies. Format
* will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
*
* @param string[] $resourceTypes
*/
public function setResourceTypes($resourceTypes)
{
$this->resourceTypes = $resourceTypes;
}
/**
* @return string[]
*/
public function getResourceTypes()
{
return $this->resourceTypes;
}
/**
* Output only. The last time this custom constraint was updated. This
* represents the last time that the `CreateCustomConstraint` or
* `UpdateCustomConstraint` methods were called.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2CustomConstraint::class, 'Google_Service_PolicySimulator_GoogleCloudOrgpolicyV2CustomConstraint');
@@ -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\PolicySimulator;
class GoogleCloudOrgpolicyV2Policy extends \Google\Model
{
protected $alternateType = GoogleCloudOrgpolicyV2AlternatePolicySpec::class;
protected $alternateDataType = '';
protected $dryRunSpecType = GoogleCloudOrgpolicyV2PolicySpec::class;
protected $dryRunSpecDataType = '';
/**
* Optional. An opaque tag indicating the current state of the policy, used
* for concurrency control. This entity tag (ETag) is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Immutable. The resource name of the policy. Must be one of the following
* forms, where `constraint_name` is the name of the constraint that 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.
*
* @var string
*/
public $name;
protected $specType = GoogleCloudOrgpolicyV2PolicySpec::class;
protected $specDataType = '';
/**
* Deprecated.
*
* @deprecated
* @param GoogleCloudOrgpolicyV2AlternatePolicySpec $alternate
*/
public function setAlternate(GoogleCloudOrgpolicyV2AlternatePolicySpec $alternate)
{
$this->alternate = $alternate;
}
/**
* @deprecated
* @return GoogleCloudOrgpolicyV2AlternatePolicySpec
*/
public function getAlternate()
{
return $this->alternate;
}
/**
* Dry-run policy. Audit-only policy, can be used to monitor how the policy
* would have impacted the existing and future resources if it's enforced.
*
* @param GoogleCloudOrgpolicyV2PolicySpec $dryRunSpec
*/
public function setDryRunSpec(GoogleCloudOrgpolicyV2PolicySpec $dryRunSpec)
{
$this->dryRunSpec = $dryRunSpec;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpec
*/
public function getDryRunSpec()
{
return $this->dryRunSpec;
}
/**
* Optional. An opaque tag indicating the current state of the policy, used
* for concurrency control. This entity tag (ETag) is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Immutable. The resource name of the policy. Must be one of the following
* forms, where `constraint_name` is the name of the constraint that 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 string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Basic information about the organization policy.
*
* @param GoogleCloudOrgpolicyV2PolicySpec $spec
*/
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_PolicySimulator_GoogleCloudOrgpolicyV2Policy');
@@ -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\PolicySimulator;
class GoogleCloudOrgpolicyV2PolicySpec extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* An opaque tag indicating the current version of the policySpec, used for
* concurrency control. This field is ignored if used in a `CreatePolicy`
* request. When the policy is returned from either a `GetPolicy` or a
* `ListPolicies` request, this entity tag (ETag) indicates the version of the
* current policySpec to use when executing a read-modify-write loop. When the
* policy is returned from a `GetEffectivePolicy` request, the ETag will be
* unset.
*
* @var string
*/
public $etag;
/**
* Determines the inheritance behavior for this policy. If
* `inherit_from_parent` is true, policy rules set higher up in the hierarchy
* (up to the closest root) are inherited and present in the effective policy.
* If it is false, then no rules are inherited, and this policy becomes the
* new root for evaluation. This field can be set only for policies that
* configure list constraints.
*
* @var bool
*/
public $inheritFromParent;
/**
* Ignores policies set above this resource and restores the
* `constraint_default` enforcement behavior of the specific constraint at
* this resource. This field can be set in policies for either list or boolean
* constraints. If set, `rules` must be empty and `inherit_from_parent` must
* be set to false.
*
* @var bool
*/
public $reset;
protected $rulesType = GoogleCloudOrgpolicyV2PolicySpecPolicyRule::class;
protected $rulesDataType = 'array';
/**
* Output only. The time stamp this was previously updated. This represents
* the last time a call to `CreatePolicy` or `UpdatePolicy` was made for that
* policy.
*
* @var string
*/
public $updateTime;
/**
* An opaque tag indicating the current version of the policySpec, used for
* concurrency control. This field is ignored if used in a `CreatePolicy`
* request. When the policy is returned from either a `GetPolicy` or a
* `ListPolicies` request, this entity tag (ETag) indicates the version of the
* current policySpec to use when executing a read-modify-write loop. When the
* policy is returned from a `GetEffectivePolicy` request, the ETag will be
* unset.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Determines the inheritance behavior for this policy. If
* `inherit_from_parent` is true, policy rules set higher up in the hierarchy
* (up to the closest root) are inherited and present in the effective policy.
* If it is false, then no rules are inherited, and this policy becomes the
* new root for evaluation. This field can be set only for policies that
* configure list constraints.
*
* @param bool $inheritFromParent
*/
public function setInheritFromParent($inheritFromParent)
{
$this->inheritFromParent = $inheritFromParent;
}
/**
* @return bool
*/
public function getInheritFromParent()
{
return $this->inheritFromParent;
}
/**
* Ignores policies set above this resource and restores the
* `constraint_default` enforcement behavior of the specific constraint at
* this resource. This field can be set in policies for either list or boolean
* constraints. If set, `rules` must be empty and `inherit_from_parent` must
* be set to false.
*
* @param bool $reset
*/
public function setReset($reset)
{
$this->reset = $reset;
}
/**
* @return bool
*/
public function getReset()
{
return $this->reset;
}
/**
* In policies for boolean constraints, the following requirements apply: -
* There must be exactly one policy rule where a condition is unset. - Boolean
* policy rules with conditions must set `enforced` to the opposite of the
* policy rule without a condition. - During policy evaluation, policy rules
* with conditions that are true for a target resource take precedence.
*
* @param GoogleCloudOrgpolicyV2PolicySpecPolicyRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return GoogleCloudOrgpolicyV2PolicySpecPolicyRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Output only. The time stamp this was previously updated. This represents
* the last time a call to `CreatePolicy` or `UpdatePolicy` was made for that
* policy.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudOrgpolicyV2PolicySpec::class, 'Google_Service_PolicySimulator_GoogleCloudOrgpolicyV2PolicySpec');
@@ -0,0 +1,189 @@
<?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\PolicySimulator;
class GoogleCloudOrgpolicyV2PolicySpecPolicyRule extends \Google\Model
{
/**
* Setting this to true means that all values are allowed. This field can be
* set only in policies for list constraints.
*
* @var bool
*/
public $allowAll;
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
/**
* Setting this to true means that all values are denied. This field can be
* set only in policies for list constraints.
*
* @var bool
*/
public $denyAll;
/**
* If `true`, then the policy is enforced. If `false`, then any configuration
* is acceptable. This field can be set in policies for boolean constraints,
* custom constraints and managed constraints.
*
* @var bool
*/
public $enforce;
/**
* Optional. Required for managed constraints if parameters are defined.
* Passes parameter values when policy enforcement is enabled. Ensure that
* parameter value types match those defined in the constraint definition. For
* example: ``` { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" :
* true } ```
*
* @var array[]
*/
public $parameters;
protected $valuesType = GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::class;
protected $valuesDataType = '';
/**
* Setting this to true means that all values are allowed. This field can be
* set only in policies for list constraints.
*
* @param bool $allowAll
*/
public function setAllowAll($allowAll)
{
$this->allowAll = $allowAll;
}
/**
* @return bool
*/
public function getAllowAll()
{
return $this->allowAll;
}
/**
* A condition that determines whether this rule is used to evaluate the
* policy. When set, the google.type.Expr.expression field must contain 1 to
* 10 subexpressions, joined by the `||` or `&&` operators. Each subexpression
* must use the `resource.matchTag()`, `resource.matchTagId()`,
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression
* Language (CEL) function. The `resource.matchTag()` function takes the
* following arguments: * `key_name`: the namespaced name of the tag key, with
* the organization ID and a slash (`/`) as a prefix; for example,
* `123456789012/environment` * `value_name`: the short name of the tag value
* For example: `resource.matchTag('123456789012/environment, 'prod')` The
* `resource.matchTagId()` function takes the following arguments: * `key_id`:
* the permanent ID of the tag key; for example, `tagKeys/123456789012` *
* `value_id`: the permanent ID of the tag value; for example,
* `tagValues/567890123456` For example:
* `resource.matchTagId('tagKeys/123456789012', 'tagValues/567890123456')` The
* `resource.hasTagKey()` function takes the following argument: * `key_name`:
* the namespaced name of the tag key, with the organization ID and a slash
* (`/`) as a prefix; for example, `123456789012/environment` For example:
* `resource.hasTagKey('123456789012/environment')` The
* `resource.hasTagKeyId()` function takes the following arguments: *
* `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` For example:
* `resource.hasTagKeyId('tagKeys/123456789012')`
*
* @param GoogleTypeExpr $condition
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Setting this to true means that all values are denied. This field can be
* set only in policies for list constraints.
*
* @param bool $denyAll
*/
public function setDenyAll($denyAll)
{
$this->denyAll = $denyAll;
}
/**
* @return bool
*/
public function getDenyAll()
{
return $this->denyAll;
}
/**
* If `true`, then the policy is enforced. If `false`, then any configuration
* is acceptable. This field can be set in policies for boolean constraints,
* custom constraints and managed constraints.
*
* @param bool $enforce
*/
public function setEnforce($enforce)
{
$this->enforce = $enforce;
}
/**
* @return bool
*/
public function getEnforce()
{
return $this->enforce;
}
/**
* Optional. Required for managed constraints if parameters are defined.
* Passes parameter values when policy enforcement is enabled. Ensure that
* parameter value types match those defined in the constraint definition. For
* example: ``` { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" :
* true } ```
*
* @param array[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return array[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* List of values to be used for this policy rule. This field can be set only
* in policies for list constraints.
*
* @param GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues $values
*/
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_PolicySimulator_GoogleCloudOrgpolicyV2PolicySpecPolicyRule');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues extends \Google\Collection
{
protected $collection_key = 'deniedValues';
/**
* List of values allowed at this resource.
*
* @var string[]
*/
public $allowedValues;
/**
* List of values denied at this resource.
*
* @var string[]
*/
public $deniedValues;
/**
* List of values allowed at this resource.
*
* @param string[] $allowedValues
*/
public function setAllowedValues($allowedValues)
{
$this->allowedValues = $allowedValues;
}
/**
* @return string[]
*/
public function getAllowedValues()
{
return $this->allowedValues;
}
/**
* List of values denied at this resource.
*
* @param string[] $deniedValues
*/
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_PolicySimulator_GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues');
@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1AccessStateDiff extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const ACCESS_CHANGE_ACCESS_CHANGE_TYPE_UNSPECIFIED = 'ACCESS_CHANGE_TYPE_UNSPECIFIED';
/**
* The principal's access did not change. This includes the case where both
* baseline and simulated are UNKNOWN, but the unknown information is
* equivalent.
*/
public const ACCESS_CHANGE_NO_CHANGE = 'NO_CHANGE';
/**
* The principal's access under both the current policies and the proposed
* policies is `UNKNOWN`, but the unknown information differs between them.
*/
public const ACCESS_CHANGE_UNKNOWN_CHANGE = 'UNKNOWN_CHANGE';
/**
* The principal had access under the current policies (`GRANTED`), but will
* no longer have access after the proposed changes (`NOT_GRANTED`).
*/
public const ACCESS_CHANGE_ACCESS_REVOKED = 'ACCESS_REVOKED';
/**
* The principal did not have access under the current policies
* (`NOT_GRANTED`), but will have access after the proposed changes
* (`GRANTED`).
*/
public const ACCESS_CHANGE_ACCESS_GAINED = 'ACCESS_GAINED';
/**
* This result can occur for the following reasons: * The principal had access
* under the current policies (`GRANTED`), but their access after the proposed
* changes is `UNKNOWN`. * The principal's access under the current policies
* is `UNKNOWN`, but they will not have access after the proposed changes
* (`NOT_GRANTED`).
*/
public const ACCESS_CHANGE_ACCESS_MAYBE_REVOKED = 'ACCESS_MAYBE_REVOKED';
/**
* This result can occur for the following reasons: * The principal did not
* have access under the current policies (`NOT_GRANTED`), but their access
* after the proposed changes is `UNKNOWN`. * The principal's access under the
* current policies is `UNKNOWN`, but they will have access after the proposed
* changes (`GRANTED`).
*/
public const ACCESS_CHANGE_ACCESS_MAYBE_GAINED = 'ACCESS_MAYBE_GAINED';
/**
* How the principal's access, specified in the AccessState field, changed
* between the current (baseline) policies and proposed (simulated) policies.
*
* @var string
*/
public $accessChange;
protected $baselineType = GoogleCloudPolicysimulatorV1ExplainedAccess::class;
protected $baselineDataType = '';
protected $simulatedType = GoogleCloudPolicysimulatorV1ExplainedAccess::class;
protected $simulatedDataType = '';
/**
* How the principal's access, specified in the AccessState field, changed
* between the current (baseline) policies and proposed (simulated) policies.
*
* Accepted values: ACCESS_CHANGE_TYPE_UNSPECIFIED, NO_CHANGE, UNKNOWN_CHANGE,
* ACCESS_REVOKED, ACCESS_GAINED, ACCESS_MAYBE_REVOKED, ACCESS_MAYBE_GAINED
*
* @param self::ACCESS_CHANGE_* $accessChange
*/
public function setAccessChange($accessChange)
{
$this->accessChange = $accessChange;
}
/**
* @return self::ACCESS_CHANGE_*
*/
public function getAccessChange()
{
return $this->accessChange;
}
/**
* The results of evaluating the access tuple under the current (baseline)
* policies. If the AccessState couldn't be fully evaluated, this field
* explains why.
*
* @param GoogleCloudPolicysimulatorV1ExplainedAccess $baseline
*/
public function setBaseline(GoogleCloudPolicysimulatorV1ExplainedAccess $baseline)
{
$this->baseline = $baseline;
}
/**
* @return GoogleCloudPolicysimulatorV1ExplainedAccess
*/
public function getBaseline()
{
return $this->baseline;
}
/**
* The results of evaluating the access tuple under the proposed (simulated)
* policies. If the AccessState couldn't be fully evaluated, this field
* explains why.
*
* @param GoogleCloudPolicysimulatorV1ExplainedAccess $simulated
*/
public function setSimulated(GoogleCloudPolicysimulatorV1ExplainedAccess $simulated)
{
$this->simulated = $simulated;
}
/**
* @return GoogleCloudPolicysimulatorV1ExplainedAccess
*/
public function getSimulated()
{
return $this->simulated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1AccessStateDiff::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1AccessStateDiff');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1AccessTuple extends \Google\Model
{
/**
* Required. The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-
* central1-a/instances/my-instance`. For examples of full resource names for
* Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
*
* @var string
*/
public $fullResourceName;
/**
* Required. The IAM permission to check for the specified principal and
* resource. For a complete list of IAM permissions, see
* https://cloud.google.com/iam/help/permissions/reference. For a complete
* list of predefined IAM roles and the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
*
* @var string
*/
public $permission;
/**
* Required. The principal whose access you want to check, in the form of the
* email address that represents that principal. For example,
* `alice@example.com` or `my-service-account@my-
* project.iam.gserviceaccount.com`. The principal must be a Google Account or
* a service account. Other types of principals are not supported.
*
* @var string
*/
public $principal;
/**
* Required. The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-
* central1-a/instances/my-instance`. For examples of full resource names for
* Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
*
* @param string $fullResourceName
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* Required. The IAM permission to check for the specified principal and
* resource. For a complete list of IAM permissions, see
* https://cloud.google.com/iam/help/permissions/reference. For a complete
* list of predefined IAM roles and the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
*
* @param string $permission
*/
public function setPermission($permission)
{
$this->permission = $permission;
}
/**
* @return string
*/
public function getPermission()
{
return $this->permission;
}
/**
* Required. The principal whose access you want to check, in the form of the
* email address that represents that principal. For example,
* `alice@example.com` or `my-service-account@my-
* project.iam.gserviceaccount.com`. The principal must be a Google Account or
* a service account. Other types of principals are not supported.
*
* @param string $principal
*/
public function setPrincipal($principal)
{
$this->principal = $principal;
}
/**
* @return string
*/
public function getPrincipal()
{
return $this->principal;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1AccessTuple::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1AccessTuple');
@@ -0,0 +1,284 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1BindingExplanation extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const ACCESS_ACCESS_STATE_UNSPECIFIED = 'ACCESS_STATE_UNSPECIFIED';
/**
* The principal has the permission.
*/
public const ACCESS_GRANTED = 'GRANTED';
/**
* The principal does not have the permission.
*/
public const ACCESS_NOT_GRANTED = 'NOT_GRANTED';
/**
* The principal has the permission only if a condition expression evaluates
* to `true`.
*/
public const ACCESS_UNKNOWN_CONDITIONAL = 'UNKNOWN_CONDITIONAL';
/**
* The user who created the Replay does not have access to all of the policies
* that Policy Simulator needs to evaluate.
*/
public const ACCESS_UNKNOWN_INFO_DENIED = 'UNKNOWN_INFO_DENIED';
/**
* Default value. This value is unused.
*/
public const RELEVANCE_HEURISTIC_RELEVANCE_UNSPECIFIED = 'HEURISTIC_RELEVANCE_UNSPECIFIED';
/**
* The data point has a limited effect on the result. Changing the data point
* is unlikely to affect the overall determination.
*/
public const RELEVANCE_NORMAL = 'NORMAL';
/**
* The data point has a strong effect on the result. Changing the data point
* is likely to affect the overall determination.
*/
public const RELEVANCE_HIGH = 'HIGH';
/**
* Default value. This value is unused.
*/
public const ROLE_PERMISSION_ROLE_PERMISSION_UNSPECIFIED = 'ROLE_PERMISSION_UNSPECIFIED';
/**
* The permission is included in the role.
*/
public const ROLE_PERMISSION_ROLE_PERMISSION_INCLUDED = 'ROLE_PERMISSION_INCLUDED';
/**
* The permission is not included in the role.
*/
public const ROLE_PERMISSION_ROLE_PERMISSION_NOT_INCLUDED = 'ROLE_PERMISSION_NOT_INCLUDED';
/**
* The user who created the Replay is not allowed to access the binding.
*/
public const ROLE_PERMISSION_ROLE_PERMISSION_UNKNOWN_INFO_DENIED = 'ROLE_PERMISSION_UNKNOWN_INFO_DENIED';
/**
* Default value. This value is unused.
*/
public const ROLE_PERMISSION_RELEVANCE_HEURISTIC_RELEVANCE_UNSPECIFIED = 'HEURISTIC_RELEVANCE_UNSPECIFIED';
/**
* The data point has a limited effect on the result. Changing the data point
* is unlikely to affect the overall determination.
*/
public const ROLE_PERMISSION_RELEVANCE_NORMAL = 'NORMAL';
/**
* The data point has a strong effect on the result. Changing the data point
* is likely to affect the overall determination.
*/
public const ROLE_PERMISSION_RELEVANCE_HIGH = 'HIGH';
/**
* Required. Indicates whether _this binding_ provides the specified
* permission to the specified principal for the specified resource. This
* field does _not_ indicate whether the principal actually has the permission
* for the resource. There might be another binding that overrides this
* binding. To determine whether the principal actually has the permission,
* use the `access` field in the TroubleshootIamPolicyResponse.
*
* @var string
*/
public $access;
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
protected $membershipsType = GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership::class;
protected $membershipsDataType = 'map';
/**
* The relevance of this binding to the overall determination for the entire
* policy.
*
* @var string
*/
public $relevance;
/**
* The role that this binding grants. For example,
* `roles/compute.serviceAgent`. For a complete list of predefined IAM roles,
* as well as the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
*
* @var string
*/
public $role;
/**
* Indicates whether the role granted by this binding contains the specified
* permission.
*
* @var string
*/
public $rolePermission;
/**
* The relevance of the permission's existence, or nonexistence, in the role
* to the overall determination for the entire policy.
*
* @var string
*/
public $rolePermissionRelevance;
/**
* Required. Indicates whether _this binding_ provides the specified
* permission to the specified principal for the specified resource. This
* field does _not_ indicate whether the principal actually has the permission
* for the resource. There might be another binding that overrides this
* binding. To determine whether the principal actually has the permission,
* use the `access` field in the TroubleshootIamPolicyResponse.
*
* Accepted values: ACCESS_STATE_UNSPECIFIED, GRANTED, NOT_GRANTED,
* UNKNOWN_CONDITIONAL, UNKNOWN_INFO_DENIED
*
* @param self::ACCESS_* $access
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return self::ACCESS_*
*/
public function getAccess()
{
return $this->access;
}
/**
* A condition expression that prevents this binding from granting access
* unless the expression evaluates to `true`. To learn about IAM Conditions,
* see https://cloud.google.com/iam/docs/conditions-overview.
*
* @param GoogleTypeExpr $condition
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Indicates whether each principal in the binding includes the principal
* specified in the request, either directly or indirectly. Each key
* identifies a principal in the binding, and each value indicates whether the
* principal in the binding includes the principal in the request. For
* example, suppose that a binding includes the following principals: *
* `user:alice@example.com` * `group:product-eng@example.com` The principal in
* the replayed access tuple is `user:bob@example.com`. This user is a
* principal of the group `group:product-eng@example.com`. For the first
* principal in the binding, the key is `user:alice@example.com`, and the
* `membership` field in the value is set to `MEMBERSHIP_NOT_INCLUDED`. For
* the second principal in the binding, the key is `group:product-
* eng@example.com`, and the `membership` field in the value is set to
* `MEMBERSHIP_INCLUDED`.
*
* @param GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership[] $memberships
*/
public function setMemberships($memberships)
{
$this->memberships = $memberships;
}
/**
* @return GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership[]
*/
public function getMemberships()
{
return $this->memberships;
}
/**
* The relevance of this binding to the overall determination for the entire
* policy.
*
* Accepted values: HEURISTIC_RELEVANCE_UNSPECIFIED, NORMAL, HIGH
*
* @param self::RELEVANCE_* $relevance
*/
public function setRelevance($relevance)
{
$this->relevance = $relevance;
}
/**
* @return self::RELEVANCE_*
*/
public function getRelevance()
{
return $this->relevance;
}
/**
* The role that this binding grants. For example,
* `roles/compute.serviceAgent`. For a complete list of predefined IAM roles,
* as well as the permissions in each role, see
* https://cloud.google.com/iam/help/roles/reference.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* Indicates whether the role granted by this binding contains the specified
* permission.
*
* Accepted values: ROLE_PERMISSION_UNSPECIFIED, ROLE_PERMISSION_INCLUDED,
* ROLE_PERMISSION_NOT_INCLUDED, ROLE_PERMISSION_UNKNOWN_INFO_DENIED
*
* @param self::ROLE_PERMISSION_* $rolePermission
*/
public function setRolePermission($rolePermission)
{
$this->rolePermission = $rolePermission;
}
/**
* @return self::ROLE_PERMISSION_*
*/
public function getRolePermission()
{
return $this->rolePermission;
}
/**
* The relevance of the permission's existence, or nonexistence, in the role
* to the overall determination for the entire policy.
*
* Accepted values: HEURISTIC_RELEVANCE_UNSPECIFIED, NORMAL, HIGH
*
* @param self::ROLE_PERMISSION_RELEVANCE_* $rolePermissionRelevance
*/
public function setRolePermissionRelevance($rolePermissionRelevance)
{
$this->rolePermissionRelevance = $rolePermissionRelevance;
}
/**
* @return self::ROLE_PERMISSION_RELEVANCE_*
*/
public function getRolePermissionRelevance()
{
return $this->rolePermissionRelevance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1BindingExplanation::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1BindingExplanation');
@@ -0,0 +1,117 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const MEMBERSHIP_MEMBERSHIP_UNSPECIFIED = 'MEMBERSHIP_UNSPECIFIED';
/**
* The binding includes the principal. The principal can be included directly
* or indirectly. For example: * A principal is included directly if that
* principal is listed in the binding. * A principal is included indirectly if
* that principal is in a Google group or Google Workspace domain that is
* listed in the binding.
*/
public const MEMBERSHIP_MEMBERSHIP_INCLUDED = 'MEMBERSHIP_INCLUDED';
/**
* The binding does not include the principal.
*/
public const MEMBERSHIP_MEMBERSHIP_NOT_INCLUDED = 'MEMBERSHIP_NOT_INCLUDED';
/**
* The user who created the Replay is not allowed to access the binding.
*/
public const MEMBERSHIP_MEMBERSHIP_UNKNOWN_INFO_DENIED = 'MEMBERSHIP_UNKNOWN_INFO_DENIED';
/**
* The principal is an unsupported type. Only Google Accounts and service
* accounts are supported.
*/
public const MEMBERSHIP_MEMBERSHIP_UNKNOWN_UNSUPPORTED = 'MEMBERSHIP_UNKNOWN_UNSUPPORTED';
/**
* Default value. This value is unused.
*/
public const RELEVANCE_HEURISTIC_RELEVANCE_UNSPECIFIED = 'HEURISTIC_RELEVANCE_UNSPECIFIED';
/**
* The data point has a limited effect on the result. Changing the data point
* is unlikely to affect the overall determination.
*/
public const RELEVANCE_NORMAL = 'NORMAL';
/**
* The data point has a strong effect on the result. Changing the data point
* is likely to affect the overall determination.
*/
public const RELEVANCE_HIGH = 'HIGH';
/**
* Indicates whether the binding includes the principal.
*
* @var string
*/
public $membership;
/**
* The relevance of the principal's status to the overall determination for
* the binding.
*
* @var string
*/
public $relevance;
/**
* Indicates whether the binding includes the principal.
*
* Accepted values: MEMBERSHIP_UNSPECIFIED, MEMBERSHIP_INCLUDED,
* MEMBERSHIP_NOT_INCLUDED, MEMBERSHIP_UNKNOWN_INFO_DENIED,
* MEMBERSHIP_UNKNOWN_UNSUPPORTED
*
* @param self::MEMBERSHIP_* $membership
*/
public function setMembership($membership)
{
$this->membership = $membership;
}
/**
* @return self::MEMBERSHIP_*
*/
public function getMembership()
{
return $this->membership;
}
/**
* The relevance of the principal's status to the overall determination for
* the binding.
*
* Accepted values: HEURISTIC_RELEVANCE_UNSPECIFIED, NORMAL, HIGH
*
* @param self::RELEVANCE_* $relevance
*/
public function setRelevance($relevance)
{
$this->relevance = $relevance;
}
/**
* @return self::RELEVANCE_*
*/
public function getRelevance()
{
return $this->relevance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ExplainedAccess extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const ACCESS_STATE_ACCESS_STATE_UNSPECIFIED = 'ACCESS_STATE_UNSPECIFIED';
/**
* The principal has the permission.
*/
public const ACCESS_STATE_GRANTED = 'GRANTED';
/**
* The principal does not have the permission.
*/
public const ACCESS_STATE_NOT_GRANTED = 'NOT_GRANTED';
/**
* The principal has the permission only if a condition expression evaluates
* to `true`.
*/
public const ACCESS_STATE_UNKNOWN_CONDITIONAL = 'UNKNOWN_CONDITIONAL';
/**
* The user who created the Replay does not have access to all of the policies
* that Policy Simulator needs to evaluate.
*/
public const ACCESS_STATE_UNKNOWN_INFO_DENIED = 'UNKNOWN_INFO_DENIED';
protected $collection_key = 'policies';
/**
* Whether the principal in the access tuple has permission to access the
* resource in the access tuple under the given policies.
*
* @var string
*/
public $accessState;
protected $errorsType = GoogleRpcStatus::class;
protected $errorsDataType = 'array';
protected $policiesType = GoogleCloudPolicysimulatorV1ExplainedPolicy::class;
protected $policiesDataType = 'array';
/**
* Whether the principal in the access tuple has permission to access the
* resource in the access tuple under the given policies.
*
* Accepted values: ACCESS_STATE_UNSPECIFIED, GRANTED, NOT_GRANTED,
* UNKNOWN_CONDITIONAL, UNKNOWN_INFO_DENIED
*
* @param self::ACCESS_STATE_* $accessState
*/
public function setAccessState($accessState)
{
$this->accessState = $accessState;
}
/**
* @return self::ACCESS_STATE_*
*/
public function getAccessState()
{
return $this->accessState;
}
/**
* If the AccessState is `UNKNOWN`, this field contains a list of errors
* explaining why the result is `UNKNOWN`. If the `AccessState` is `GRANTED`
* or `NOT_GRANTED`, this field is omitted.
*
* @param GoogleRpcStatus[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return GoogleRpcStatus[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* If the AccessState is `UNKNOWN`, this field contains the policies that led
* to that result. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this
* field is omitted.
*
* @param GoogleCloudPolicysimulatorV1ExplainedPolicy[] $policies
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return GoogleCloudPolicysimulatorV1ExplainedPolicy[]
*/
public function getPolicies()
{
return $this->policies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ExplainedAccess::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ExplainedAccess');
@@ -0,0 +1,198 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ExplainedPolicy extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const ACCESS_ACCESS_STATE_UNSPECIFIED = 'ACCESS_STATE_UNSPECIFIED';
/**
* The principal has the permission.
*/
public const ACCESS_GRANTED = 'GRANTED';
/**
* The principal does not have the permission.
*/
public const ACCESS_NOT_GRANTED = 'NOT_GRANTED';
/**
* The principal has the permission only if a condition expression evaluates
* to `true`.
*/
public const ACCESS_UNKNOWN_CONDITIONAL = 'UNKNOWN_CONDITIONAL';
/**
* The user who created the Replay does not have access to all of the policies
* that Policy Simulator needs to evaluate.
*/
public const ACCESS_UNKNOWN_INFO_DENIED = 'UNKNOWN_INFO_DENIED';
/**
* Default value. This value is unused.
*/
public const RELEVANCE_HEURISTIC_RELEVANCE_UNSPECIFIED = 'HEURISTIC_RELEVANCE_UNSPECIFIED';
/**
* The data point has a limited effect on the result. Changing the data point
* is unlikely to affect the overall determination.
*/
public const RELEVANCE_NORMAL = 'NORMAL';
/**
* The data point has a strong effect on the result. Changing the data point
* is likely to affect the overall determination.
*/
public const RELEVANCE_HIGH = 'HIGH';
protected $collection_key = 'bindingExplanations';
/**
* Indicates whether _this policy_ provides the specified permission to the
* specified principal for the specified resource. This field does _not_
* indicate whether the principal actually has the permission for the
* resource. There might be another policy that overrides this policy. To
* determine whether the principal actually has the permission, use the
* `access` field in the TroubleshootIamPolicyResponse.
*
* @var string
*/
public $access;
protected $bindingExplanationsType = GoogleCloudPolicysimulatorV1BindingExplanation::class;
protected $bindingExplanationsDataType = 'array';
/**
* The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-
* central1-a/instances/my-instance`. If the user who created the Replay does
* not have access to the policy, this field is omitted. For examples of full
* resource names for Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
*
* @var string
*/
public $fullResourceName;
protected $policyType = GoogleIamV1Policy::class;
protected $policyDataType = '';
/**
* The relevance of this policy to the overall determination in the
* TroubleshootIamPolicyResponse. If the user who created the Replay does not
* have access to the policy, this field is omitted.
*
* @var string
*/
public $relevance;
/**
* Indicates whether _this policy_ provides the specified permission to the
* specified principal for the specified resource. This field does _not_
* indicate whether the principal actually has the permission for the
* resource. There might be another policy that overrides this policy. To
* determine whether the principal actually has the permission, use the
* `access` field in the TroubleshootIamPolicyResponse.
*
* Accepted values: ACCESS_STATE_UNSPECIFIED, GRANTED, NOT_GRANTED,
* UNKNOWN_CONDITIONAL, UNKNOWN_INFO_DENIED
*
* @param self::ACCESS_* $access
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return self::ACCESS_*
*/
public function getAccess()
{
return $this->access;
}
/**
* Details about how each binding in the policy affects the principal's
* ability, or inability, to use the permission for the resource. If the user
* who created the Replay does not have access to the policy, this field is
* omitted.
*
* @param GoogleCloudPolicysimulatorV1BindingExplanation[] $bindingExplanations
*/
public function setBindingExplanations($bindingExplanations)
{
$this->bindingExplanations = $bindingExplanations;
}
/**
* @return GoogleCloudPolicysimulatorV1BindingExplanation[]
*/
public function getBindingExplanations()
{
return $this->bindingExplanations;
}
/**
* The full resource name that identifies the resource. For example,
* `//compute.googleapis.com/projects/my-project/zones/us-
* central1-a/instances/my-instance`. If the user who created the Replay does
* not have access to the policy, this field is omitted. For examples of full
* resource names for Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
*
* @param string $fullResourceName
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* The IAM policy attached to the resource. If the user who created the Replay
* does not have access to the policy, this field is empty.
*
* @param GoogleIamV1Policy $policy
*/
public function setPolicy(GoogleIamV1Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleIamV1Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* The relevance of this policy to the overall determination in the
* TroubleshootIamPolicyResponse. If the user who created the Replay does not
* have access to the policy, this field is omitted.
*
* Accepted values: HEURISTIC_RELEVANCE_UNSPECIFIED, NORMAL, HIGH
*
* @param self::RELEVANCE_* $relevance
*/
public function setRelevance($relevance)
{
$this->relevance = $relevance;
}
/**
* @return self::RELEVANCE_*
*/
public function getRelevance()
{
return $this->relevance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ExplainedPolicy::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ExplainedPolicy');
@@ -0,0 +1,69 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse extends \Google\Collection
{
protected $collection_key = 'orgPolicyViolationsPreviews';
/**
* A token that you can use to retrieve the next page of results. If this
* field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $orgPolicyViolationsPreviewsType = GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview::class;
protected $orgPolicyViolationsPreviewsDataType = 'array';
/**
* A token that you can use to retrieve the next page of results. If this
* field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of OrgPolicyViolationsPreview
*
* @param GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview[] $orgPolicyViolationsPreviews
*/
public function setOrgPolicyViolationsPreviews($orgPolicyViolationsPreviews)
{
$this->orgPolicyViolationsPreviews = $orgPolicyViolationsPreviews;
}
/**
* @return GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview[]
*/
public function getOrgPolicyViolationsPreviews()
{
return $this->orgPolicyViolationsPreviews;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse');
@@ -0,0 +1,69 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse extends \Google\Collection
{
protected $collection_key = 'orgPolicyViolations';
/**
* A token that you can use to retrieve the next page of results. If this
* field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $orgPolicyViolationsType = GoogleCloudPolicysimulatorV1OrgPolicyViolation::class;
protected $orgPolicyViolationsDataType = 'array';
/**
* A token that you can use to retrieve the next page of results. If this
* field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of OrgPolicyViolations
*
* @param GoogleCloudPolicysimulatorV1OrgPolicyViolation[] $orgPolicyViolations
*/
public function setOrgPolicyViolations($orgPolicyViolations)
{
$this->orgPolicyViolations = $orgPolicyViolations;
}
/**
* @return GoogleCloudPolicysimulatorV1OrgPolicyViolation[]
*/
public function getOrgPolicyViolations()
{
return $this->orgPolicyViolations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse');
@@ -0,0 +1,69 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ListReplayResultsResponse extends \Google\Collection
{
protected $collection_key = 'replayResults';
/**
* A token that you can use to retrieve the next page of ReplayResult objects.
* If this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $replayResultsType = GoogleCloudPolicysimulatorV1ReplayResult::class;
protected $replayResultsDataType = 'array';
/**
* A token that you can use to retrieve the next page of ReplayResult objects.
* If this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The results of running a Replay.
*
* @param GoogleCloudPolicysimulatorV1ReplayResult[] $replayResults
*/
public function setReplayResults($replayResults)
{
$this->replayResults = $replayResults;
}
/**
* @return GoogleCloudPolicysimulatorV1ReplayResult[]
*/
public function getReplayResults()
{
return $this->replayResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ListReplayResultsResponse::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ListReplayResultsResponse');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1OrgPolicyOverlay extends \Google\Collection
{
protected $collection_key = 'policies';
protected $customConstraintsType = GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay::class;
protected $customConstraintsDataType = 'array';
protected $policiesType = GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay::class;
protected $policiesDataType = 'array';
/**
* Optional. The OrgPolicy CustomConstraint changes to preview violations for.
* Any existing CustomConstraints with the same name will be overridden in the
* simulation. That is, violations will be determined as if all custom
* constraints in the overlay were instantiated. Only a single
* custom_constraint is supported in the overlay at a time. For evaluating
* multiple constraints, multiple `GenerateOrgPolicyViolationsPreview`
* requests are made, where each request evaluates a single constraint.
*
* @param GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay[] $customConstraints
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* Optional. The OrgPolicy changes to preview violations for. Any existing
* OrgPolicies with the same name will be overridden in the simulation. That
* is, violations will be determined as if all policies in the overlay were
* created or updated.
*
* @param GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay[] $policies
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay[]
*/
public function getPolicies()
{
return $this->policies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1OrgPolicyOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyOverlay');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay extends \Google\Model
{
protected $customConstraintType = GoogleCloudOrgpolicyV2CustomConstraint::class;
protected $customConstraintDataType = '';
/**
* Optional. Resource the constraint is attached to. Example:
* "organization/987654"
*
* @var string
*/
public $customConstraintParent;
/**
* Optional. The new or updated custom constraint.
*
* @param GoogleCloudOrgpolicyV2CustomConstraint $customConstraint
*/
public function setCustomConstraint(GoogleCloudOrgpolicyV2CustomConstraint $customConstraint)
{
$this->customConstraint = $customConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2CustomConstraint
*/
public function getCustomConstraint()
{
return $this->customConstraint;
}
/**
* Optional. Resource the constraint is attached to. Example:
* "organization/987654"
*
* @param string $customConstraintParent
*/
public function setCustomConstraintParent($customConstraintParent)
{
$this->customConstraintParent = $customConstraintParent;
}
/**
* @return string
*/
public function getCustomConstraintParent()
{
return $this->customConstraintParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay extends \Google\Model
{
protected $policyType = GoogleCloudOrgpolicyV2Policy::class;
protected $policyDataType = '';
/**
* Optional. The parent of the policy we are attaching to. Example:
* "projects/123456"
*
* @var string
*/
public $policyParent;
/**
* Optional. The new or updated OrgPolicy.
*
* @param GoogleCloudOrgpolicyV2Policy $policy
*/
public function setPolicy(GoogleCloudOrgpolicyV2Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleCloudOrgpolicyV2Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* Optional. The parent of the policy we are attaching to. Example:
* "projects/123456"
*
* @param string $policyParent
*/
public function setPolicyParent($policyParent)
{
$this->policyParent = $policyParent;
}
/**
* @return string
*/
public function getPolicyParent()
{
return $this->policyParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay');
@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1OrgPolicyViolation extends \Google\Model
{
protected $customConstraintType = GoogleCloudOrgpolicyV2CustomConstraint::class;
protected $customConstraintDataType = '';
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* The name of the `OrgPolicyViolation`. Example: organizations/my-example-org
* /locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/
* 38ce`
*
* @var string
*/
public $name;
protected $resourceType = GoogleCloudPolicysimulatorV1ResourceContext::class;
protected $resourceDataType = '';
/**
* The custom constraint being violated.
*
* @param GoogleCloudOrgpolicyV2CustomConstraint $customConstraint
*/
public function setCustomConstraint(GoogleCloudOrgpolicyV2CustomConstraint $customConstraint)
{
$this->customConstraint = $customConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2CustomConstraint
*/
public function getCustomConstraint()
{
return $this->customConstraint;
}
/**
* Any error encountered during the evaluation.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* The name of the `OrgPolicyViolation`. Example: organizations/my-example-org
* /locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/
* 38ce`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The resource violating the constraint.
*
* @param GoogleCloudPolicysimulatorV1ResourceContext $resource
*/
public function setResource(GoogleCloudPolicysimulatorV1ResourceContext $resource)
{
$this->resource = $resource;
}
/**
* @return GoogleCloudPolicysimulatorV1ResourceContext
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1OrgPolicyViolation::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyViolation');
@@ -0,0 +1,227 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview extends \Google\Collection
{
/**
* The state is unspecified.
*/
public const STATE_PREVIEW_STATE_UNSPECIFIED = 'PREVIEW_STATE_UNSPECIFIED';
/**
* The OrgPolicyViolationsPreview has not been created yet.
*/
public const STATE_PREVIEW_PENDING = 'PREVIEW_PENDING';
/**
* The OrgPolicyViolationsPreview is currently being created.
*/
public const STATE_PREVIEW_RUNNING = 'PREVIEW_RUNNING';
/**
* The OrgPolicyViolationsPreview creation finished successfully.
*/
public const STATE_PREVIEW_SUCCEEDED = 'PREVIEW_SUCCEEDED';
/**
* The OrgPolicyViolationsPreview creation failed with an error.
*/
public const STATE_PREVIEW_FAILED = 'PREVIEW_FAILED';
protected $collection_key = 'customConstraints';
/**
* Output only. Time when this `OrgPolicyViolationsPreview` was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The names of the constraints against which all
* `OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains
* `PolicyOverlay` then it contains the name of the configured custom
* constraint, applicable to the specified policies. Otherwise it contains the
* name of the constraint specified in `CustomConstraintOverlay`. Format:
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
*
* @var string[]
*/
public $customConstraints;
/**
* Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
* the following format: `organizations/{organization}/locations/{location}/or
* gPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example:
* `organizations/my-example-
* org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
*
* @var string
*/
public $name;
protected $overlayType = GoogleCloudPolicysimulatorV1OrgPolicyOverlay::class;
protected $overlayDataType = '';
protected $resourceCountsType = GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts::class;
protected $resourceCountsDataType = '';
/**
* Output only. The state of the `OrgPolicyViolationsPreview`.
*
* @var string
*/
public $state;
/**
* Output only. The number of OrgPolicyViolations in this
* `OrgPolicyViolationsPreview`. This count may differ from
* `resource_summary.noncompliant_count` because each OrgPolicyViolation is
* specific to a resource **and** constraint. If there are multiple
* constraints being evaluated (i.e. multiple policies in the overlay), a
* single resource may violate multiple constraints.
*
* @var int
*/
public $violationsCount;
/**
* Output only. Time when this `OrgPolicyViolationsPreview` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The names of the constraints against which all
* `OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains
* `PolicyOverlay` then it contains the name of the configured custom
* constraint, applicable to the specified policies. Otherwise it contains the
* name of the constraint specified in `CustomConstraintOverlay`. Format:
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
*
* @param string[] $customConstraints
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return string[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
* the following format: `organizations/{organization}/locations/{location}/or
* gPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example:
* `organizations/my-example-
* org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The proposed changes we are previewing violations for.
*
* @param GoogleCloudPolicysimulatorV1OrgPolicyOverlay $overlay
*/
public function setOverlay(GoogleCloudPolicysimulatorV1OrgPolicyOverlay $overlay)
{
$this->overlay = $overlay;
}
/**
* @return GoogleCloudPolicysimulatorV1OrgPolicyOverlay
*/
public function getOverlay()
{
return $this->overlay;
}
/**
* Output only. A summary of the state of all resources scanned for compliance
* with the changed OrgPolicy.
*
* @param GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts $resourceCounts
*/
public function setResourceCounts(GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts $resourceCounts)
{
$this->resourceCounts = $resourceCounts;
}
/**
* @return GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts
*/
public function getResourceCounts()
{
return $this->resourceCounts;
}
/**
* Output only. The state of the `OrgPolicyViolationsPreview`.
*
* Accepted values: PREVIEW_STATE_UNSPECIFIED, PREVIEW_PENDING,
* PREVIEW_RUNNING, PREVIEW_SUCCEEDED, PREVIEW_FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The number of OrgPolicyViolations in this
* `OrgPolicyViolationsPreview`. This count may differ from
* `resource_summary.noncompliant_count` because each OrgPolicyViolation is
* specific to a resource **and** constraint. If there are multiple
* constraints being evaluated (i.e. multiple policies in the overlay), a
* single resource may violate multiple constraints.
*
* @param int $violationsCount
*/
public function setViolationsCount($violationsCount)
{
$this->violationsCount = $violationsCount;
}
/**
* @return int
*/
public function getViolationsCount()
{
return $this->violationsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview');
@@ -0,0 +1,140 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts extends \Google\Model
{
/**
* Output only. Number of scanned resources with zero violations.
*
* @var int
*/
public $compliant;
/**
* Output only. Number of resources that returned an error when scanned.
*
* @var int
*/
public $errors;
/**
* Output only. Number of scanned resources with at least one violation.
*
* @var int
*/
public $noncompliant;
/**
* Output only. Number of resources checked for compliance. Must equal:
* unenforced + noncompliant + compliant + error
*
* @var int
*/
public $scanned;
/**
* Output only. Number of resources where the constraint was not enforced,
* i.e. the Policy set `enforced: false` for that resource.
*
* @var int
*/
public $unenforced;
/**
* Output only. Number of scanned resources with zero violations.
*
* @param int $compliant
*/
public function setCompliant($compliant)
{
$this->compliant = $compliant;
}
/**
* @return int
*/
public function getCompliant()
{
return $this->compliant;
}
/**
* Output only. Number of resources that returned an error when scanned.
*
* @param int $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return int
*/
public function getErrors()
{
return $this->errors;
}
/**
* Output only. Number of scanned resources with at least one violation.
*
* @param int $noncompliant
*/
public function setNoncompliant($noncompliant)
{
$this->noncompliant = $noncompliant;
}
/**
* @return int
*/
public function getNoncompliant()
{
return $this->noncompliant;
}
/**
* Output only. Number of resources checked for compliance. Must equal:
* unenforced + noncompliant + compliant + error
*
* @param int $scanned
*/
public function setScanned($scanned)
{
$this->scanned = $scanned;
}
/**
* @return int
*/
public function getScanned()
{
return $this->scanned;
}
/**
* Output only. Number of resources where the constraint was not enforced,
* i.e. the Policy set `enforced: false` for that resource.
*
* @param int $unenforced
*/
public function setUnenforced($unenforced)
{
$this->unenforced = $unenforced;
}
/**
* @return int
*/
public function getUnenforced()
{
return $this->unenforced;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts');
@@ -0,0 +1,138 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1Replay extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The `Replay` has not started yet.
*/
public const STATE_PENDING = 'PENDING';
/**
* The `Replay` is currently running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The `Replay` has successfully completed.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The `Replay` has finished with an error.
*/
public const STATE_FAILED = 'FAILED';
protected $configType = GoogleCloudPolicysimulatorV1ReplayConfig::class;
protected $configDataType = '';
/**
* Output only. The resource name of the `Replay`, which has the following
* format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID
* of the project, folder, or organization that owns the Replay. Example:
* `projects/my-example-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
*
* @var string
*/
public $name;
protected $resultsSummaryType = GoogleCloudPolicysimulatorV1ReplayResultsSummary::class;
protected $resultsSummaryDataType = '';
/**
* Output only. The current state of the `Replay`.
*
* @var string
*/
public $state;
/**
* Required. The configuration used for the `Replay`.
*
* @param GoogleCloudPolicysimulatorV1ReplayConfig $config
*/
public function setConfig(GoogleCloudPolicysimulatorV1ReplayConfig $config)
{
$this->config = $config;
}
/**
* @return GoogleCloudPolicysimulatorV1ReplayConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* Output only. The resource name of the `Replay`, which has the following
* format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID
* of the project, folder, or organization that owns the Replay. Example:
* `projects/my-example-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Summary statistics about the replayed log entries.
*
* @param GoogleCloudPolicysimulatorV1ReplayResultsSummary $resultsSummary
*/
public function setResultsSummary(GoogleCloudPolicysimulatorV1ReplayResultsSummary $resultsSummary)
{
$this->resultsSummary = $resultsSummary;
}
/**
* @return GoogleCloudPolicysimulatorV1ReplayResultsSummary
*/
public function getResultsSummary()
{
return $this->resultsSummary;
}
/**
* Output only. The current state of the `Replay`.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, RUNNING, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1Replay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1Replay');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1ReplayConfig extends \Google\Model
{
/**
* An unspecified log source. If the log source is unspecified, the Replay
* defaults to using `RECENT_ACCESSES`.
*/
public const LOG_SOURCE_LOG_SOURCE_UNSPECIFIED = 'LOG_SOURCE_UNSPECIFIED';
/**
* All access logs from the last 90 days. These logs may not include logs from
* the most recent 7 days.
*/
public const LOG_SOURCE_RECENT_ACCESSES = 'RECENT_ACCESSES';
/**
* The logs to use as input for the Replay.
*
* @var string
*/
public $logSource;
protected $policyOverlayType = GoogleIamV1Policy::class;
protected $policyOverlayDataType = 'map';
/**
* The logs to use as input for the Replay.
*
* Accepted values: LOG_SOURCE_UNSPECIFIED, RECENT_ACCESSES
*
* @param self::LOG_SOURCE_* $logSource
*/
public function setLogSource($logSource)
{
$this->logSource = $logSource;
}
/**
* @return self::LOG_SOURCE_*
*/
public function getLogSource()
{
return $this->logSource;
}
/**
* A mapping of the resources that you want to simulate policies for and the
* policies that you want to simulate. Keys are the full resource names for
* the resources. For example,
* `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples
* of full resource names for Google Cloud services, see
* https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
* Values are Policy objects representing the policies that you want to
* simulate. Replays automatically take into account any IAM policies
* inherited through the resource hierarchy, and any policies set on
* descendant resources. You do not need to include these policies in the
* policy overlay.
*
* @param GoogleIamV1Policy[] $policyOverlay
*/
public function setPolicyOverlay($policyOverlay)
{
$this->policyOverlay = $policyOverlay;
}
/**
* @return GoogleIamV1Policy[]
*/
public function getPolicyOverlay()
{
return $this->policyOverlay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ReplayConfig::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ReplayConfig');
@@ -0,0 +1,47 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ReplayDiff extends \Google\Model
{
protected $accessDiffType = GoogleCloudPolicysimulatorV1AccessStateDiff::class;
protected $accessDiffDataType = '';
/**
* A summary and comparison of the principal's access under the current
* (baseline) policies and the proposed (simulated) policies for a single
* access tuple. The evaluation of the principal's access is reported in the
* AccessState field.
*
* @param GoogleCloudPolicysimulatorV1AccessStateDiff $accessDiff
*/
public function setAccessDiff(GoogleCloudPolicysimulatorV1AccessStateDiff $accessDiff)
{
$this->accessDiff = $accessDiff;
}
/**
* @return GoogleCloudPolicysimulatorV1AccessStateDiff
*/
public function getAccessDiff()
{
return $this->accessDiff;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ReplayDiff::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ReplayDiff');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1ReplayOperationMetadata extends \Google\Model
{
/**
* Time when the request was received.
*
* @var string
*/
public $startTime;
/**
* Time when the request was received.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ReplayOperationMetadata::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ReplayOperationMetadata');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1ReplayResult extends \Google\Model
{
protected $accessTupleType = GoogleCloudPolicysimulatorV1AccessTuple::class;
protected $accessTupleDataType = '';
protected $diffType = GoogleCloudPolicysimulatorV1ReplayDiff::class;
protected $diffDataType = '';
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
protected $lastSeenDateType = GoogleTypeDate::class;
protected $lastSeenDateDataType = '';
/**
* The resource name of the `ReplayResult`, in the following format:
* `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}/results/{replay-result-id}`, where
* `{resource-id}` is the ID of the project, folder, or organization that owns
* the Replay. Example: `projects/my-example-project/locations/global/replays/
* 506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`
*
* @var string
*/
public $name;
/**
* The Replay that the access tuple was included in.
*
* @var string
*/
public $parent;
/**
* The access tuple that was replayed. This field includes information about
* the principal, resource, and permission that were involved in the access
* attempt.
*
* @param GoogleCloudPolicysimulatorV1AccessTuple $accessTuple
*/
public function setAccessTuple(GoogleCloudPolicysimulatorV1AccessTuple $accessTuple)
{
$this->accessTuple = $accessTuple;
}
/**
* @return GoogleCloudPolicysimulatorV1AccessTuple
*/
public function getAccessTuple()
{
return $this->accessTuple;
}
/**
* The difference between the principal's access under the current (baseline)
* policies and the principal's access under the proposed (simulated)
* policies. This field is only included for access tuples that were
* successfully replayed and had different results under the current policies
* and the proposed policies.
*
* @param GoogleCloudPolicysimulatorV1ReplayDiff $diff
*/
public function setDiff(GoogleCloudPolicysimulatorV1ReplayDiff $diff)
{
$this->diff = $diff;
}
/**
* @return GoogleCloudPolicysimulatorV1ReplayDiff
*/
public function getDiff()
{
return $this->diff;
}
/**
* The error that caused the access tuple replay to fail. This field is only
* included for access tuples that were not replayed successfully.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* The latest date this access tuple was seen in the logs.
*
* @param GoogleTypeDate $lastSeenDate
*/
public function setLastSeenDate(GoogleTypeDate $lastSeenDate)
{
$this->lastSeenDate = $lastSeenDate;
}
/**
* @return GoogleTypeDate
*/
public function getLastSeenDate()
{
return $this->lastSeenDate;
}
/**
* The resource name of the `ReplayResult`, in the following format:
* `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}/results/{replay-result-id}`, where
* `{resource-id}` is the ID of the project, folder, or organization that owns
* the Replay. Example: `projects/my-example-project/locations/global/replays/
* 506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The Replay that the access tuple was included in.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ReplayResult::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ReplayResult');
@@ -0,0 +1,154 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ReplayResultsSummary extends \Google\Model
{
/**
* The number of replayed log entries with a difference between baseline and
* simulated policies.
*
* @var int
*/
public $differenceCount;
/**
* The number of log entries that could not be replayed.
*
* @var int
*/
public $errorCount;
/**
* The total number of log entries replayed.
*
* @var int
*/
public $logCount;
protected $newestDateType = GoogleTypeDate::class;
protected $newestDateDataType = '';
protected $oldestDateType = GoogleTypeDate::class;
protected $oldestDateDataType = '';
/**
* The number of replayed log entries with no difference between baseline and
* simulated policies.
*
* @var int
*/
public $unchangedCount;
/**
* The number of replayed log entries with a difference between baseline and
* simulated policies.
*
* @param int $differenceCount
*/
public function setDifferenceCount($differenceCount)
{
$this->differenceCount = $differenceCount;
}
/**
* @return int
*/
public function getDifferenceCount()
{
return $this->differenceCount;
}
/**
* The number of log entries that could not be replayed.
*
* @param int $errorCount
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return int
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* The total number of log entries replayed.
*
* @param int $logCount
*/
public function setLogCount($logCount)
{
$this->logCount = $logCount;
}
/**
* @return int
*/
public function getLogCount()
{
return $this->logCount;
}
/**
* The date of the newest log entry replayed.
*
* @param GoogleTypeDate $newestDate
*/
public function setNewestDate(GoogleTypeDate $newestDate)
{
$this->newestDate = $newestDate;
}
/**
* @return GoogleTypeDate
*/
public function getNewestDate()
{
return $this->newestDate;
}
/**
* The date of the oldest log entry replayed.
*
* @param GoogleTypeDate $oldestDate
*/
public function setOldestDate(GoogleTypeDate $oldestDate)
{
$this->oldestDate = $oldestDate;
}
/**
* @return GoogleTypeDate
*/
public function getOldestDate()
{
return $this->oldestDate;
}
/**
* The number of replayed log entries with no difference between baseline and
* simulated policies.
*
* @param int $unchangedCount
*/
public function setUnchangedCount($unchangedCount)
{
$this->unchangedCount = $unchangedCount;
}
/**
* @return int
*/
public function getUnchangedCount()
{
return $this->unchangedCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ReplayResultsSummary::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ReplayResultsSummary');
@@ -0,0 +1,117 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1ResourceContext extends \Google\Collection
{
protected $collection_key = 'ancestors';
/**
* The ancestry path of the resource in Google Cloud [resource
* hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
* resource-hierarchy), represented as a list of relative resource names. An
* ancestry path starts with the closest ancestor in the hierarchy and ends at
* root. If the resource is a project, folder, or organization, the ancestry
* path starts from the resource itself. Example: `["projects/123456789",
* "folders/5432", "organizations/1234"]`
*
* @var string[]
*/
public $ancestors;
/**
* The asset type of the resource as defined by CAIS. Example:
* `compute.googleapis.com/Firewall` See [Supported asset
* types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
* for more information.
*
* @var string
*/
public $assetType;
/**
* The full name of the resource. Example: `//compute.googleapis.com/projects/
* my_project_123/zones/zone1/instances/instance1` See [Resource names](https:
* //cloud.google.com/apis/design/resource_names#full_resource_name) for more
* information.
*
* @var string
*/
public $resource;
/**
* The ancestry path of the resource in Google Cloud [resource
* hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
* resource-hierarchy), represented as a list of relative resource names. An
* ancestry path starts with the closest ancestor in the hierarchy and ends at
* root. If the resource is a project, folder, or organization, the ancestry
* path starts from the resource itself. Example: `["projects/123456789",
* "folders/5432", "organizations/1234"]`
*
* @param string[] $ancestors
*/
public function setAncestors($ancestors)
{
$this->ancestors = $ancestors;
}
/**
* @return string[]
*/
public function getAncestors()
{
return $this->ancestors;
}
/**
* The asset type of the resource as defined by CAIS. Example:
* `compute.googleapis.com/Firewall` See [Supported asset
* types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
* for more information.
*
* @param string $assetType
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
/**
* The full name of the resource. Example: `//compute.googleapis.com/projects/
* my_project_123/zones/zone1/instances/instance1` See [Resource names](https:
* //cloud.google.com/apis/design/resource_names#full_resource_name) for more
* information.
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1ResourceContext::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ResourceContext');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $requestTime;
/**
* @var int
*/
public $resourcesFound;
/**
* @var int
*/
public $resourcesPending;
/**
* @var int
*/
public $resourcesScanned;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
}
/**
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* @param int
*/
public function setResourcesFound($resourcesFound)
{
$this->resourcesFound = $resourcesFound;
}
/**
* @return int
*/
public function getResourcesFound()
{
return $this->resourcesFound;
}
/**
* @param int
*/
public function setResourcesPending($resourcesPending)
{
$this->resourcesPending = $resourcesPending;
}
/**
* @return int
*/
public function getResourcesPending()
{
return $this->resourcesPending;
}
/**
* @param int
*/
public function setResourcesScanned($resourcesScanned)
{
$this->resourcesScanned = $resourcesScanned;
}
/**
* @return int
*/
public function getResourcesScanned()
{
return $this->resourcesScanned;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @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(GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $requestTime;
/**
* @var int
*/
public $resourcesFound;
/**
* @var int
*/
public $resourcesPending;
/**
* @var int
*/
public $resourcesScanned;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
}
/**
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* @param int
*/
public function setResourcesFound($resourcesFound)
{
$this->resourcesFound = $resourcesFound;
}
/**
* @return int
*/
public function getResourcesFound()
{
return $this->resourcesFound;
}
/**
* @param int
*/
public function setResourcesPending($resourcesPending)
{
$this->resourcesPending = $resourcesPending;
}
/**
* @return int
*/
public function getResourcesPending()
{
return $this->resourcesPending;
}
/**
* @param int
*/
public function setResourcesScanned($resourcesScanned)
{
$this->resourcesScanned = $resourcesScanned;
}
/**
* @return int
*/
public function getResourcesScanned()
{
return $this->resourcesScanned;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @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(GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay extends \Google\Collection
{
protected $collection_key = 'policies';
protected $customConstraintsType = GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay::class;
protected $customConstraintsDataType = 'array';
protected $policiesType = GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay::class;
protected $policiesDataType = 'array';
/**
* @param GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay[]
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* @param GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay[]
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay[]
*/
public function getPolicies()
{
return $this->policies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay extends \Google\Model
{
protected $customConstraintType = GoogleCloudOrgpolicyV2CustomConstraint::class;
protected $customConstraintDataType = '';
/**
* @var string
*/
public $customConstraintParent;
/**
* @param GoogleCloudOrgpolicyV2CustomConstraint
*/
public function setCustomConstraint(GoogleCloudOrgpolicyV2CustomConstraint $customConstraint)
{
$this->customConstraint = $customConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2CustomConstraint
*/
public function getCustomConstraint()
{
return $this->customConstraint;
}
/**
* @param string
*/
public function setCustomConstraintParent($customConstraintParent)
{
$this->customConstraintParent = $customConstraintParent;
}
/**
* @return string
*/
public function getCustomConstraintParent()
{
return $this->customConstraintParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay extends \Google\Model
{
protected $policyType = GoogleCloudOrgpolicyV2Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $policyParent;
/**
* @param GoogleCloudOrgpolicyV2Policy
*/
public function setPolicy(GoogleCloudOrgpolicyV2Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleCloudOrgpolicyV2Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setPolicyParent($policyParent)
{
$this->policyParent = $policyParent;
}
/**
* @return string
*/
public function getPolicyParent()
{
return $this->policyParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview extends \Google\Collection
{
protected $collection_key = 'customConstraints';
/**
* @var string
*/
public $createTime;
/**
* @var string[]
*/
public $customConstraints;
/**
* @var string
*/
public $name;
protected $overlayType = GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::class;
protected $overlayDataType = '';
protected $resourceCountsType = GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts::class;
protected $resourceCountsDataType = '';
/**
* @var string
*/
public $state;
/**
* @var int
*/
public $violationsCount;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string[]
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return string[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
*/
public function setOverlay(GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay $overlay)
{
$this->overlay = $overlay;
}
/**
* @return GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
*/
public function getOverlay()
{
return $this->overlay;
}
/**
* @param GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
*/
public function setResourceCounts(GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts $resourceCounts)
{
$this->resourceCounts = $resourceCounts;
}
/**
* @return GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
*/
public function getResourceCounts()
{
return $this->resourceCounts;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param int
*/
public function setViolationsCount($violationsCount)
{
$this->violationsCount = $violationsCount;
}
/**
* @return int
*/
public function getViolationsCount()
{
return $this->violationsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts extends \Google\Model
{
/**
* @var int
*/
public $compliant;
/**
* @var int
*/
public $errors;
/**
* @var int
*/
public $noncompliant;
/**
* @var int
*/
public $scanned;
/**
* @var int
*/
public $unenforced;
/**
* @param int
*/
public function setCompliant($compliant)
{
$this->compliant = $compliant;
}
/**
* @return int
*/
public function getCompliant()
{
return $this->compliant;
}
/**
* @param int
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return int
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param int
*/
public function setNoncompliant($noncompliant)
{
$this->noncompliant = $noncompliant;
}
/**
* @return int
*/
public function getNoncompliant()
{
return $this->noncompliant;
}
/**
* @param int
*/
public function setScanned($scanned)
{
$this->scanned = $scanned;
}
/**
* @return int
*/
public function getScanned()
{
return $this->scanned;
}
/**
* @param int
*/
public function setUnenforced($unenforced)
{
$this->unenforced = $unenforced;
}
/**
* @return int
*/
public function getUnenforced()
{
return $this->unenforced;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts');
@@ -0,0 +1,94 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1beta1Replay extends \Google\Model
{
protected $configType = GoogleCloudPolicysimulatorV1beta1ReplayConfig::class;
protected $configDataType = '';
/**
* @var string
*/
public $name;
protected $resultsSummaryType = GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary::class;
protected $resultsSummaryDataType = '';
/**
* @var string
*/
public $state;
/**
* @param GoogleCloudPolicysimulatorV1beta1ReplayConfig
*/
public function setConfig(GoogleCloudPolicysimulatorV1beta1ReplayConfig $config)
{
$this->config = $config;
}
/**
* @return GoogleCloudPolicysimulatorV1beta1ReplayConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
*/
public function setResultsSummary(GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary $resultsSummary)
{
$this->resultsSummary = $resultsSummary;
}
/**
* @return GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
*/
public function getResultsSummary()
{
return $this->resultsSummary;
}
/**
* @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(GoogleCloudPolicysimulatorV1beta1Replay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1beta1Replay');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1beta1ReplayConfig extends \Google\Model
{
/**
* @var string
*/
public $logSource;
protected $policyOverlayType = GoogleIamV1Policy::class;
protected $policyOverlayDataType = 'map';
/**
* @param string
*/
public function setLogSource($logSource)
{
$this->logSource = $logSource;
}
/**
* @return string
*/
public function getLogSource()
{
return $this->logSource;
}
/**
* @param GoogleIamV1Policy[]
*/
public function setPolicyOverlay($policyOverlay)
{
$this->policyOverlay = $policyOverlay;
}
/**
* @return GoogleIamV1Policy[]
*/
public function getPolicyOverlay()
{
return $this->policyOverlay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1beta1ReplayConfig::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1beta1ReplayConfig');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata');
@@ -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\PolicySimulator;
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary extends \Google\Model
{
/**
* @var int
*/
public $differenceCount;
/**
* @var int
*/
public $errorCount;
/**
* @var int
*/
public $logCount;
protected $newestDateType = GoogleTypeDate::class;
protected $newestDateDataType = '';
protected $oldestDateType = GoogleTypeDate::class;
protected $oldestDateDataType = '';
/**
* @var int
*/
public $unchangedCount;
/**
* @param int
*/
public function setDifferenceCount($differenceCount)
{
$this->differenceCount = $differenceCount;
}
/**
* @return int
*/
public function getDifferenceCount()
{
return $this->differenceCount;
}
/**
* @param int
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return int
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* @param int
*/
public function setLogCount($logCount)
{
$this->logCount = $logCount;
}
/**
* @return int
*/
public function getLogCount()
{
return $this->logCount;
}
/**
* @param GoogleTypeDate
*/
public function setNewestDate(GoogleTypeDate $newestDate)
{
$this->newestDate = $newestDate;
}
/**
* @return GoogleTypeDate
*/
public function getNewestDate()
{
return $this->newestDate;
}
/**
* @param GoogleTypeDate
*/
public function setOldestDate(GoogleTypeDate $oldestDate)
{
$this->oldestDate = $oldestDate;
}
/**
* @return GoogleTypeDate
*/
public function getOldestDate()
{
return $this->oldestDate;
}
/**
* @param int
*/
public function setUnchangedCount($unchangedCount)
{
$this->unchangedCount = $unchangedCount;
}
/**
* @return int
*/
public function getUnchangedCount()
{
return $this->unchangedCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary');
@@ -0,0 +1,185 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata extends \Google\Model
{
/**
* The state is unspecified.
*/
public const STATE_PREVIEW_STATE_UNSPECIFIED = 'PREVIEW_STATE_UNSPECIFIED';
/**
* The OrgPolicyViolationsPreview has not been created yet.
*/
public const STATE_PREVIEW_PENDING = 'PREVIEW_PENDING';
/**
* The OrgPolicyViolationsPreview is currently being created.
*/
public const STATE_PREVIEW_RUNNING = 'PREVIEW_RUNNING';
/**
* The OrgPolicyViolationsPreview creation finished successfully.
*/
public const STATE_PREVIEW_SUCCEEDED = 'PREVIEW_SUCCEEDED';
/**
* The OrgPolicyViolationsPreview creation failed with an error.
*/
public const STATE_PREVIEW_FAILED = 'PREVIEW_FAILED';
/**
* Time when the request was received.
*
* @var string
*/
public $requestTime;
/**
* Total number of resources that need scanning. Should equal resource_scanned
* + resources_pending
*
* @var int
*/
public $resourcesFound;
/**
* Number of resources still to scan.
*
* @var int
*/
public $resourcesPending;
/**
* Number of resources already scanned.
*
* @var int
*/
public $resourcesScanned;
/**
* Time when the request started processing, i.e., when the state was set to
* RUNNING.
*
* @var string
*/
public $startTime;
/**
* Output only. The current state of the operation.
*
* @var string
*/
public $state;
/**
* Time when the request was received.
*
* @param string $requestTime
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
}
/**
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* Total number of resources that need scanning. Should equal resource_scanned
* + resources_pending
*
* @param int $resourcesFound
*/
public function setResourcesFound($resourcesFound)
{
$this->resourcesFound = $resourcesFound;
}
/**
* @return int
*/
public function getResourcesFound()
{
return $this->resourcesFound;
}
/**
* Number of resources still to scan.
*
* @param int $resourcesPending
*/
public function setResourcesPending($resourcesPending)
{
$this->resourcesPending = $resourcesPending;
}
/**
* @return int
*/
public function getResourcesPending()
{
return $this->resourcesPending;
}
/**
* Number of resources already scanned.
*
* @param int $resourcesScanned
*/
public function setResourcesScanned($resourcesScanned)
{
$this->resourcesScanned = $resourcesScanned;
}
/**
* @return int
*/
public function getResourcesScanned()
{
return $this->resourcesScanned;
}
/**
* Time when the request started processing, i.e., when the state was set to
* RUNNING.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. The current state of the operation.
*
* Accepted values: PREVIEW_STATE_UNSPECIFIED, PREVIEW_PENDING,
* PREVIEW_RUNNING, PREVIEW_SUCCEEDED, PREVIEW_FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata');
@@ -0,0 +1,185 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata extends \Google\Model
{
/**
* The state is unspecified.
*/
public const STATE_PREVIEW_STATE_UNSPECIFIED = 'PREVIEW_STATE_UNSPECIFIED';
/**
* The OrgPolicyViolationsPreview has not been created yet.
*/
public const STATE_PREVIEW_PENDING = 'PREVIEW_PENDING';
/**
* The OrgPolicyViolationsPreview is currently being created.
*/
public const STATE_PREVIEW_RUNNING = 'PREVIEW_RUNNING';
/**
* The OrgPolicyViolationsPreview creation finished successfully.
*/
public const STATE_PREVIEW_SUCCEEDED = 'PREVIEW_SUCCEEDED';
/**
* The OrgPolicyViolationsPreview creation failed with an error.
*/
public const STATE_PREVIEW_FAILED = 'PREVIEW_FAILED';
/**
* Time when the request was received.
*
* @var string
*/
public $requestTime;
/**
* Total number of resources that need scanning. Should equal resource_scanned
* + resources_pending
*
* @var int
*/
public $resourcesFound;
/**
* Number of resources still to scan.
*
* @var int
*/
public $resourcesPending;
/**
* Number of resources already scanned.
*
* @var int
*/
public $resourcesScanned;
/**
* Time when the request started processing, i.e. when the state was set to
* RUNNING.
*
* @var string
*/
public $startTime;
/**
* The current state of the operation.
*
* @var string
*/
public $state;
/**
* Time when the request was received.
*
* @param string $requestTime
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
}
/**
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* Total number of resources that need scanning. Should equal resource_scanned
* + resources_pending
*
* @param int $resourcesFound
*/
public function setResourcesFound($resourcesFound)
{
$this->resourcesFound = $resourcesFound;
}
/**
* @return int
*/
public function getResourcesFound()
{
return $this->resourcesFound;
}
/**
* Number of resources still to scan.
*
* @param int $resourcesPending
*/
public function setResourcesPending($resourcesPending)
{
$this->resourcesPending = $resourcesPending;
}
/**
* @return int
*/
public function getResourcesPending()
{
return $this->resourcesPending;
}
/**
* Number of resources already scanned.
*
* @param int $resourcesScanned
*/
public function setResourcesScanned($resourcesScanned)
{
$this->resourcesScanned = $resourcesScanned;
}
/**
* @return int
*/
public function getResourcesScanned()
{
return $this->resourcesScanned;
}
/**
* Time when the request started processing, i.e. when the state was set to
* RUNNING.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* The current state of the operation.
*
* Accepted values: PREVIEW_STATE_UNSPECIFIED, PREVIEW_PENDING,
* PREVIEW_RUNNING, PREVIEW_SUCCEEDED, PREVIEW_FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay extends \Google\Collection
{
protected $collection_key = 'policies';
protected $customConstraintsType = GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay::class;
protected $customConstraintsDataType = 'array';
protected $policiesType = GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay::class;
protected $policiesDataType = 'array';
/**
* Optional. The OrgPolicy CustomConstraint changes to preview violations for.
* Any existing CustomConstraints with the same name will be overridden in the
* simulation. That is, violations will be determined as if all custom
* constraints in the overlay were instantiated. Only a single
* custom_constraint is supported in the overlay at a time. For evaluating
* multiple constraints, multiple `GenerateOrgPolicyViolationsPreview`
* requests are made, where each request evaluates a single constraint.
*
* @param GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay[] $customConstraints
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* Optional. The OrgPolicy changes to preview violations for. Any existing
* OrgPolicies with the same name will be overridden in the simulation. That
* is, violations will be determined as if all policies in the overlay were
* created or updated.
*
* @param GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay[] $policies
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay[]
*/
public function getPolicies()
{
return $this->policies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay extends \Google\Model
{
protected $customConstraintType = GoogleCloudOrgpolicyV2CustomConstraint::class;
protected $customConstraintDataType = '';
/**
* Optional. Resource the constraint is attached to. Example:
* "organization/987654"
*
* @var string
*/
public $customConstraintParent;
/**
* Optional. The new or updated custom constraint.
*
* @param GoogleCloudOrgpolicyV2CustomConstraint $customConstraint
*/
public function setCustomConstraint(GoogleCloudOrgpolicyV2CustomConstraint $customConstraint)
{
$this->customConstraint = $customConstraint;
}
/**
* @return GoogleCloudOrgpolicyV2CustomConstraint
*/
public function getCustomConstraint()
{
return $this->customConstraint;
}
/**
* Optional. Resource the constraint is attached to. Example:
* "organization/987654"
*
* @param string $customConstraintParent
*/
public function setCustomConstraintParent($customConstraintParent)
{
$this->customConstraintParent = $customConstraintParent;
}
/**
* @return string
*/
public function getCustomConstraintParent()
{
return $this->customConstraintParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay extends \Google\Model
{
protected $policyType = GoogleCloudOrgpolicyV2Policy::class;
protected $policyDataType = '';
/**
* Optional. The parent of the policy we are attaching to. Example:
* "projects/123456"
*
* @var string
*/
public $policyParent;
/**
* Optional. The new or updated OrgPolicy.
*
* @param GoogleCloudOrgpolicyV2Policy $policy
*/
public function setPolicy(GoogleCloudOrgpolicyV2Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleCloudOrgpolicyV2Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* Optional. The parent of the policy we are attaching to. Example:
* "projects/123456"
*
* @param string $policyParent
*/
public function setPolicyParent($policyParent)
{
$this->policyParent = $policyParent;
}
/**
* @return string
*/
public function getPolicyParent()
{
return $this->policyParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay');
@@ -0,0 +1,227 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview extends \Google\Collection
{
/**
* The state is unspecified.
*/
public const STATE_PREVIEW_STATE_UNSPECIFIED = 'PREVIEW_STATE_UNSPECIFIED';
/**
* The OrgPolicyViolationsPreview has not been created yet.
*/
public const STATE_PREVIEW_PENDING = 'PREVIEW_PENDING';
/**
* The OrgPolicyViolationsPreview is currently being created.
*/
public const STATE_PREVIEW_RUNNING = 'PREVIEW_RUNNING';
/**
* The OrgPolicyViolationsPreview creation finished successfully.
*/
public const STATE_PREVIEW_SUCCEEDED = 'PREVIEW_SUCCEEDED';
/**
* The OrgPolicyViolationsPreview creation failed with an error.
*/
public const STATE_PREVIEW_FAILED = 'PREVIEW_FAILED';
protected $collection_key = 'customConstraints';
/**
* Output only. Time when this `OrgPolicyViolationsPreview` was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The names of the constraints against which all
* `OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains
* `PolicyOverlay` then it contains the name of the configured custom
* constraint, applicable to the specified policies. Otherwise it contains the
* name of the constraint specified in `CustomConstraintOverlay`. Format:
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
*
* @var string[]
*/
public $customConstraints;
/**
* Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
* the following format: `organizations/{organization}/locations/{location}/or
* gPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example:
* `organizations/my-example-
* org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
*
* @var string
*/
public $name;
protected $overlayType = GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::class;
protected $overlayDataType = '';
protected $resourceCountsType = GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts::class;
protected $resourceCountsDataType = '';
/**
* Output only. The state of the `OrgPolicyViolationsPreview`.
*
* @var string
*/
public $state;
/**
* Output only. The number of OrgPolicyViolations in this
* `OrgPolicyViolationsPreview`. This count may differ from
* `resource_summary.noncompliant_count` because each OrgPolicyViolation is
* specific to a resource **and** constraint. If there are multiple
* constraints being evaluated (i.e. multiple policies in the overlay), a
* single resource may violate multiple constraints.
*
* @var int
*/
public $violationsCount;
/**
* Output only. Time when this `OrgPolicyViolationsPreview` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The names of the constraints against which all
* `OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains
* `PolicyOverlay` then it contains the name of the configured custom
* constraint, applicable to the specified policies. Otherwise it contains the
* name of the constraint specified in `CustomConstraintOverlay`. Format:
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
* Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
*
* @param string[] $customConstraints
*/
public function setCustomConstraints($customConstraints)
{
$this->customConstraints = $customConstraints;
}
/**
* @return string[]
*/
public function getCustomConstraints()
{
return $this->customConstraints;
}
/**
* Output only. The resource name of the `OrgPolicyViolationsPreview`. It has
* the following format: `organizations/{organization}/locations/{location}/or
* gPolicyViolationsPreviews/{orgPolicyViolationsPreview}` Example:
* `organizations/my-example-
* org/locations/global/orgPolicyViolationsPreviews/506a5f7f`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The proposed changes we are previewing violations for.
*
* @param GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay $overlay
*/
public function setOverlay(GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay $overlay)
{
$this->overlay = $overlay;
}
/**
* @return GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
*/
public function getOverlay()
{
return $this->overlay;
}
/**
* Output only. A summary of the state of all resources scanned for compliance
* with the changed OrgPolicy.
*
* @param GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts $resourceCounts
*/
public function setResourceCounts(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts $resourceCounts)
{
$this->resourceCounts = $resourceCounts;
}
/**
* @return GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
*/
public function getResourceCounts()
{
return $this->resourceCounts;
}
/**
* Output only. The state of the `OrgPolicyViolationsPreview`.
*
* Accepted values: PREVIEW_STATE_UNSPECIFIED, PREVIEW_PENDING,
* PREVIEW_RUNNING, PREVIEW_SUCCEEDED, PREVIEW_FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The number of OrgPolicyViolations in this
* `OrgPolicyViolationsPreview`. This count may differ from
* `resource_summary.noncompliant_count` because each OrgPolicyViolation is
* specific to a resource **and** constraint. If there are multiple
* constraints being evaluated (i.e. multiple policies in the overlay), a
* single resource may violate multiple constraints.
*
* @param int $violationsCount
*/
public function setViolationsCount($violationsCount)
{
$this->violationsCount = $violationsCount;
}
/**
* @return int
*/
public function getViolationsCount()
{
return $this->violationsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview');
@@ -0,0 +1,140 @@
<?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\PolicySimulator;
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts extends \Google\Model
{
/**
* Output only. Number of scanned resources with zero violations.
*
* @var int
*/
public $compliant;
/**
* Output only. Number of resources that returned an error when scanned.
*
* @var int
*/
public $errors;
/**
* Output only. Number of scanned resources with at least one violation.
*
* @var int
*/
public $noncompliant;
/**
* Output only. Number of resources checked for compliance. Must equal:
* unenforced + noncompliant + compliant + error
*
* @var int
*/
public $scanned;
/**
* Output only. Number of resources where the constraint was not enforced,
* i.e. the Policy set `enforced: false` for that resource.
*
* @var int
*/
public $unenforced;
/**
* Output only. Number of scanned resources with zero violations.
*
* @param int $compliant
*/
public function setCompliant($compliant)
{
$this->compliant = $compliant;
}
/**
* @return int
*/
public function getCompliant()
{
return $this->compliant;
}
/**
* Output only. Number of resources that returned an error when scanned.
*
* @param int $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return int
*/
public function getErrors()
{
return $this->errors;
}
/**
* Output only. Number of scanned resources with at least one violation.
*
* @param int $noncompliant
*/
public function setNoncompliant($noncompliant)
{
$this->noncompliant = $noncompliant;
}
/**
* @return int
*/
public function getNoncompliant()
{
return $this->noncompliant;
}
/**
* Output only. Number of resources checked for compliance. Must equal:
* unenforced + noncompliant + compliant + error
*
* @param int $scanned
*/
public function setScanned($scanned)
{
$this->scanned = $scanned;
}
/**
* @return int
*/
public function getScanned()
{
return $this->scanned;
}
/**
* Output only. Number of resources where the constraint was not enforced,
* i.e. the Policy set `enforced: false` for that resource.
*
* @param int $unenforced
*/
public function setUnenforced($unenforced)
{
$this->unenforced = $unenforced;
}
/**
* @return int
*/
public function getUnenforced()
{
return $this->unenforced;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleIamV1AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = GoogleIamV1AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param GoogleIamV1AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return GoogleIamV1AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1AuditConfig::class, 'Google_Service_PolicySimulator_GoogleIamV1AuditConfig');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleIamV1AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1AuditLogConfig::class, 'Google_Service_PolicySimulator_GoogleIamV1AuditLogConfig');
@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleIamV1Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param GoogleTypeExpr $condition
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1Binding::class, 'Google_Service_PolicySimulator_GoogleIamV1Binding');
@@ -0,0 +1,165 @@
<?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\PolicySimulator;
class GoogleIamV1Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = GoogleIamV1AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = GoogleIamV1Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param GoogleIamV1AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return GoogleIamV1AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param GoogleIamV1Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return GoogleIamV1Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1Policy::class, 'Google_Service_PolicySimulator_GoogleIamV1Policy');
@@ -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\PolicySimulator;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param GoogleLongrunningOperation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
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(GoogleLongrunningListOperationsResponse::class, 'Google_Service_PolicySimulator_GoogleLongrunningListOperationsResponse');
@@ -0,0 +1,158 @@
<?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\PolicySimulator;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
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(GoogleLongrunningOperation::class, 'Google_Service_PolicySimulator_GoogleLongrunningOperation');
@@ -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\PolicySimulator;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
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(GoogleRpcStatus::class, 'Google_Service_PolicySimulator_GoogleRpcStatus');
@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleTypeDate extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeDate::class, 'Google_Service_PolicySimulator_GoogleTypeDate');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator;
class GoogleTypeExpr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeExpr::class, 'Google_Service_PolicySimulator_GoogleTypeExpr');
@@ -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\PolicySimulator\Resource;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $folders = $policysimulatorService->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_PolicySimulator_Resource_Folders');
@@ -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\PolicySimulator\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $locations = $policysimulatorService->folders_locations;
* </code>
*/
class FoldersLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocations::class, 'Google_Service_PolicySimulator_Resource_FoldersLocations');
@@ -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\PolicySimulator\Resource;
/**
* The "accessPolicySimulations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $accessPolicySimulations = $policysimulatorService->folders_locations_accessPolicySimulations;
* </code>
*/
class FoldersLocationsAccessPolicySimulations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsAccessPolicySimulations::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsAccessPolicySimulations');
@@ -0,0 +1,51 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->folders_locations_accessPolicySimulations_operations;
* </code>
*/
class FoldersLocationsAccessPolicySimulationsOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsAccessPolicySimulationsOperations::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsAccessPolicySimulationsOperations');
@@ -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\PolicySimulator\Resource;
/**
* The "orgPolicyViolationsPreviews" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $orgPolicyViolationsPreviews = $policysimulatorService->folders_locations_orgPolicyViolationsPreviews;
* </code>
*/
class FoldersLocationsOrgPolicyViolationsPreviews extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsOrgPolicyViolationsPreviews::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsOrgPolicyViolationsPreviews');
@@ -0,0 +1,51 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->folders_locations_orgPolicyViolationsPreviews_operations;
* </code>
*/
class FoldersLocationsOrgPolicyViolationsPreviewsOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsOrgPolicyViolationsPreviewsOperations::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsOrgPolicyViolationsPreviewsOperations');
@@ -0,0 +1,73 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1Replay;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "replays" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $replays = $policysimulatorService->folders_locations_replays;
* </code>
*/
class FoldersLocationsReplays extends \Google\Service\Resource
{
/**
* Creates and starts a Replay using the given ReplayConfig. (replays.create)
*
* @param string $parent Required. The parent resource where this Replay will be
* created. This resource must be a project, folder, or organization with a
* location. Example: `projects/my-example-project/locations/global`
* @param GoogleCloudPolicysimulatorV1Replay $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudPolicysimulatorV1Replay $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets the specified Replay. Each `Replay` is available for at least 7 days.
* (replays.get)
*
* @param string $name Required. The name of the Replay to retrieve, in the
* following format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of
* the project, folder, or organization that owns the `Replay`. Example:
* `projects/my-example-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* @param array $optParams Optional parameters.
* @return GoogleCloudPolicysimulatorV1Replay
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudPolicysimulatorV1Replay::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsReplays::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsReplays');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningListOperationsResponse;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->folders_locations_replays_operations;
* </code>
*/
class FoldersLocationsReplaysOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listFoldersLocationsReplaysOperations)
*
* @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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsReplaysOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsReplaysOperations::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsReplaysOperations');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1ListReplayResultsResponse;
/**
* The "results" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $results = $policysimulatorService->folders_locations_replays_results;
* </code>
*/
class FoldersLocationsReplaysResults extends \Google\Service\Resource
{
/**
* Lists the results of running a Replay.
* (results.listFoldersLocationsReplaysResults)
*
* @param string $parent Required. The Replay whose results are listed, in the
* following format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}` Example: `projects/my-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ReplayResult objects to return.
* Defaults to 5000. The maximum value is 5000; values above 5000 are rounded
* down to 5000.
* @opt_param string pageToken A page token, received from a previous
* Simulator.ListReplayResults call. Provide this token to retrieve the next
* page of results. When paginating, all other parameters provided to
* [Simulator.ListReplayResults[] must match the call that provided the page
* token.
* @return GoogleCloudPolicysimulatorV1ListReplayResultsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsReplaysResults($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPolicysimulatorV1ListReplayResultsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsReplaysResults::class, 'Google_Service_PolicySimulator_Resource_FoldersLocationsReplaysResults');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningListOperationsResponse;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOperations)
*
* @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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_PolicySimulator_Resource_Operations');
@@ -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\PolicySimulator\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $organizations = $policysimulatorService->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_PolicySimulator_Resource_Organizations');
@@ -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\PolicySimulator\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $locations = $policysimulatorService->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_PolicySimulator_Resource_OrganizationsLocations');
@@ -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\PolicySimulator\Resource;
/**
* The "accessPolicySimulations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $accessPolicySimulations = $policysimulatorService->organizations_locations_accessPolicySimulations;
* </code>
*/
class OrganizationsLocationsAccessPolicySimulations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsAccessPolicySimulations::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsAccessPolicySimulations');
@@ -0,0 +1,51 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->organizations_locations_accessPolicySimulations_operations;
* </code>
*/
class OrganizationsLocationsAccessPolicySimulationsOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsAccessPolicySimulationsOperations::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsAccessPolicySimulationsOperations');
@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "orgPolicyViolationsPreviews" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $orgPolicyViolationsPreviews = $policysimulatorService->organizations_locations_orgPolicyViolationsPreviews;
* </code>
*/
class OrganizationsLocationsOrgPolicyViolationsPreviews extends \Google\Service\Resource
{
/**
* CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for
* the proposed changes in the provided
* OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are
* specified by this `OrgPolicyOverlay`. The resources to scan are inferred from
* these specified changes. (orgPolicyViolationsPreviews.create)
*
* @param string $parent Required. The organization under which this
* OrgPolicyViolationsPreview will be created. Example: `organizations/my-
* example-org/locations/global`
* @param GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string orgPolicyViolationsPreviewId Optional. An optional user-
* specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID
* will be generated.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
* Each OrgPolicyViolationsPreview is available for at least 7 days.
* (orgPolicyViolationsPreviews.get)
*
* @param string $name Required. The name of the OrgPolicyViolationsPreview to
* get.
* @param array $optParams Optional parameters.
* @return GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview::class);
}
/**
* ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
* organization. Each OrgPolicyViolationsPreview is available for at least 7
* days. (orgPolicyViolationsPreviews.listOrganizationsLocationsOrgPolicyViolati
* onsPreviews)
*
* @param string $parent Required. The parent the violations are scoped to.
* Format: `organizations/{organization}/locations/{location}` Example:
* `organizations/my-example-org/locations/global`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of items to return. The
* service may return fewer than this value. If unspecified, at most 5 items
* will be returned. The maximum value is 10; values above 10 will be coerced to
* 10.
* @opt_param string pageToken Optional. A page token, received from a previous
* call. Provide this to retrieve the subsequent page. When paginating, all
* other parameters must match the call that provided the page token.
* @return GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsOrgPolicyViolationsPreviews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsOrgPolicyViolationsPreviews::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsOrgPolicyViolationsPreviews');
@@ -0,0 +1,51 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->organizations_locations_orgPolicyViolationsPreviews_operations;
* </code>
*/
class OrganizationsLocationsOrgPolicyViolationsPreviewsOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsOrgPolicyViolationsPreviewsOperations::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsOrgPolicyViolationsPreviewsOperations');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse;
/**
* The "orgPolicyViolations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $orgPolicyViolations = $policysimulatorService->organizations_locations_orgPolicyViolationsPreviews_orgPolicyViolations;
* </code>
*/
class OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolations extends \Google\Service\Resource
{
/**
* ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an
* OrgPolicyViolationsPreview. (orgPolicyViolations.listOrganizationsLocationsOr
* gPolicyViolationsPreviewsOrgPolicyViolations)
*
* @param string $parent Required. The OrgPolicyViolationsPreview to get
* OrgPolicyViolations from. Format: organizations/{organization}/locations/{loc
* ation}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of items to return. The
* service may return fewer than this value. If unspecified, at most 1000 items
* will be returned. The maximum value is 1000; values above 1000 will be
* coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* call. Provide this to retrieve the subsequent page. When paginating, all
* other parameters must match the call that provided the page token.
* @return GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolations::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolations');
@@ -0,0 +1,73 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1Replay;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "replays" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $replays = $policysimulatorService->organizations_locations_replays;
* </code>
*/
class OrganizationsLocationsReplays extends \Google\Service\Resource
{
/**
* Creates and starts a Replay using the given ReplayConfig. (replays.create)
*
* @param string $parent Required. The parent resource where this Replay will be
* created. This resource must be a project, folder, or organization with a
* location. Example: `projects/my-example-project/locations/global`
* @param GoogleCloudPolicysimulatorV1Replay $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudPolicysimulatorV1Replay $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets the specified Replay. Each `Replay` is available for at least 7 days.
* (replays.get)
*
* @param string $name Required. The name of the Replay to retrieve, in the
* following format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of
* the project, folder, or organization that owns the `Replay`. Example:
* `projects/my-example-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* @param array $optParams Optional parameters.
* @return GoogleCloudPolicysimulatorV1Replay
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudPolicysimulatorV1Replay::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsReplays::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsReplays');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningListOperationsResponse;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->organizations_locations_replays_operations;
* </code>
*/
class OrganizationsLocationsReplaysOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOrganizationsLocationsReplaysOperations)
*
* @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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsReplaysOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsReplaysOperations::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsReplaysOperations');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1ListReplayResultsResponse;
/**
* The "results" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $results = $policysimulatorService->organizations_locations_replays_results;
* </code>
*/
class OrganizationsLocationsReplaysResults extends \Google\Service\Resource
{
/**
* Lists the results of running a Replay.
* (results.listOrganizationsLocationsReplaysResults)
*
* @param string $parent Required. The Replay whose results are listed, in the
* following format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}` Example: `projects/my-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ReplayResult objects to return.
* Defaults to 5000. The maximum value is 5000; values above 5000 are rounded
* down to 5000.
* @opt_param string pageToken A page token, received from a previous
* Simulator.ListReplayResults call. Provide this token to retrieve the next
* page of results. When paginating, all other parameters provided to
* [Simulator.ListReplayResults[] must match the call that provided the page
* token.
* @return GoogleCloudPolicysimulatorV1ListReplayResultsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsReplaysResults($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPolicysimulatorV1ListReplayResultsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsReplaysResults::class, 'Google_Service_PolicySimulator_Resource_OrganizationsLocationsReplaysResults');
@@ -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\PolicySimulator\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $projects = $policysimulatorService->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_PolicySimulator_Resource_Projects');
@@ -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\PolicySimulator\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $locations = $policysimulatorService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocations');
@@ -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\PolicySimulator\Resource;
/**
* The "accessPolicySimulations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $accessPolicySimulations = $policysimulatorService->projects_locations_accessPolicySimulations;
* </code>
*/
class ProjectsLocationsAccessPolicySimulations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAccessPolicySimulations::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsAccessPolicySimulations');
@@ -0,0 +1,51 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->projects_locations_accessPolicySimulations_operations;
* </code>
*/
class ProjectsLocationsAccessPolicySimulationsOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAccessPolicySimulationsOperations::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsAccessPolicySimulationsOperations');
@@ -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\PolicySimulator\Resource;
/**
* The "orgPolicyViolationsPreviews" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $orgPolicyViolationsPreviews = $policysimulatorService->projects_locations_orgPolicyViolationsPreviews;
* </code>
*/
class ProjectsLocationsOrgPolicyViolationsPreviews extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOrgPolicyViolationsPreviews::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsOrgPolicyViolationsPreviews');
@@ -0,0 +1,51 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->projects_locations_orgPolicyViolationsPreviews_operations;
* </code>
*/
class ProjectsLocationsOrgPolicyViolationsPreviewsOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOrgPolicyViolationsPreviewsOperations::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsOrgPolicyViolationsPreviewsOperations');
@@ -0,0 +1,73 @@
<?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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1Replay;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "replays" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $replays = $policysimulatorService->projects_locations_replays;
* </code>
*/
class ProjectsLocationsReplays extends \Google\Service\Resource
{
/**
* Creates and starts a Replay using the given ReplayConfig. (replays.create)
*
* @param string $parent Required. The parent resource where this Replay will be
* created. This resource must be a project, folder, or organization with a
* location. Example: `projects/my-example-project/locations/global`
* @param GoogleCloudPolicysimulatorV1Replay $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudPolicysimulatorV1Replay $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets the specified Replay. Each `Replay` is available for at least 7 days.
* (replays.get)
*
* @param string $name Required. The name of the Replay to retrieve, in the
* following format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of
* the project, folder, or organization that owns the `Replay`. Example:
* `projects/my-example-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* @param array $optParams Optional parameters.
* @return GoogleCloudPolicysimulatorV1Replay
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudPolicysimulatorV1Replay::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReplays::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsReplays');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleLongrunningListOperationsResponse;
use Google\Service\PolicySimulator\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $operations = $policysimulatorService->projects_locations_replays_operations;
* </code>
*/
class ProjectsLocationsReplaysOperations extends \Google\Service\Resource
{
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsReplaysOperations)
*
* @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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReplaysOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReplaysOperations::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsReplaysOperations');
@@ -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\PolicySimulator\Resource;
use Google\Service\PolicySimulator\GoogleCloudPolicysimulatorV1ListReplayResultsResponse;
/**
* The "results" collection of methods.
* Typical usage is:
* <code>
* $policysimulatorService = new Google\Service\PolicySimulator(...);
* $results = $policysimulatorService->projects_locations_replays_results;
* </code>
*/
class ProjectsLocationsReplaysResults extends \Google\Service\Resource
{
/**
* Lists the results of running a Replay.
* (results.listProjectsLocationsReplaysResults)
*
* @param string $parent Required. The Replay whose results are listed, in the
* following format: `{projects|folders|organizations}/{resource-
* id}/locations/global/replays/{replay-id}` Example: `projects/my-
* project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of ReplayResult objects to return.
* Defaults to 5000. The maximum value is 5000; values above 5000 are rounded
* down to 5000.
* @opt_param string pageToken A page token, received from a previous
* Simulator.ListReplayResults call. Provide this token to retrieve the next
* page of results. When paginating, all other parameters provided to
* [Simulator.ListReplayResults[] must match the call that provided the page
* token.
* @return GoogleCloudPolicysimulatorV1ListReplayResultsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReplaysResults($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudPolicysimulatorV1ListReplayResultsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReplaysResults::class, 'Google_Service_PolicySimulator_Resource_ProjectsLocationsReplaysResults');