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,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class AdminAuditData extends \Google\Model
{
protected $permissionDeltaType = PermissionDelta::class;
protected $permissionDeltaDataType = '';
public $permissionDelta;
/**
* @param PermissionDelta
*/
public function setPermissionDelta(PermissionDelta $permissionDelta)
{
$this->permissionDelta = $permissionDelta;
}
/**
* @return PermissionDelta
*/
public function getPermissionDelta()
{
return $this->permissionDelta;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminAuditData::class, 'Google_Service_Iam_AdminAuditData');

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\Iam;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
public $auditLogConfigs;
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
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(AuditConfig::class, 'Google_Service_Iam_AuditConfig');

View File

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

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\Iam;
class AuditLogConfig 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(AuditLogConfig::class, 'Google_Service_Iam_AuditLogConfig');

View File

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

View File

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

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\Iam;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
public $condition;
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
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(Binding::class, 'Google_Service_Iam_Binding');

View File

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

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\Iam;
class CloudControl2SharedOperationsReconciliationOperationMetadata extends \Google\Model
{
/**
* @var bool
*/
public $deleteResource;
/**
* @var string
*/
public $exclusiveAction;
/**
* @param bool
*/
public function setDeleteResource($deleteResource)
{
$this->deleteResource = $deleteResource;
}
/**
* @return bool
*/
public function getDeleteResource()
{
return $this->deleteResource;
}
/**
* @param string
*/
public function setExclusiveAction($exclusiveAction)
{
$this->exclusiveAction = $exclusiveAction;
}
/**
* @return string
*/
public function getExclusiveAction()
{
return $this->exclusiveAction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudControl2SharedOperationsReconciliationOperationMetadata::class, 'Google_Service_Iam_CloudControl2SharedOperationsReconciliationOperationMetadata');

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\Iam;
class CreateRoleRequest extends \Google\Model
{
protected $roleType = Role::class;
protected $roleDataType = '';
public $role;
/**
* @var string
*/
public $roleId;
/**
* @param Role
*/
public function setRole(Role $role)
{
$this->role = $role;
}
/**
* @return Role
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
public function setRoleId($roleId)
{
$this->roleId = $roleId;
}
/**
* @return string
*/
public function getRoleId()
{
return $this->roleId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateRoleRequest::class, 'Google_Service_Iam_CreateRoleRequest');

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\Iam;
class CreateServiceAccountKeyRequest extends \Google\Model
{
/**
* @var string
*/
public $keyAlgorithm;
/**
* @var string
*/
public $privateKeyType;
/**
* @param string
*/
public function setKeyAlgorithm($keyAlgorithm)
{
$this->keyAlgorithm = $keyAlgorithm;
}
/**
* @return string
*/
public function getKeyAlgorithm()
{
return $this->keyAlgorithm;
}
/**
* @param string
*/
public function setPrivateKeyType($privateKeyType)
{
$this->privateKeyType = $privateKeyType;
}
/**
* @return string
*/
public function getPrivateKeyType()
{
return $this->privateKeyType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateServiceAccountKeyRequest::class, 'Google_Service_Iam_CreateServiceAccountKeyRequest');

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\Iam;
class CreateServiceAccountRequest extends \Google\Model
{
/**
* @var string
*/
public $accountId;
protected $serviceAccountType = ServiceAccount::class;
protected $serviceAccountDataType = '';
public $serviceAccount;
/**
* @param string
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* @param ServiceAccount
*/
public function setServiceAccount(ServiceAccount $serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return ServiceAccount
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateServiceAccountRequest::class, 'Google_Service_Iam_CreateServiceAccountRequest');

View File

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

View File

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

View File

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

View File

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

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\Iam;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Iam_Expr');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleCloudCommonOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var bool
*/
public $cancelRequested;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $statusDetail;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param bool
*/
public function setCancelRequested($cancelRequested)
{
$this->cancelRequested = $cancelRequested;
}
/**
* @return bool
*/
public function getCancelRequested()
{
return $this->cancelRequested;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStatusDetail($statusDetail)
{
$this->statusDetail = $statusDetail;
}
/**
* @return string
*/
public function getStatusDetail()
{
return $this->statusDetail;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudCommonOperationMetadata::class, 'Google_Service_Iam_GoogleCloudCommonOperationMetadata');

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\Iam;
class GoogleIamAdminV1AuditData extends \Google\Model
{
protected $permissionDeltaType = GoogleIamAdminV1AuditDataPermissionDelta::class;
protected $permissionDeltaDataType = '';
/**
* @param GoogleIamAdminV1AuditDataPermissionDelta
*/
public function setPermissionDelta(GoogleIamAdminV1AuditDataPermissionDelta $permissionDelta)
{
$this->permissionDelta = $permissionDelta;
}
/**
* @return GoogleIamAdminV1AuditDataPermissionDelta
*/
public function getPermissionDelta()
{
return $this->permissionDelta;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamAdminV1AuditData::class, 'Google_Service_Iam_GoogleIamAdminV1AuditData');

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\Iam;
class GoogleIamAdminV1AuditDataPermissionDelta extends \Google\Collection
{
protected $collection_key = 'removedPermissions';
/**
* @var string[]
*/
public $addedPermissions;
/**
* @var string[]
*/
public $removedPermissions;
/**
* @param string[]
*/
public function setAddedPermissions($addedPermissions)
{
$this->addedPermissions = $addedPermissions;
}
/**
* @return string[]
*/
public function getAddedPermissions()
{
return $this->addedPermissions;
}
/**
* @param string[]
*/
public function setRemovedPermissions($removedPermissions)
{
$this->removedPermissions = $removedPermissions;
}
/**
* @return string[]
*/
public function getRemovedPermissions()
{
return $this->removedPermissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamAdminV1AuditDataPermissionDelta::class, 'Google_Service_Iam_GoogleIamAdminV1AuditDataPermissionDelta');

View File

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

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\Iam;
class GoogleIamV1LoggingAuditData extends \Google\Model
{
protected $policyDeltaType = GoogleIamV1PolicyDelta::class;
protected $policyDeltaDataType = '';
/**
* @param GoogleIamV1PolicyDelta
*/
public function setPolicyDelta(GoogleIamV1PolicyDelta $policyDelta)
{
$this->policyDelta = $policyDelta;
}
/**
* @return GoogleIamV1PolicyDelta
*/
public function getPolicyDelta()
{
return $this->policyDelta;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1LoggingAuditData::class, 'Google_Service_Iam_GoogleIamV1LoggingAuditData');

View File

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

View File

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

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleIamV2DenyRule extends \Google\Collection
{
protected $collection_key = 'exceptionPrincipals';
protected $denialConditionType = GoogleTypeExpr::class;
protected $denialConditionDataType = '';
/**
* @var string[]
*/
public $deniedPermissions;
/**
* @var string[]
*/
public $deniedPrincipals;
/**
* @var string[]
*/
public $exceptionPermissions;
/**
* @var string[]
*/
public $exceptionPrincipals;
/**
* @param GoogleTypeExpr
*/
public function setDenialCondition(GoogleTypeExpr $denialCondition)
{
$this->denialCondition = $denialCondition;
}
/**
* @return GoogleTypeExpr
*/
public function getDenialCondition()
{
return $this->denialCondition;
}
/**
* @param string[]
*/
public function setDeniedPermissions($deniedPermissions)
{
$this->deniedPermissions = $deniedPermissions;
}
/**
* @return string[]
*/
public function getDeniedPermissions()
{
return $this->deniedPermissions;
}
/**
* @param string[]
*/
public function setDeniedPrincipals($deniedPrincipals)
{
$this->deniedPrincipals = $deniedPrincipals;
}
/**
* @return string[]
*/
public function getDeniedPrincipals()
{
return $this->deniedPrincipals;
}
/**
* @param string[]
*/
public function setExceptionPermissions($exceptionPermissions)
{
$this->exceptionPermissions = $exceptionPermissions;
}
/**
* @return string[]
*/
public function getExceptionPermissions()
{
return $this->exceptionPermissions;
}
/**
* @param string[]
*/
public function setExceptionPrincipals($exceptionPrincipals)
{
$this->exceptionPrincipals = $exceptionPrincipals;
}
/**
* @return string[]
*/
public function getExceptionPrincipals()
{
return $this->exceptionPrincipals;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV2DenyRule::class, 'Google_Service_Iam_GoogleIamV2DenyRule');

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

View File

@@ -0,0 +1,205 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleIamV2Policy extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
protected $rulesType = GoogleIamV2PolicyRule::class;
protected $rulesDataType = 'array';
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleIamV2PolicyRule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return GoogleIamV2PolicyRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV2Policy::class, 'Google_Service_Iam_GoogleIamV2Policy');

View File

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

View File

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

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleIamV3OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV3OperationMetadata::class, 'Google_Service_Iam_GoogleIamV3OperationMetadata');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleIamV3alphaOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV3alphaOperationMetadata::class, 'Google_Service_Iam_GoogleIamV3alphaOperationMetadata');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleIamV3betaOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV3betaOperationMetadata::class, 'Google_Service_Iam_GoogleIamV3betaOperationMetadata');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleIamV3mainOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV3mainOperationMetadata::class, 'Google_Service_Iam_GoogleIamV3mainOperationMetadata');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_Iam_GoogleLongrunningOperation');

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\Iam;
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_Iam_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\Iam;
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_Iam_GoogleTypeExpr');

View File

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

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\Iam;
class LintPolicyRequest extends \Google\Model
{
protected $conditionType = Expr::class;
protected $conditionDataType = '';
public $condition;
/**
* @var string
*/
public $fullResourceName;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LintPolicyRequest::class, 'Google_Service_Iam_LintPolicyRequest');

View File

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

View File

@@ -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\Iam;
class LintResult extends \Google\Model
{
/**
* @var string
*/
public $debugMessage;
/**
* @var string
*/
public $fieldName;
/**
* @var string
*/
public $level;
/**
* @var int
*/
public $locationOffset;
/**
* @var string
*/
public $severity;
/**
* @var string
*/
public $validationUnitName;
/**
* @param string
*/
public function setDebugMessage($debugMessage)
{
$this->debugMessage = $debugMessage;
}
/**
* @return string
*/
public function getDebugMessage()
{
return $this->debugMessage;
}
/**
* @param string
*/
public function setFieldName($fieldName)
{
$this->fieldName = $fieldName;
}
/**
* @return string
*/
public function getFieldName()
{
return $this->fieldName;
}
/**
* @param string
*/
public function setLevel($level)
{
$this->level = $level;
}
/**
* @return string
*/
public function getLevel()
{
return $this->level;
}
/**
* @param int
*/
public function setLocationOffset($locationOffset)
{
$this->locationOffset = $locationOffset;
}
/**
* @return int
*/
public function getLocationOffset()
{
return $this->locationOffset;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param string
*/
public function setValidationUnitName($validationUnitName)
{
$this->validationUnitName = $validationUnitName;
}
/**
* @return string
*/
public function getValidationUnitName()
{
return $this->validationUnitName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LintResult::class, 'Google_Service_Iam_LintResult');

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\Iam;
class ListRolesResponse extends \Google\Collection
{
protected $collection_key = 'roles';
/**
* @var string
*/
public $nextPageToken;
protected $rolesType = Role::class;
protected $rolesDataType = 'array';
public $roles;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Role[]
*/
public function setRoles($roles)
{
$this->roles = $roles;
}
/**
* @return Role[]
*/
public function getRoles()
{
return $this->roles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRolesResponse::class, 'Google_Service_Iam_ListRolesResponse');

View File

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

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\Iam;
class ListServiceAccountsResponse extends \Google\Collection
{
protected $collection_key = 'accounts';
protected $accountsType = ServiceAccount::class;
protected $accountsDataType = 'array';
public $accounts;
/**
* @var string
*/
public $nextPageToken;
/**
* @param ServiceAccount[]
*/
public function setAccounts($accounts)
{
$this->accounts = $accounts;
}
/**
* @return ServiceAccount[]
*/
public function getAccounts()
{
return $this->accounts;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServiceAccountsResponse::class, 'Google_Service_Iam_ListServiceAccountsResponse');

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\Iam;
class ListWorkloadIdentityPoolProvidersResponse extends \Google\Collection
{
protected $collection_key = 'workloadIdentityPoolProviders';
/**
* @var string
*/
public $nextPageToken;
protected $workloadIdentityPoolProvidersType = WorkloadIdentityPoolProvider::class;
protected $workloadIdentityPoolProvidersDataType = 'array';
public $workloadIdentityPoolProviders;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param WorkloadIdentityPoolProvider[]
*/
public function setWorkloadIdentityPoolProviders($workloadIdentityPoolProviders)
{
$this->workloadIdentityPoolProviders = $workloadIdentityPoolProviders;
}
/**
* @return WorkloadIdentityPoolProvider[]
*/
public function getWorkloadIdentityPoolProviders()
{
return $this->workloadIdentityPoolProviders;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkloadIdentityPoolProvidersResponse::class, 'Google_Service_Iam_ListWorkloadIdentityPoolProvidersResponse');

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\Iam;
class ListWorkloadIdentityPoolsResponse extends \Google\Collection
{
protected $collection_key = 'workloadIdentityPools';
/**
* @var string
*/
public $nextPageToken;
protected $workloadIdentityPoolsType = WorkloadIdentityPool::class;
protected $workloadIdentityPoolsDataType = 'array';
public $workloadIdentityPools;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param WorkloadIdentityPool[]
*/
public function setWorkloadIdentityPools($workloadIdentityPools)
{
$this->workloadIdentityPools = $workloadIdentityPools;
}
/**
* @return WorkloadIdentityPool[]
*/
public function getWorkloadIdentityPools()
{
return $this->workloadIdentityPools;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkloadIdentityPoolsResponse::class, 'Google_Service_Iam_ListWorkloadIdentityPoolsResponse');

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\Iam;
class Oidc extends \Google\Collection
{
protected $collection_key = 'allowedAudiences';
/**
* @var string[]
*/
public $allowedAudiences;
/**
* @var string
*/
public $issuerUri;
/**
* @param string[]
*/
public function setAllowedAudiences($allowedAudiences)
{
$this->allowedAudiences = $allowedAudiences;
}
/**
* @return string[]
*/
public function getAllowedAudiences()
{
return $this->allowedAudiences;
}
/**
* @param string
*/
public function setIssuerUri($issuerUri)
{
$this->issuerUri = $issuerUri;
}
/**
* @return string
*/
public function getIssuerUri()
{
return $this->issuerUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Oidc::class, 'Google_Service_Iam_Oidc');

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
public $error;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Iam_Operation');

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\Iam;
class PatchServiceAccountRequest extends \Google\Model
{
protected $serviceAccountType = ServiceAccount::class;
protected $serviceAccountDataType = '';
public $serviceAccount;
/**
* @var string
*/
public $updateMask;
/**
* @param ServiceAccount
*/
public function setServiceAccount(ServiceAccount $serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return ServiceAccount
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PatchServiceAccountRequest::class, 'Google_Service_Iam_PatchServiceAccountRequest');

View File

@@ -0,0 +1,170 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class Permission extends \Google\Model
{
/**
* @var bool
*/
public $apiDisabled;
/**
* @var string
*/
public $customRolesSupportLevel;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $onlyInPredefinedRoles;
/**
* @var string
*/
public $primaryPermission;
/**
* @var string
*/
public $stage;
/**
* @var string
*/
public $title;
/**
* @param bool
*/
public function setApiDisabled($apiDisabled)
{
$this->apiDisabled = $apiDisabled;
}
/**
* @return bool
*/
public function getApiDisabled()
{
return $this->apiDisabled;
}
/**
* @param string
*/
public function setCustomRolesSupportLevel($customRolesSupportLevel)
{
$this->customRolesSupportLevel = $customRolesSupportLevel;
}
/**
* @return string
*/
public function getCustomRolesSupportLevel()
{
return $this->customRolesSupportLevel;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setOnlyInPredefinedRoles($onlyInPredefinedRoles)
{
$this->onlyInPredefinedRoles = $onlyInPredefinedRoles;
}
/**
* @return bool
*/
public function getOnlyInPredefinedRoles()
{
return $this->onlyInPredefinedRoles;
}
/**
* @param string
*/
public function setPrimaryPermission($primaryPermission)
{
$this->primaryPermission = $primaryPermission;
}
/**
* @return string
*/
public function getPrimaryPermission()
{
return $this->primaryPermission;
}
/**
* @param string
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return string
*/
public function getStage()
{
return $this->stage;
}
/**
* @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(Permission::class, 'Google_Service_Iam_Permission');

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\Iam;
class PermissionDelta extends \Google\Collection
{
protected $collection_key = 'removedPermissions';
/**
* @var string[]
*/
public $addedPermissions;
/**
* @var string[]
*/
public $removedPermissions;
/**
* @param string[]
*/
public function setAddedPermissions($addedPermissions)
{
$this->addedPermissions = $addedPermissions;
}
/**
* @return string[]
*/
public function getAddedPermissions()
{
return $this->addedPermissions;
}
/**
* @param string[]
*/
public function setRemovedPermissions($removedPermissions)
{
$this->removedPermissions = $removedPermissions;
}
/**
* @return string[]
*/
public function getRemovedPermissions()
{
return $this->removedPermissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PermissionDelta::class, 'Google_Service_Iam_PermissionDelta');

View File

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

View File

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

View File

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

View File

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

View File

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

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\Iam;
class QueryGrantableRolesRequest extends \Google\Model
{
/**
* @var string
*/
public $fullResourceName;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
/**
* @var string
*/
public $view;
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param string
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return string
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryGrantableRolesRequest::class, 'Google_Service_Iam_QueryGrantableRolesRequest');

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\Iam;
class QueryGrantableRolesResponse extends \Google\Collection
{
protected $collection_key = 'roles';
/**
* @var string
*/
public $nextPageToken;
protected $rolesType = Role::class;
protected $rolesDataType = 'array';
public $roles;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Role[]
*/
public function setRoles($roles)
{
$this->roles = $roles;
}
/**
* @return Role[]
*/
public function getRoles()
{
return $this->roles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryGrantableRolesResponse::class, 'Google_Service_Iam_QueryGrantableRolesResponse');

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\Iam;
class QueryTestablePermissionsRequest extends \Google\Model
{
/**
* @var string
*/
public $fullResourceName;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryTestablePermissionsRequest::class, 'Google_Service_Iam_QueryTestablePermissionsRequest');

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\Iam;
class QueryTestablePermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string
*/
public $nextPageToken;
protected $permissionsType = Permission::class;
protected $permissionsDataType = 'array';
public $permissions;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Permission[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return Permission[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryTestablePermissionsResponse::class, 'Google_Service_Iam_QueryTestablePermissionsResponse');

View File

@@ -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\Iam\Resource;
use Google\Service\Iam\LintPolicyRequest;
use Google\Service\Iam\LintPolicyResponse;
use Google\Service\Iam\QueryAuditableServicesRequest;
use Google\Service\Iam\QueryAuditableServicesResponse;
/**
* The "iamPolicies" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $iamPolicies = $iamService->iamPolicies;
* </code>
*/
class IamPolicies extends \Google\Service\Resource
{
/**
* Lints, or validates, an IAM policy. Currently checks the
* google.iam.v1.Binding.condition field, which contains a condition expression
* for a role binding. Successful calls to this method always return an HTTP
* `200 OK` status code, even if the linter detects an issue in the IAM policy.
* (iamPolicies.lintPolicy)
*
* @param LintPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return LintPolicyResponse
*/
public function lintPolicy(LintPolicyRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lintPolicy', [$params], LintPolicyResponse::class);
}
/**
* Returns a list of services that allow you to opt into audit logs that are not
* generated by default. To learn more about audit logs, see the [Logging
* documentation](https://cloud.google.com/logging/docs/audit).
* (iamPolicies.queryAuditableServices)
*
* @param QueryAuditableServicesRequest $postBody
* @param array $optParams Optional parameters.
* @return QueryAuditableServicesResponse
*/
public function queryAuditableServices(QueryAuditableServicesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('queryAuditableServices', [$params], QueryAuditableServicesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IamPolicies::class, 'Google_Service_Iam_Resource_IamPolicies');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $locations = $iamService->locations;
* </code>
*/
class Locations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_Iam_Resource_Locations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "workforcePools" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $workforcePools = $iamService->locations_workforcePools;
* </code>
*/
class LocationsWorkforcePools extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePools::class, 'Google_Service_Iam_Resource_LocationsWorkforcePools');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->locations_workforcePools_operations;
* </code>
*/
class LocationsWorkforcePoolsOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsOperations::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsOperations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "providers" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $providers = $iamService->locations_workforcePools_providers;
* </code>
*/
class LocationsWorkforcePoolsProviders extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsProviders::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsProviders');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "keys" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $keys = $iamService->locations_workforcePools_providers_keys;
* </code>
*/
class LocationsWorkforcePoolsProvidersKeys extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsProvidersKeys::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsProvidersKeys');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->locations_workforcePools_providers_keys_operations;
* </code>
*/
class LocationsWorkforcePoolsProvidersKeysOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsProvidersKeysOperations::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsProvidersKeysOperations');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->locations_workforcePools_providers_operations;
* </code>
*/
class LocationsWorkforcePoolsProvidersOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsProvidersOperations::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsProvidersOperations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "subjects" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $subjects = $iamService->locations_workforcePools_subjects;
* </code>
*/
class LocationsWorkforcePoolsSubjects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsSubjects::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsSubjects');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->locations_workforcePools_subjects_operations;
* </code>
*/
class LocationsWorkforcePoolsSubjectsOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsWorkforcePoolsSubjectsOperations::class, 'Google_Service_Iam_Resource_LocationsWorkforcePoolsSubjectsOperations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $organizations = $iamService->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_Iam_Resource_Organizations');

View File

@@ -0,0 +1,256 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\CreateRoleRequest;
use Google\Service\Iam\ListRolesResponse;
use Google\Service\Iam\Role;
use Google\Service\Iam\UndeleteRoleRequest;
/**
* The "roles" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $roles = $iamService->organizations_roles;
* </code>
*/
class OrganizationsRoles extends \Google\Service\Resource
{
/**
* Creates a new custom Role. (roles.create)
*
* @param string $parent The `parent` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `parent` value format is described below: *
* [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/pr
* ojects.roles/create): `projects/{PROJECT_ID}`. This method creates project-
* level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles). Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations
* .roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organization
* s.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates
* organization-level [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles). Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note:
* Wildcard (*) values are invalid; you must specify a complete project ID or
* organization ID.
* @param CreateRoleRequest $postBody
* @param array $optParams Optional parameters.
* @return Role
*/
public function create($parent, CreateRoleRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Role::class);
}
/**
* Deletes a custom Role. When you delete a custom role, the following changes
* occur immediately: * You cannot bind a principal to the custom role in an IAM
* Policy. * Existing bindings to the custom role are not changed, but they have
* no effect. * By default, the response from ListRoles does not include the
* custom role. You have 7 days to undelete the custom role. After 7 days, the
* following changes occur: * The custom role is permanently deleted and cannot
* be recovered. * If an IAM policy contains a binding to the custom role, the
* binding is permanently removed. (roles.delete)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: * [
* `projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/pro
* jects.roles/delete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This
* method deletes only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the project level.
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/res
* t/v1/organizations.roles/delete):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Used to perform a consistent read-modify-write.
* @return Role
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Role::class);
}
/**
* Gets the definition of a Role. (roles.get)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: *
* [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get):
* `roles/{ROLE_NAME}`. This method returns results from all [predefined
* roles](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) in Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * [`projects.roles.get()`](
* https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
* `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
* [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles)
* that have been created at the project level. Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v
* 1/organizations.roles/get):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param array $optParams Optional parameters.
* @return Role
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Role::class);
}
/**
* Lists every predefined Role that IAM supports, or every custom role that is
* defined for an organization or project. (roles.listOrganizationsRoles)
*
* @param string $parent The `parent` parameter's value depends on the target
* resource for the request, namely
* [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `parent` value format is described below: *
* [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list):
* An empty string. This method doesn't require a resource; it simply returns
* all [predefined roles](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) in Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles` * [`projects.roles.list()`](https://clo
* ud.google.com/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level [custom
* roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example
* request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`
* organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/o
* rganizations.roles/list): `organizations/{ORGANIZATION_ID}`. This method
* lists all organization-level [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles). Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note:
* Wildcard (*) values are invalid; you must specify a complete project ID or
* organization ID.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional limit on the number of roles to include in
* the response. The default is 300, and the maximum is 1,000.
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListRolesResponse.
* @opt_param bool showDeleted Include Roles that have been deleted.
* @opt_param string view Optional view for the returned Role objects. When
* `FULL` is specified, the `includedPermissions` field is returned, which
* includes a list of all permissions in the role. The default value is `BASIC`,
* which does not return the `includedPermissions` field.
* @return ListRolesResponse
*/
public function listOrganizationsRoles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolesResponse::class);
}
/**
* Updates the definition of a custom Role. (roles.patch)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: * [
* `projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/proj
* ects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This
* method updates only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the project level.
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest
* /v1/organizations.roles/patch):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param Role $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask A mask describing which fields in the Role have
* changed.
* @return Role
*/
public function patch($name, Role $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Role::class);
}
/**
* Undeletes a custom Role. (roles.undelete)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: * [
* `projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/p
* rojects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This
* method undeletes only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the project level.
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/r
* est/v1/organizations.roles/undelete):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
* undeletes only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the organization
* level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORG
* ANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid;
* you must specify a complete project ID or organization ID.
* @param UndeleteRoleRequest $postBody
* @param array $optParams Optional parameters.
* @return Role
*/
public function undelete($name, UndeleteRoleRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Role::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsRoles::class, 'Google_Service_Iam_Resource_OrganizationsRoles');

View File

@@ -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\Iam\Resource;
use Google\Service\Iam\QueryTestablePermissionsRequest;
use Google\Service\Iam\QueryTestablePermissionsResponse;
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $permissions = $iamService->permissions;
* </code>
*/
class Permissions extends \Google\Service\Resource
{
/**
* Lists every permission that you can test on a resource. A permission is
* testable if you can check whether a principal has that permission on the
* resource. (permissions.queryTestablePermissions)
*
* @param QueryTestablePermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return QueryTestablePermissionsResponse
*/
public function queryTestablePermissions(QueryTestablePermissionsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('queryTestablePermissions', [$params], QueryTestablePermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Permissions::class, 'Google_Service_Iam_Resource_Permissions');

View File

@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\GoogleIamV2ListPoliciesResponse;
use Google\Service\Iam\GoogleIamV2Policy;
use Google\Service\Iam\GoogleLongrunningOperation;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $policies = $iamService->policies;
* </code>
*/
class Policies extends \Google\Service\Resource
{
/**
* Creates a policy. (policies.createPolicy)
*
* @param string $parent Required. The resource that the policy is attached to,
* along with the kind of policy to create. Format:
* `policies/{attachment_point}/denypolicies` The attachment point is identified
* by its URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
* project/denypolicies`. For organizations and folders, use the numeric ID in
* the full resource name. For projects, you can use the alphanumeric or the
* numeric ID.
* @param GoogleIamV2Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string policyId The ID to use for this policy, which will become
* the final component of the policy's resource name. The ID must contain 3 to
* 63 characters. It can contain lowercase letters and numbers, as well as
* dashes (`-`) and periods (`.`). The first character must be a lowercase
* letter.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function createPolicy($parent, GoogleIamV2Policy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createPolicy', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes a policy. This action is permanent. (policies.delete)
*
* @param string $name Required. The resource name of the policy to delete.
* Format: `policies/{attachment_point}/denypolicies/{policy_id}` Use the URL-
* encoded full resource name, which means that the forward-slash character,
* `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
* project/denypolicies/my-policy`. For organizations and folders, use the
* numeric ID in the full resource name. For projects, you can use the
* alphanumeric or the numeric ID.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The expected `etag` of the policy to delete.
* If the value does not match the value that is stored in IAM, the request
* fails with a `409` error code and `ABORTED` status. If you omit this field,
* the policy is deleted regardless of its current `etag`.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets a policy. (policies.get)
*
* @param string $name Required. The resource name of the policy to retrieve.
* Format: `policies/{attachment_point}/denypolicies/{policy_id}` Use the URL-
* encoded full resource name, which means that the forward-slash character,
* `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
* project/denypolicies/my-policy`. For organizations and folders, use the
* numeric ID in the full resource name. For projects, you can use the
* alphanumeric or the numeric ID.
* @param array $optParams Optional parameters.
* @return GoogleIamV2Policy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleIamV2Policy::class);
}
/**
* Retrieves the policies of the specified kind that are attached to a resource.
* The response lists only policy metadata. In particular, policy rules are
* omitted. (policies.listPolicies)
*
* @param string $parent Required. The resource that the policy is attached to,
* along with the kind of policy to list. Format:
* `policies/{attachment_point}/denypolicies` The attachment point is identified
* by its URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
* project/denypolicies`. For organizations and folders, use the numeric ID in
* the full resource name. For projects, you can use the alphanumeric or the
* numeric ID.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of policies to return. IAM ignores
* this value and uses the value 1000.
* @opt_param string pageToken A page token received in a ListPoliciesResponse.
* Provide this token to retrieve the next page.
* @return GoogleIamV2ListPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listPolicies', [$params], GoogleIamV2ListPoliciesResponse::class);
}
/**
* Updates the specified policy. You can update only the rules and the display
* name for the policy. To update a policy, you should use a read-modify-write
* loop: 1. Use GetPolicy to read the current version of the policy. 2. Modify
* the policy as needed. 3. Use `UpdatePolicy` to write the updated policy. This
* pattern helps prevent conflicts between concurrent updates. (policies.update)
*
* @param string $name Immutable. The resource name of the `Policy`, which must
* be unique. Format: `policies/{attachment_point}/denypolicies/{policy_id}` The
* attachment point is identified by its URL-encoded full resource name, which
* means that the forward-slash character, `/`, must be written as `%2F`. For
* example, `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-
* project/denypolicies/my-deny-policy`. For organizations and folders, use the
* numeric ID in the full resource name. For projects, requests can use the
* alphanumeric or the numeric ID. Responses always contain the numeric ID.
* @param GoogleIamV2Policy $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function update($name, GoogleIamV2Policy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policies::class, 'Google_Service_Iam_Resource_Policies');

View File

@@ -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\Iam\Resource;
use Google\Service\Iam\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->policies_operations;
* </code>
*/
class PoliciesOperations 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(PoliciesOperations::class, 'Google_Service_Iam_Resource_PoliciesOperations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $projects = $iamService->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_Iam_Resource_Projects');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $locations = $iamService->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_Iam_Resource_ProjectsLocations');

View File

@@ -0,0 +1,146 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\ListWorkloadIdentityPoolsResponse;
use Google\Service\Iam\Operation;
use Google\Service\Iam\UndeleteWorkloadIdentityPoolRequest;
use Google\Service\Iam\WorkloadIdentityPool;
/**
* The "workloadIdentityPools" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $workloadIdentityPools = $iamService->projects_locations_workloadIdentityPools;
* </code>
*/
class ProjectsLocationsWorkloadIdentityPools extends \Google\Service\Resource
{
/**
* Creates a new WorkloadIdentityPool. You cannot reuse the name of a deleted
* pool until 30 days after deletion. (workloadIdentityPools.create)
*
* @param string $parent Required. The parent resource to create the pool in.
* The only supported location is `global`.
* @param WorkloadIdentityPool $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string workloadIdentityPoolId Required. The ID to use for the
* pool, which becomes the final component of the resource name. This value
* should be 4-32 characters, and may contain the characters [a-z0-9-]. The
* prefix `gcp-` is reserved for use by Google, and may not be specified.
* @return Operation
*/
public function create($parent, WorkloadIdentityPool $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a WorkloadIdentityPool. You cannot use a deleted pool to exchange
* external credentials for Google Cloud credentials. However, deletion does not
* revoke credentials that have already been issued. Credentials issued for a
* deleted pool do not grant access to resources. If the pool is undeleted, and
* the credentials are not expired, they grant access again. You can undelete a
* pool for 30 days. After 30 days, deletion is permanent. You cannot update
* deleted pools. However, you can view and list them.
* (workloadIdentityPools.delete)
*
* @param string $name Required. The name of the pool to delete.
* @param array $optParams Optional parameters.
* @return Operation
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an individual WorkloadIdentityPool. (workloadIdentityPools.get)
*
* @param string $name Required. The name of the pool to retrieve.
* @param array $optParams Optional parameters.
* @return WorkloadIdentityPool
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkloadIdentityPool::class);
}
/**
* Lists all non-deleted WorkloadIdentityPools in a project. If `show_deleted`
* is set to `true`, then deleted pools are also listed.
* (workloadIdentityPools.listProjectsLocationsWorkloadIdentityPools)
*
* @param string $parent Required. The parent resource to list pools for.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of pools to return. If
* unspecified, at most 50 pools are returned. The maximum value is 1000; values
* above are 1000 truncated to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListWorkloadIdentityPools` call. Provide this to retrieve the subsequent
* page.
* @opt_param bool showDeleted Whether to return soft-deleted pools.
* @return ListWorkloadIdentityPoolsResponse
*/
public function listProjectsLocationsWorkloadIdentityPools($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkloadIdentityPoolsResponse::class);
}
/**
* Updates an existing WorkloadIdentityPool. (workloadIdentityPools.patch)
*
* @param string $name Output only. The resource name of the pool.
* @param WorkloadIdentityPool $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to update.
* @return Operation
*/
public function patch($name, WorkloadIdentityPool $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Undeletes a WorkloadIdentityPool, as long as it was deleted fewer than 30
* days ago. (workloadIdentityPools.undelete)
*
* @param string $name Required. The name of the pool to undelete.
* @param UndeleteWorkloadIdentityPoolRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
*/
public function undelete($name, UndeleteWorkloadIdentityPoolRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadIdentityPools::class, 'Google_Service_Iam_Resource_ProjectsLocationsWorkloadIdentityPools');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->projects_locations_workloadIdentityPools_operations;
* </code>
*/
class ProjectsLocationsWorkloadIdentityPoolsOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadIdentityPoolsOperations::class, 'Google_Service_Iam_Resource_ProjectsLocationsWorkloadIdentityPoolsOperations');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\ListWorkloadIdentityPoolProvidersResponse;
use Google\Service\Iam\Operation;
use Google\Service\Iam\UndeleteWorkloadIdentityPoolProviderRequest;
use Google\Service\Iam\WorkloadIdentityPoolProvider;
/**
* The "providers" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $providers = $iamService->projects_locations_workloadIdentityPools_providers;
* </code>
*/
class ProjectsLocationsWorkloadIdentityPoolsProviders extends \Google\Service\Resource
{
/**
* Creates a new WorkloadIdentityPoolProvider in a WorkloadIdentityPool. You
* cannot reuse the name of a deleted provider until 30 days after deletion.
* (providers.create)
*
* @param string $parent Required. The pool to create this provider in.
* @param WorkloadIdentityPoolProvider $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string workloadIdentityPoolProviderId Required. The ID for the
* provider, which becomes the final component of the resource name. This value
* must be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix
* `gcp-` is reserved for use by Google, and may not be specified.
* @return Operation
*/
public function create($parent, WorkloadIdentityPoolProvider $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a WorkloadIdentityPoolProvider. Deleting a provider does not revoke
* credentials that have already been issued; they continue to grant access. You
* can undelete a provider for 30 days. After 30 days, deletion is permanent.
* You cannot update deleted providers. However, you can view and list them.
* (providers.delete)
*
* @param string $name Required. The name of the provider to delete.
* @param array $optParams Optional parameters.
* @return Operation
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an individual WorkloadIdentityPoolProvider. (providers.get)
*
* @param string $name Required. The name of the provider to retrieve.
* @param array $optParams Optional parameters.
* @return WorkloadIdentityPoolProvider
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkloadIdentityPoolProvider::class);
}
/**
* Lists all non-deleted WorkloadIdentityPoolProviders in a
* WorkloadIdentityPool. If `show_deleted` is set to `true`, then deleted
* providers are also listed.
* (providers.listProjectsLocationsWorkloadIdentityPoolsProviders)
*
* @param string $parent Required. The pool to list providers for.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of providers to return. If
* unspecified, at most 50 providers are returned. The maximum value is 100;
* values above 100 are truncated to 100.
* @opt_param string pageToken A page token, received from a previous
* `ListWorkloadIdentityPoolProviders` call. Provide this to retrieve the
* subsequent page.
* @opt_param bool showDeleted Whether to return soft-deleted providers.
* @return ListWorkloadIdentityPoolProvidersResponse
*/
public function listProjectsLocationsWorkloadIdentityPoolsProviders($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkloadIdentityPoolProvidersResponse::class);
}
/**
* Updates an existing WorkloadIdentityPoolProvider. (providers.patch)
*
* @param string $name Output only. The resource name of the provider.
* @param WorkloadIdentityPoolProvider $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to update.
* @return Operation
*/
public function patch($name, WorkloadIdentityPoolProvider $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Undeletes a WorkloadIdentityPoolProvider, as long as it was deleted fewer
* than 30 days ago. (providers.undelete)
*
* @param string $name Required. The name of the provider to undelete.
* @param UndeleteWorkloadIdentityPoolProviderRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
*/
public function undelete($name, UndeleteWorkloadIdentityPoolProviderRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadIdentityPoolsProviders::class, 'Google_Service_Iam_Resource_ProjectsLocationsWorkloadIdentityPoolsProviders');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
/**
* The "keys" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $keys = $iamService->projects_locations_workloadIdentityPools_providers_keys;
* </code>
*/
class ProjectsLocationsWorkloadIdentityPoolsProvidersKeys extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadIdentityPoolsProvidersKeys::class, 'Google_Service_Iam_Resource_ProjectsLocationsWorkloadIdentityPoolsProvidersKeys');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->projects_locations_workloadIdentityPools_providers_keys_operations;
* </code>
*/
class ProjectsLocationsWorkloadIdentityPoolsProvidersKeysOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadIdentityPoolsProvidersKeysOperations::class, 'Google_Service_Iam_Resource_ProjectsLocationsWorkloadIdentityPoolsProvidersKeysOperations');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $operations = $iamService->projects_locations_workloadIdentityPools_providers_operations;
* </code>
*/
class ProjectsLocationsWorkloadIdentityPoolsProvidersOperations 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 Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadIdentityPoolsProvidersOperations::class, 'Google_Service_Iam_Resource_ProjectsLocationsWorkloadIdentityPoolsProvidersOperations');

View File

@@ -0,0 +1,256 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\CreateRoleRequest;
use Google\Service\Iam\ListRolesResponse;
use Google\Service\Iam\Role;
use Google\Service\Iam\UndeleteRoleRequest;
/**
* The "roles" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $roles = $iamService->projects_roles;
* </code>
*/
class ProjectsRoles extends \Google\Service\Resource
{
/**
* Creates a new custom Role. (roles.create)
*
* @param string $parent The `parent` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `parent` value format is described below: *
* [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/pr
* ojects.roles/create): `projects/{PROJECT_ID}`. This method creates project-
* level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles). Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations
* .roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organization
* s.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates
* organization-level [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles). Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note:
* Wildcard (*) values are invalid; you must specify a complete project ID or
* organization ID.
* @param CreateRoleRequest $postBody
* @param array $optParams Optional parameters.
* @return Role
*/
public function create($parent, CreateRoleRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Role::class);
}
/**
* Deletes a custom Role. When you delete a custom role, the following changes
* occur immediately: * You cannot bind a principal to the custom role in an IAM
* Policy. * Existing bindings to the custom role are not changed, but they have
* no effect. * By default, the response from ListRoles does not include the
* custom role. You have 7 days to undelete the custom role. After 7 days, the
* following changes occur: * The custom role is permanently deleted and cannot
* be recovered. * If an IAM policy contains a binding to the custom role, the
* binding is permanently removed. (roles.delete)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: * [
* `projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/pro
* jects.roles/delete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This
* method deletes only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the project level.
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/res
* t/v1/organizations.roles/delete):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Used to perform a consistent read-modify-write.
* @return Role
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Role::class);
}
/**
* Gets the definition of a Role. (roles.get)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: *
* [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get):
* `roles/{ROLE_NAME}`. This method returns results from all [predefined
* roles](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) in Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * [`projects.roles.get()`](
* https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
* `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
* [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles)
* that have been created at the project level. Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v
* 1/organizations.roles/get):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param array $optParams Optional parameters.
* @return Role
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Role::class);
}
/**
* Lists every predefined Role that IAM supports, or every custom role that is
* defined for an organization or project. (roles.listProjectsRoles)
*
* @param string $parent The `parent` parameter's value depends on the target
* resource for the request, namely
* [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `parent` value format is described below: *
* [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list):
* An empty string. This method doesn't require a resource; it simply returns
* all [predefined roles](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) in Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles` * [`projects.roles.list()`](https://clo
* ud.google.com/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level [custom
* roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example
* request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`
* organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/o
* rganizations.roles/list): `organizations/{ORGANIZATION_ID}`. This method
* lists all organization-level [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles). Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note:
* Wildcard (*) values are invalid; you must specify a complete project ID or
* organization ID.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional limit on the number of roles to include in
* the response. The default is 300, and the maximum is 1,000.
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListRolesResponse.
* @opt_param bool showDeleted Include Roles that have been deleted.
* @opt_param string view Optional view for the returned Role objects. When
* `FULL` is specified, the `includedPermissions` field is returned, which
* includes a list of all permissions in the role. The default value is `BASIC`,
* which does not return the `includedPermissions` field.
* @return ListRolesResponse
*/
public function listProjectsRoles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolesResponse::class);
}
/**
* Updates the definition of a custom Role. (roles.patch)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: * [
* `projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/proj
* ects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This
* method updates only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the project level.
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest
* /v1/organizations.roles/patch):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param Role $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask A mask describing which fields in the Role have
* changed.
* @return Role
*/
public function patch($name, Role $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Role::class);
}
/**
* Undeletes a custom Role. (roles.undelete)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: * [
* `projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/p
* rojects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This
* method undeletes only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the project level.
* Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/r
* est/v1/organizations.roles/undelete):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
* undeletes only [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles) that have been created at the organization
* level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORG
* ANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid;
* you must specify a complete project ID or organization ID.
* @param UndeleteRoleRequest $postBody
* @param array $optParams Optional parameters.
* @return Role
*/
public function undelete($name, UndeleteRoleRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Role::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsRoles::class, 'Google_Service_Iam_Resource_ProjectsRoles');

View File

@@ -0,0 +1,434 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\CreateServiceAccountRequest;
use Google\Service\Iam\DisableServiceAccountRequest;
use Google\Service\Iam\EnableServiceAccountRequest;
use Google\Service\Iam\IamEmpty;
use Google\Service\Iam\ListServiceAccountsResponse;
use Google\Service\Iam\PatchServiceAccountRequest;
use Google\Service\Iam\Policy;
use Google\Service\Iam\ServiceAccount;
use Google\Service\Iam\SetIamPolicyRequest;
use Google\Service\Iam\SignBlobRequest;
use Google\Service\Iam\SignBlobResponse;
use Google\Service\Iam\SignJwtRequest;
use Google\Service\Iam\SignJwtResponse;
use Google\Service\Iam\TestIamPermissionsRequest;
use Google\Service\Iam\TestIamPermissionsResponse;
use Google\Service\Iam\UndeleteServiceAccountRequest;
use Google\Service\Iam\UndeleteServiceAccountResponse;
/**
* The "serviceAccounts" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $serviceAccounts = $iamService->projects_serviceAccounts;
* </code>
*/
class ProjectsServiceAccounts extends \Google\Service\Resource
{
/**
* Creates a ServiceAccount. (serviceAccounts.create)
*
* @param string $name Required. The resource name of the project associated
* with the service accounts, such as `projects/my-project-123`.
* @param CreateServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return ServiceAccount
*/
public function create($name, CreateServiceAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ServiceAccount::class);
}
/**
* Deletes a ServiceAccount. **Warning:** After you delete a service account,
* you might not be able to undelete it. If you know that you need to re-enable
* the service account in the future, use DisableServiceAccount instead. If you
* delete a service account, IAM permanently removes the service account 30 days
* later. Google Cloud cannot recover the service account after it is
* permanently removed, even if you file a support request. To help avoid
* unplanned outages, we recommend that you disable the service account before
* you delete it. Use DisableServiceAccount to disable the service account, then
* wait at least 24 hours and watch for unintended consequences. If there are no
* unintended consequences, you can delete the service account.
* (serviceAccounts.delete)
*
* @param string $name Required. The resource name of the service account. Use
* one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param array $optParams Optional parameters.
* @return IamEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], IamEmpty::class);
}
/**
* Disables a ServiceAccount immediately. If an application uses the service
* account to authenticate, that application can no longer call Google APIs or
* access Google Cloud resources. Existing access tokens for the service account
* are rejected, and requests for new access tokens will fail. To re-enable the
* service account, use EnableServiceAccount. After you re-enable the service
* account, its existing access tokens will be accepted, and you can request new
* access tokens. To help avoid unplanned outages, we recommend that you disable
* the service account before you delete it. Use this method to disable the
* service account, then wait at least 24 hours and watch for unintended
* consequences. If there are no unintended consequences, you can delete the
* service account with DeleteServiceAccount. (serviceAccounts.disable)
*
* @param string $name The resource name of the service account. Use one of the
* following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
* * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param DisableServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return IamEmpty
*/
public function disable($name, DisableServiceAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disable', [$params], IamEmpty::class);
}
/**
* Enables a ServiceAccount that was disabled by DisableServiceAccount. If the
* service account is already enabled, then this method has no effect. If the
* service account was disabled by other means—for example, if Google disabled
* the service account because it was compromised—you cannot use this method to
* enable the service account. (serviceAccounts.enable)
*
* @param string $name The resource name of the service account. Use one of the
* following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
* * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param EnableServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return IamEmpty
*/
public function enable($name, EnableServiceAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enable', [$params], IamEmpty::class);
}
/**
* Gets a ServiceAccount. (serviceAccounts.get)
*
* @param string $name Required. The resource name of the service account. Use
* one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param array $optParams Optional parameters.
* @return ServiceAccount
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceAccount::class);
}
/**
* Gets the IAM policy that is attached to a ServiceAccount. This IAM policy
* specifies which principals have access to the service account. This method
* does not tell you whether the service account has been granted any roles on
* other resources. To check whether a service account has role grants on a
* resource, use the `getIamPolicy` method for that resource. For example, to
* view the role grants for a project, call the Resource Manager API's
* [`projects.getIamPolicy`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects/getIamPolicy) method.
* (serviceAccounts.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists every ServiceAccount that belongs to a specific project.
* (serviceAccounts.listProjectsServiceAccounts)
*
* @param string $name Required. The resource name of the project associated
* with the service accounts, such as `projects/my-project-123`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional limit on the number of service accounts to
* include in the response. Further accounts can subsequently be obtained by
* including the ListServiceAccountsResponse.next_page_token in a subsequent
* request. The default is 20, and the maximum is 100.
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListServiceAccountsResponse.next_page_token.
* @return ListServiceAccountsResponse
*/
public function listProjectsServiceAccounts($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceAccountsResponse::class);
}
/**
* Patches a ServiceAccount. (serviceAccounts.patch)
*
* @param string $name The resource name of the service account. Use one of the
* following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
* * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param PatchServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return ServiceAccount
*/
public function patch($name, PatchServiceAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ServiceAccount::class);
}
/**
* Sets the IAM policy that is attached to a ServiceAccount. Use this method to
* grant or revoke access to the service account. For example, you could grant a
* principal the ability to impersonate the service account. This method does
* not enable the service account to access other resources. To grant roles to a
* service account on a resource, follow these steps: 1. Call the resource's
* `getIamPolicy` method to get its current IAM policy. 2. Edit the policy so
* that it binds the service account to an IAM role for the resource. 3. Call
* the resource's `setIamPolicy` method to update its IAM policy. For detailed
* instructions, see [Manage access to project, folders, and
* organizations](https://cloud.google.com/iam/help/service-accounts/granting-
* access-to-service-accounts) or [Manage access to other
* resources](https://cloud.google.com/iam/help/access/manage-other-resources).
* (serviceAccounts.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* **Note:** This method is deprecated. Use the
* [`signBlob`](https://cloud.google.com/iam/help/rest-
* credentials/v1/projects.serviceAccounts/signBlob) method in the IAM Service
* Account Credentials API instead. If you currently use this method, see the
* [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api)
* for instructions. Signs a blob using the system-managed private key for a
* ServiceAccount. (serviceAccounts.signBlob)
*
* @param string $name Required. Deprecated. [Migrate to Service Account
* Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api).
* The resource name of the service account. Use one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param SignBlobRequest $postBody
* @param array $optParams Optional parameters.
* @return SignBlobResponse
*/
public function signBlob($name, SignBlobRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('signBlob', [$params], SignBlobResponse::class);
}
/**
* **Note:** This method is deprecated. Use the
* [`signJwt`](https://cloud.google.com/iam/help/rest-
* credentials/v1/projects.serviceAccounts/signJwt) method in the IAM Service
* Account Credentials API instead. If you currently use this method, see the
* [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api)
* for instructions. Signs a JSON Web Token (JWT) using the system-managed
* private key for a ServiceAccount. (serviceAccounts.signJwt)
*
* @param string $name Required. Deprecated. [Migrate to Service Account
* Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api).
* The resource name of the service account. Use one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param SignJwtRequest $postBody
* @param array $optParams Optional parameters.
* @return SignJwtResponse
*/
public function signJwt($name, SignJwtRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('signJwt', [$params], SignJwtResponse::class);
}
/**
* Tests whether the caller has the specified permissions on a ServiceAccount.
* (serviceAccounts.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Restores a deleted ServiceAccount. **Important:** It is not always possible
* to restore a deleted service account. Use this method only as a last resort.
* After you delete a service account, IAM permanently removes the service
* account 30 days later. There is no way to restore a deleted service account
* that has been permanently removed. (serviceAccounts.undelete)
*
* @param string $name The resource name of the service account. Use one of the
* following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
* * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param UndeleteServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return UndeleteServiceAccountResponse
*/
public function undelete($name, UndeleteServiceAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], UndeleteServiceAccountResponse::class);
}
/**
* **Note:** We are in the process of deprecating this method. Use
* PatchServiceAccount instead. Updates a ServiceAccount. You can update only
* the `display_name` field. (serviceAccounts.update)
*
* @param string $name The resource name of the service account. Use one of the
* following formats: * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
* * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param ServiceAccount $postBody
* @param array $optParams Optional parameters.
* @return ServiceAccount
*/
public function update($name, ServiceAccount $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ServiceAccount::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsServiceAccounts::class, 'Google_Service_Iam_Resource_ProjectsServiceAccounts');

View File

@@ -0,0 +1,228 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam\Resource;
use Google\Service\Iam\CreateServiceAccountKeyRequest;
use Google\Service\Iam\DisableServiceAccountKeyRequest;
use Google\Service\Iam\EnableServiceAccountKeyRequest;
use Google\Service\Iam\IamEmpty;
use Google\Service\Iam\ListServiceAccountKeysResponse;
use Google\Service\Iam\ServiceAccountKey;
use Google\Service\Iam\UploadServiceAccountKeyRequest;
/**
* The "keys" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $keys = $iamService->projects_serviceAccounts_keys;
* </code>
*/
class ProjectsServiceAccountsKeys extends \Google\Service\Resource
{
/**
* Creates a ServiceAccountKey. (keys.create)
*
* @param string $name Required. The resource name of the service account. Use
* one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param CreateServiceAccountKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return ServiceAccountKey
*/
public function create($name, CreateServiceAccountKeyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ServiceAccountKey::class);
}
/**
* Deletes a ServiceAccountKey. Deleting a service account key does not revoke
* short-lived credentials that have been issued based on the service account
* key. (keys.delete)
*
* @param string $name Required. The resource name of the service account key.
* Use one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an
* alternative, you can use the `-` wildcard character instead of the project
* ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` When possible, avoid
* using the `-` wildcard character, because it can cause response messages to
* contain misleading error codes. For example, if you try to access the service
* account key `projects/-/serviceAccounts/fake@example.com/keys/fake-key`,
* which does not exist, the response contains an HTTP `403 Forbidden` error
* instead of a `404 Not Found` error.
* @param array $optParams Optional parameters.
* @return IamEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], IamEmpty::class);
}
/**
* Disable a ServiceAccountKey. A disabled service account key can be re-enabled
* with EnableServiceAccountKey. (keys.disable)
*
* @param string $name Required. The resource name of the service account key.
* Use one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an
* alternative, you can use the `-` wildcard character instead of the project
* ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` When possible, avoid
* using the `-` wildcard character, because it can cause response messages to
* contain misleading error codes. For example, if you try to access the service
* account key `projects/-/serviceAccounts/fake@example.com/keys/fake-key`,
* which does not exist, the response contains an HTTP `403 Forbidden` error
* instead of a `404 Not Found` error.
* @param DisableServiceAccountKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return IamEmpty
*/
public function disable($name, DisableServiceAccountKeyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disable', [$params], IamEmpty::class);
}
/**
* Enable a ServiceAccountKey. (keys.enable)
*
* @param string $name Required. The resource name of the service account key.
* Use one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an
* alternative, you can use the `-` wildcard character instead of the project
* ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` When possible, avoid
* using the `-` wildcard character, because it can cause response messages to
* contain misleading error codes. For example, if you try to access the service
* account key `projects/-/serviceAccounts/fake@example.com/keys/fake-key`,
* which does not exist, the response contains an HTTP `403 Forbidden` error
* instead of a `404 Not Found` error.
* @param EnableServiceAccountKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return IamEmpty
*/
public function enable($name, EnableServiceAccountKeyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enable', [$params], IamEmpty::class);
}
/**
* Gets a ServiceAccountKey. (keys.get)
*
* @param string $name Required. The resource name of the service account key.
* Use one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` As an
* alternative, you can use the `-` wildcard character instead of the project
* ID: * `projects/-/serviceAccounts/{EMAIL_ADDRESS}/keys/{KEY_ID}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}/keys/{KEY_ID}` When possible, avoid
* using the `-` wildcard character, because it can cause response messages to
* contain misleading error codes. For example, if you try to access the service
* account key `projects/-/serviceAccounts/fake@example.com/keys/fake-key`,
* which does not exist, the response contains an HTTP `403 Forbidden` error
* instead of a `404 Not Found` error.
* @param array $optParams Optional parameters.
*
* @opt_param string publicKeyType Optional. The output format of the public
* key. The default is `TYPE_NONE`, which means that the public key is not
* returned.
* @return ServiceAccountKey
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceAccountKey::class);
}
/**
* Lists every ServiceAccountKey for a service account.
* (keys.listProjectsServiceAccountsKeys)
*
* @param string $name Required. The resource name of the service account. Use
* one of the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param array $optParams Optional parameters.
*
* @opt_param string keyTypes Filters the types of keys the user wants to
* include in the list response. Duplicate key types are not allowed. If no key
* type is provided, all keys are returned.
* @return ListServiceAccountKeysResponse
*/
public function listProjectsServiceAccountsKeys($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceAccountKeysResponse::class);
}
/**
* Uploads the public key portion of a key pair that you manage, and associates
* the public key with a ServiceAccount. After you upload the public key, you
* can use the private key from the key pair as a service account key.
* (keys.upload)
*
* @param string $name The resource name of the service account key. Use one of
* the following formats: *
* `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` As an alternative, you
* can use the `-` wildcard character instead of the project ID: *
* `projects/-/serviceAccounts/{EMAIL_ADDRESS}` *
* `projects/-/serviceAccounts/{UNIQUE_ID}` When possible, avoid using the `-`
* wildcard character, because it can cause response messages to contain
* misleading error codes. For example, if you try to access the service account
* `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
* response contains an HTTP `403 Forbidden` error instead of a `404 Not Found`
* error.
* @param UploadServiceAccountKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return ServiceAccountKey
*/
public function upload($name, UploadServiceAccountKeyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], ServiceAccountKey::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsServiceAccountsKeys::class, 'Google_Service_Iam_Resource_ProjectsServiceAccountsKeys');

View File

@@ -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\Iam\Resource;
use Google\Service\Iam\ListRolesResponse;
use Google\Service\Iam\QueryGrantableRolesRequest;
use Google\Service\Iam\QueryGrantableRolesResponse;
use Google\Service\Iam\Role;
/**
* The "roles" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google\Service\Iam(...);
* $roles = $iamService->roles;
* </code>
*/
class Roles extends \Google\Service\Resource
{
/**
* Gets the definition of a Role. (roles.get)
*
* @param string $name The `name` parameter's value depends on the target
* resource for the request, namely
* [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `name` value format is described below: *
* [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get):
* `roles/{ROLE_NAME}`. This method returns results from all [predefined
* roles](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) in Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * [`projects.roles.get()`](
* https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
* `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
* [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles)
* that have been created at the project level. Example request URL:
* `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
* * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v
* 1/organizations.roles/get):
* `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns
* only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-
* roles) that have been created at the organization level. Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_
* ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete
* project ID or organization ID.
* @param array $optParams Optional parameters.
* @return Role
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Role::class);
}
/**
* Lists every predefined Role that IAM supports, or every custom role that is
* defined for an organization or project. (roles.listRoles)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional limit on the number of roles to include in
* the response. The default is 300, and the maximum is 1,000.
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListRolesResponse.
* @opt_param string parent The `parent` parameter's value depends on the target
* resource for the request, namely
* [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
* [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
* or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizat
* ions.roles). Each resource type's `parent` value format is described below: *
* [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list):
* An empty string. This method doesn't require a resource; it simply returns
* all [predefined roles](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) in Cloud IAM. Example request URL:
* `https://iam.googleapis.com/v1/roles` * [`projects.roles.list()`](https://clo
* ud.google.com/iam/reference/rest/v1/projects.roles/list):
* `projects/{PROJECT_ID}`. This method lists all project-level [custom
* roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example
* request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`
* organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/o
* rganizations.roles/list): `organizations/{ORGANIZATION_ID}`. This method
* lists all organization-level [custom roles](https://cloud.google.com/iam/docs
* /understanding-custom-roles). Example request URL:
* `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note:
* Wildcard (*) values are invalid; you must specify a complete project ID or
* organization ID.
* @opt_param bool showDeleted Include Roles that have been deleted.
* @opt_param string view Optional view for the returned Role objects. When
* `FULL` is specified, the `includedPermissions` field is returned, which
* includes a list of all permissions in the role. The default value is `BASIC`,
* which does not return the `includedPermissions` field.
* @return ListRolesResponse
*/
public function listRoles($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolesResponse::class);
}
/**
* Lists roles that can be granted on a Google Cloud resource. A role is
* grantable if the IAM policy for the resource can contain bindings to the
* role. (roles.queryGrantableRoles)
*
* @param QueryGrantableRolesRequest $postBody
* @param array $optParams Optional parameters.
* @return QueryGrantableRolesResponse
*/
public function queryGrantableRoles(QueryGrantableRolesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('queryGrantableRoles', [$params], QueryGrantableRolesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Roles::class, 'Google_Service_Iam_Resource_Roles');

View File

@@ -0,0 +1,153 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class Role extends \Google\Collection
{
protected $collection_key = 'includedPermissions';
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $includedPermissions;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $stage;
/**
* @var string
*/
public $title;
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setIncludedPermissions($includedPermissions)
{
$this->includedPermissions = $includedPermissions;
}
/**
* @return string[]
*/
public function getIncludedPermissions()
{
return $this->includedPermissions;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return string
*/
public function getStage()
{
return $this->stage;
}
/**
* @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(Role::class, 'Google_Service_Iam_Role');

View File

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

View File

@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class ServiceAccount extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $oauth2ClientId;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $uniqueId;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOauth2ClientId($oauth2ClientId)
{
$this->oauth2ClientId = $oauth2ClientId;
}
/**
* @return string
*/
public function getOauth2ClientId()
{
return $this->oauth2ClientId;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
/**
* @return string
*/
public function getUniqueId()
{
return $this->uniqueId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccount::class, 'Google_Service_Iam_ServiceAccount');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Iam;
class ServiceAccountKey extends \Google\Model
{
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $keyAlgorithm;
/**
* @var string
*/
public $keyOrigin;
/**
* @var string
*/
public $keyType;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $privateKeyData;
/**
* @var string
*/
public $privateKeyType;
/**
* @var string
*/
public $publicKeyData;
/**
* @var string
*/
public $validAfterTime;
/**
* @var string
*/
public $validBeforeTime;
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setKeyAlgorithm($keyAlgorithm)
{
$this->keyAlgorithm = $keyAlgorithm;
}
/**
* @return string
*/
public function getKeyAlgorithm()
{
return $this->keyAlgorithm;
}
/**
* @param string
*/
public function setKeyOrigin($keyOrigin)
{
$this->keyOrigin = $keyOrigin;
}
/**
* @return string
*/
public function getKeyOrigin()
{
return $this->keyOrigin;
}
/**
* @param string
*/
public function setKeyType($keyType)
{
$this->keyType = $keyType;
}
/**
* @return string
*/
public function getKeyType()
{
return $this->keyType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPrivateKeyData($privateKeyData)
{
$this->privateKeyData = $privateKeyData;
}
/**
* @return string
*/
public function getPrivateKeyData()
{
return $this->privateKeyData;
}
/**
* @param string
*/
public function setPrivateKeyType($privateKeyType)
{
$this->privateKeyType = $privateKeyType;
}
/**
* @return string
*/
public function getPrivateKeyType()
{
return $this->privateKeyType;
}
/**
* @param string
*/
public function setPublicKeyData($publicKeyData)
{
$this->publicKeyData = $publicKeyData;
}
/**
* @return string
*/
public function getPublicKeyData()
{
return $this->publicKeyData;
}
/**
* @param string
*/
public function setValidAfterTime($validAfterTime)
{
$this->validAfterTime = $validAfterTime;
}
/**
* @return string
*/
public function getValidAfterTime()
{
return $this->validAfterTime;
}
/**
* @param string
*/
public function setValidBeforeTime($validBeforeTime)
{
$this->validBeforeTime = $validBeforeTime;
}
/**
* @return string
*/
public function getValidBeforeTime()
{
return $this->validBeforeTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccountKey::class, 'Google_Service_Iam_ServiceAccountKey');

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\Iam;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
public $policy;
/**
* @var string
*/
public $updateMask;
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_Iam_SetIamPolicyRequest');

View File

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

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\Iam;
class SignBlobResponse extends \Google\Model
{
/**
* @var string
*/
public $keyId;
/**
* @var string
*/
public $signature;
/**
* @param string
*/
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
/**
* @return string
*/
public function getKeyId()
{
return $this->keyId;
}
/**
* @param string
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignBlobResponse::class, 'Google_Service_Iam_SignBlobResponse');

View File

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

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\Iam;
class SignJwtResponse extends \Google\Model
{
/**
* @var string
*/
public $keyId;
/**
* @var string
*/
public $signedJwt;
/**
* @param string
*/
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
/**
* @return string
*/
public function getKeyId()
{
return $this->keyId;
}
/**
* @param string
*/
public function setSignedJwt($signedJwt)
{
$this->signedJwt = $signedJwt;
}
/**
* @return string
*/
public function getSignedJwt()
{
return $this->signedJwt;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignJwtResponse::class, 'Google_Service_Iam_SignJwtResponse');

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

View File

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

View File

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

View File

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

View File

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

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