Initial commit

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

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleCloudPolicytroubleshooterV1AccessTuple extends \Google\Model
{
/**
* @var string
*/
public $fullResourceName;
/**
* @var string
*/
public $permission;
/**
* @var string
*/
public $principal;
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* @param string
*/
public function setPermission($permission)
{
$this->permission = $permission;
}
/**
* @return string
*/
public function getPermission()
{
return $this->permission;
}
/**
* @param string
*/
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(GoogleCloudPolicytroubleshooterV1AccessTuple::class, 'Google_Service_PolicyTroubleshooter_GoogleCloudPolicytroubleshooterV1AccessTuple');

View File

@@ -0,0 +1,148 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleCloudPolicytroubleshooterV1BindingExplanation extends \Google\Model
{
/**
* @var string
*/
public $access;
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
protected $membershipsType = GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership::class;
protected $membershipsDataType = 'map';
/**
* @var string
*/
public $relevance;
/**
* @var string
*/
public $role;
/**
* @var string
*/
public $rolePermission;
/**
* @var string
*/
public $rolePermissionRelevance;
/**
* @param string
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return string
*/
public function getAccess()
{
return $this->access;
}
/**
* @param GoogleTypeExpr
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership[]
*/
public function setMemberships($memberships)
{
$this->memberships = $memberships;
}
/**
* @return GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership[]
*/
public function getMemberships()
{
return $this->memberships;
}
/**
* @param string
*/
public function setRelevance($relevance)
{
$this->relevance = $relevance;
}
/**
* @return string
*/
public function getRelevance()
{
return $this->relevance;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
public function setRolePermission($rolePermission)
{
$this->rolePermission = $rolePermission;
}
/**
* @return string
*/
public function getRolePermission()
{
return $this->rolePermission;
}
/**
* @param string
*/
public function setRolePermissionRelevance($rolePermissionRelevance)
{
$this->rolePermissionRelevance = $rolePermissionRelevance;
}
/**
* @return string
*/
public function getRolePermissionRelevance()
{
return $this->rolePermissionRelevance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicytroubleshooterV1BindingExplanation::class, 'Google_Service_PolicyTroubleshooter_GoogleCloudPolicytroubleshooterV1BindingExplanation');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership extends \Google\Model
{
/**
* @var string
*/
public $membership;
/**
* @var string
*/
public $relevance;
/**
* @param string
*/
public function setMembership($membership)
{
$this->membership = $membership;
}
/**
* @return string
*/
public function getMembership()
{
return $this->membership;
}
/**
* @param string
*/
public function setRelevance($relevance)
{
$this->relevance = $relevance;
}
/**
* @return string
*/
public function getRelevance()
{
return $this->relevance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership::class, 'Google_Service_PolicyTroubleshooter_GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleCloudPolicytroubleshooterV1ExplainedPolicy extends \Google\Collection
{
protected $collection_key = 'bindingExplanations';
/**
* @var string
*/
public $access;
protected $bindingExplanationsType = GoogleCloudPolicytroubleshooterV1BindingExplanation::class;
protected $bindingExplanationsDataType = 'array';
/**
* @var string
*/
public $fullResourceName;
protected $policyType = GoogleIamV1Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $relevance;
/**
* @param string
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return string
*/
public function getAccess()
{
return $this->access;
}
/**
* @param GoogleCloudPolicytroubleshooterV1BindingExplanation[]
*/
public function setBindingExplanations($bindingExplanations)
{
$this->bindingExplanations = $bindingExplanations;
}
/**
* @return GoogleCloudPolicytroubleshooterV1BindingExplanation[]
*/
public function getBindingExplanations()
{
return $this->bindingExplanations;
}
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* @param GoogleIamV1Policy
*/
public function setPolicy(GoogleIamV1Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleIamV1Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setRelevance($relevance)
{
$this->relevance = $relevance;
}
/**
* @return string
*/
public function getRelevance()
{
return $this->relevance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicytroubleshooterV1ExplainedPolicy::class, 'Google_Service_PolicyTroubleshooter_GoogleCloudPolicytroubleshooterV1ExplainedPolicy');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest extends \Google\Model
{
protected $accessTupleType = GoogleCloudPolicytroubleshooterV1AccessTuple::class;
protected $accessTupleDataType = '';
/**
* @param GoogleCloudPolicytroubleshooterV1AccessTuple
*/
public function setAccessTuple(GoogleCloudPolicytroubleshooterV1AccessTuple $accessTuple)
{
$this->accessTuple = $accessTuple;
}
/**
* @return GoogleCloudPolicytroubleshooterV1AccessTuple
*/
public function getAccessTuple()
{
return $this->accessTuple;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest::class, 'Google_Service_PolicyTroubleshooter_GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse extends \Google\Collection
{
protected $collection_key = 'explainedPolicies';
/**
* @var string
*/
public $access;
protected $errorsType = GoogleRpcStatus::class;
protected $errorsDataType = 'array';
protected $explainedPoliciesType = GoogleCloudPolicytroubleshooterV1ExplainedPolicy::class;
protected $explainedPoliciesDataType = 'array';
/**
* @param string
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return string
*/
public function getAccess()
{
return $this->access;
}
/**
* @param GoogleRpcStatus[]
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return GoogleRpcStatus[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* @param GoogleCloudPolicytroubleshooterV1ExplainedPolicy[]
*/
public function setExplainedPolicies($explainedPolicies)
{
$this->explainedPolicies = $explainedPolicies;
}
/**
* @return GoogleCloudPolicytroubleshooterV1ExplainedPolicy[]
*/
public function getExplainedPolicies()
{
return $this->explainedPolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse::class, 'Google_Service_PolicyTroubleshooter_GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleIamV1AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = GoogleIamV1AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param GoogleIamV1AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return GoogleIamV1AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
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_PolicyTroubleshooter_GoogleIamV1AuditConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleIamV1AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1AuditLogConfig::class, 'Google_Service_PolicyTroubleshooter_GoogleIamV1AuditLogConfig');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleIamV1Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param GoogleTypeExpr
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
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_PolicyTroubleshooter_GoogleIamV1Binding');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleIamV1Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = GoogleIamV1AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = GoogleIamV1Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param GoogleIamV1AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return GoogleIamV1AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param GoogleIamV1Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return GoogleIamV1Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
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_PolicyTroubleshooter_GoogleIamV1Policy');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_PolicyTroubleshooter_GoogleRpcStatus');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter;
class GoogleTypeExpr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeExpr::class, 'Google_Service_PolicyTroubleshooter_GoogleTypeExpr');

View File

@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyTroubleshooter\Resource;
use Google\Service\PolicyTroubleshooter\GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest;
use Google\Service\PolicyTroubleshooter\GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse;
/**
* The "iam" collection of methods.
* Typical usage is:
* <code>
* $policytroubleshooterService = new Google\Service\PolicyTroubleshooter(...);
* $iam = $policytroubleshooterService->iam;
* </code>
*/
class Iam extends \Google\Service\Resource
{
/**
* Checks whether a principal has a specific permission for a specific resource,
* and explains why the principal does or does not have that permission.
* (iam.troubleshoot)
*
* @param GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse
* @throws \Google\Service\Exception
*/
public function troubleshoot(GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('troubleshoot', [$params], GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Iam::class, 'Google_Service_PolicyTroubleshooter_Resource_Iam');