Initial commit

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

View File

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

View File

@@ -0,0 +1,241 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval;
class AccessApprovalSettings extends \Google\Collection
{
protected $collection_key = 'notificationEmails';
/**
* @var string
*/
public $activeKeyVersion;
/**
* @var bool
*/
public $ancestorHasActiveKeyVersion;
/**
* @var bool
*/
public $enrolledAncestor;
protected $enrolledServicesType = EnrolledService::class;
protected $enrolledServicesDataType = 'array';
/**
* @var bool
*/
public $invalidKeyVersion;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $notificationEmails;
/**
* @var string
*/
public $notificationPubsubTopic;
/**
* @var bool
*/
public $preferNoBroadApprovalRequests;
/**
* @var int
*/
public $preferredRequestExpirationDays;
/**
* @var string
*/
public $requestScopeMaxWidthPreference;
/**
* @var bool
*/
public $requireCustomerVisibleJustification;
/**
* @param string
*/
public function setActiveKeyVersion($activeKeyVersion)
{
$this->activeKeyVersion = $activeKeyVersion;
}
/**
* @return string
*/
public function getActiveKeyVersion()
{
return $this->activeKeyVersion;
}
/**
* @param bool
*/
public function setAncestorHasActiveKeyVersion($ancestorHasActiveKeyVersion)
{
$this->ancestorHasActiveKeyVersion = $ancestorHasActiveKeyVersion;
}
/**
* @return bool
*/
public function getAncestorHasActiveKeyVersion()
{
return $this->ancestorHasActiveKeyVersion;
}
/**
* @param bool
*/
public function setEnrolledAncestor($enrolledAncestor)
{
$this->enrolledAncestor = $enrolledAncestor;
}
/**
* @return bool
*/
public function getEnrolledAncestor()
{
return $this->enrolledAncestor;
}
/**
* @param EnrolledService[]
*/
public function setEnrolledServices($enrolledServices)
{
$this->enrolledServices = $enrolledServices;
}
/**
* @return EnrolledService[]
*/
public function getEnrolledServices()
{
return $this->enrolledServices;
}
/**
* @param bool
*/
public function setInvalidKeyVersion($invalidKeyVersion)
{
$this->invalidKeyVersion = $invalidKeyVersion;
}
/**
* @return bool
*/
public function getInvalidKeyVersion()
{
return $this->invalidKeyVersion;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setNotificationEmails($notificationEmails)
{
$this->notificationEmails = $notificationEmails;
}
/**
* @return string[]
*/
public function getNotificationEmails()
{
return $this->notificationEmails;
}
/**
* @param string
*/
public function setNotificationPubsubTopic($notificationPubsubTopic)
{
$this->notificationPubsubTopic = $notificationPubsubTopic;
}
/**
* @return string
*/
public function getNotificationPubsubTopic()
{
return $this->notificationPubsubTopic;
}
/**
* @param bool
*/
public function setPreferNoBroadApprovalRequests($preferNoBroadApprovalRequests)
{
$this->preferNoBroadApprovalRequests = $preferNoBroadApprovalRequests;
}
/**
* @return bool
*/
public function getPreferNoBroadApprovalRequests()
{
return $this->preferNoBroadApprovalRequests;
}
/**
* @param int
*/
public function setPreferredRequestExpirationDays($preferredRequestExpirationDays)
{
$this->preferredRequestExpirationDays = $preferredRequestExpirationDays;
}
/**
* @return int
*/
public function getPreferredRequestExpirationDays()
{
return $this->preferredRequestExpirationDays;
}
/**
* @param string
*/
public function setRequestScopeMaxWidthPreference($requestScopeMaxWidthPreference)
{
$this->requestScopeMaxWidthPreference = $requestScopeMaxWidthPreference;
}
/**
* @return string
*/
public function getRequestScopeMaxWidthPreference()
{
return $this->requestScopeMaxWidthPreference;
}
/**
* @param bool
*/
public function setRequireCustomerVisibleJustification($requireCustomerVisibleJustification)
{
$this->requireCustomerVisibleJustification = $requireCustomerVisibleJustification;
}
/**
* @return bool
*/
public function getRequireCustomerVisibleJustification()
{
return $this->requireCustomerVisibleJustification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessApprovalSettings::class, 'Google_Service_AccessApproval_AccessApprovalSettings');

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\AccessApproval;
class AccessLocations extends \Google\Model
{
/**
* @var string
*/
public $principalOfficeCountry;
/**
* @var string
*/
public $principalPhysicalLocationCountry;
/**
* @param string
*/
public function setPrincipalOfficeCountry($principalOfficeCountry)
{
$this->principalOfficeCountry = $principalOfficeCountry;
}
/**
* @return string
*/
public function getPrincipalOfficeCountry()
{
return $this->principalOfficeCountry;
}
/**
* @param string
*/
public function setPrincipalPhysicalLocationCountry($principalPhysicalLocationCountry)
{
$this->principalPhysicalLocationCountry = $principalPhysicalLocationCountry;
}
/**
* @return string
*/
public function getPrincipalPhysicalLocationCountry()
{
return $this->principalPhysicalLocationCountry;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessLocations::class, 'Google_Service_AccessApproval_AccessLocations');

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\AccessApproval;
class AccessReason extends \Google\Model
{
/**
* @var string
*/
public $detail;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessReason::class, 'Google_Service_AccessApproval_AccessReason');

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

View File

@@ -0,0 +1,212 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval;
class ApprovalRequest extends \Google\Model
{
protected $approveType = ApproveDecision::class;
protected $approveDataType = '';
protected $dismissType = DismissDecision::class;
protected $dismissDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $requestTime;
protected $requestedAugmentedInfoType = AugmentedInfo::class;
protected $requestedAugmentedInfoDataType = '';
/**
* @var string
*/
public $requestedDuration;
/**
* @var string
*/
public $requestedExpiration;
protected $requestedLocationsType = AccessLocations::class;
protected $requestedLocationsDataType = '';
protected $requestedReasonType = AccessReason::class;
protected $requestedReasonDataType = '';
/**
* @var string
*/
public $requestedResourceName;
protected $requestedResourcePropertiesType = ResourceProperties::class;
protected $requestedResourcePropertiesDataType = '';
/**
* @param ApproveDecision
*/
public function setApprove(ApproveDecision $approve)
{
$this->approve = $approve;
}
/**
* @return ApproveDecision
*/
public function getApprove()
{
return $this->approve;
}
/**
* @param DismissDecision
*/
public function setDismiss(DismissDecision $dismiss)
{
$this->dismiss = $dismiss;
}
/**
* @return DismissDecision
*/
public function getDismiss()
{
return $this->dismiss;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
}
/**
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* @param AugmentedInfo
*/
public function setRequestedAugmentedInfo(AugmentedInfo $requestedAugmentedInfo)
{
$this->requestedAugmentedInfo = $requestedAugmentedInfo;
}
/**
* @return AugmentedInfo
*/
public function getRequestedAugmentedInfo()
{
return $this->requestedAugmentedInfo;
}
/**
* @param string
*/
public function setRequestedDuration($requestedDuration)
{
$this->requestedDuration = $requestedDuration;
}
/**
* @return string
*/
public function getRequestedDuration()
{
return $this->requestedDuration;
}
/**
* @param string
*/
public function setRequestedExpiration($requestedExpiration)
{
$this->requestedExpiration = $requestedExpiration;
}
/**
* @return string
*/
public function getRequestedExpiration()
{
return $this->requestedExpiration;
}
/**
* @param AccessLocations
*/
public function setRequestedLocations(AccessLocations $requestedLocations)
{
$this->requestedLocations = $requestedLocations;
}
/**
* @return AccessLocations
*/
public function getRequestedLocations()
{
return $this->requestedLocations;
}
/**
* @param AccessReason
*/
public function setRequestedReason(AccessReason $requestedReason)
{
$this->requestedReason = $requestedReason;
}
/**
* @return AccessReason
*/
public function getRequestedReason()
{
return $this->requestedReason;
}
/**
* @param string
*/
public function setRequestedResourceName($requestedResourceName)
{
$this->requestedResourceName = $requestedResourceName;
}
/**
* @return string
*/
public function getRequestedResourceName()
{
return $this->requestedResourceName;
}
/**
* @param ResourceProperties
*/
public function setRequestedResourceProperties(ResourceProperties $requestedResourceProperties)
{
$this->requestedResourceProperties = $requestedResourceProperties;
}
/**
* @return ResourceProperties
*/
public function getRequestedResourceProperties()
{
return $this->requestedResourceProperties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApprovalRequest::class, 'Google_Service_AccessApproval_ApprovalRequest');

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\AccessApproval;
class ApproveApprovalRequestMessage extends \Google\Model
{
/**
* @var string
*/
public $expireTime;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveApprovalRequestMessage::class, 'Google_Service_AccessApproval_ApproveApprovalRequestMessage');

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\AccessApproval;
class ApproveDecision extends \Google\Model
{
/**
* @var string
*/
public $approveTime;
/**
* @var bool
*/
public $autoApproved;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $invalidateTime;
protected $signatureInfoType = SignatureInfo::class;
protected $signatureInfoDataType = '';
/**
* @param string
*/
public function setApproveTime($approveTime)
{
$this->approveTime = $approveTime;
}
/**
* @return string
*/
public function getApproveTime()
{
return $this->approveTime;
}
/**
* @param bool
*/
public function setAutoApproved($autoApproved)
{
$this->autoApproved = $autoApproved;
}
/**
* @return bool
*/
public function getAutoApproved()
{
return $this->autoApproved;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setInvalidateTime($invalidateTime)
{
$this->invalidateTime = $invalidateTime;
}
/**
* @return string
*/
public function getInvalidateTime()
{
return $this->invalidateTime;
}
/**
* @param SignatureInfo
*/
public function setSignatureInfo(SignatureInfo $signatureInfo)
{
$this->signatureInfo = $signatureInfo;
}
/**
* @return SignatureInfo
*/
public function getSignatureInfo()
{
return $this->signatureInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveDecision::class, 'Google_Service_AccessApproval_ApproveDecision');

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\AccessApproval;
class AugmentedInfo extends \Google\Model
{
/**
* @var string
*/
public $command;
/**
* @param string
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AugmentedInfo::class, 'Google_Service_AccessApproval_AugmentedInfo');

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

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\AccessApproval;
class DismissDecision extends \Google\Model
{
/**
* @var string
*/
public $dismissTime;
/**
* @var bool
*/
public $implicit;
/**
* @param string
*/
public function setDismissTime($dismissTime)
{
$this->dismissTime = $dismissTime;
}
/**
* @return string
*/
public function getDismissTime()
{
return $this->dismissTime;
}
/**
* @param bool
*/
public function setImplicit($implicit)
{
$this->implicit = $implicit;
}
/**
* @return bool
*/
public function getImplicit()
{
return $this->implicit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DismissDecision::class, 'Google_Service_AccessApproval_DismissDecision');

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\AccessApproval;
class EnrolledService extends \Google\Model
{
/**
* @var string
*/
public $cloudProduct;
/**
* @var string
*/
public $enrollmentLevel;
/**
* @param string
*/
public function setCloudProduct($cloudProduct)
{
$this->cloudProduct = $cloudProduct;
}
/**
* @return string
*/
public function getCloudProduct()
{
return $this->cloudProduct;
}
/**
* @param string
*/
public function setEnrollmentLevel($enrollmentLevel)
{
$this->enrollmentLevel = $enrollmentLevel;
}
/**
* @return string
*/
public function getEnrollmentLevel()
{
return $this->enrollmentLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnrolledService::class, 'Google_Service_AccessApproval_EnrolledService');

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

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\AccessApproval;
class ListApprovalRequestsResponse extends \Google\Collection
{
protected $collection_key = 'approvalRequests';
protected $approvalRequestsType = ApprovalRequest::class;
protected $approvalRequestsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param ApprovalRequest[]
*/
public function setApprovalRequests($approvalRequests)
{
$this->approvalRequests = $approvalRequests;
}
/**
* @return ApprovalRequest[]
*/
public function getApprovalRequests()
{
return $this->approvalRequests;
}
/**
* @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(ListApprovalRequestsResponse::class, 'Google_Service_AccessApproval_ListApprovalRequestsResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval\Resource;
use Google\Service\AccessApproval\AccessApprovalServiceAccount;
use Google\Service\AccessApproval\AccessApprovalSettings;
use Google\Service\AccessApproval\AccessapprovalEmpty;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $accessapprovalService = new Google\Service\AccessApproval(...);
* $folders = $accessapprovalService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
/**
* Deletes the settings associated with a project, folder, or organization. This
* will have the effect of disabling Access Approval for the project, folder, or
* organization, but only if all ancestors also have Access Approval disabled.
* If Access Approval is enabled at a higher level of the hierarchy, then Access
* Approval will still be enabled at this level as the settings are inherited.
* (folders.deleteAccessApprovalSettings)
*
* @param string $name Name of the AccessApprovalSettings to delete.
* @param array $optParams Optional parameters.
* @return AccessapprovalEmpty
* @throws \Google\Service\Exception
*/
public function deleteAccessApprovalSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteAccessApprovalSettings', [$params], AccessapprovalEmpty::class);
}
/**
* Gets the settings associated with a project, folder, or organization.
* (folders.getAccessApprovalSettings)
*
* @param string $name The name of the AccessApprovalSettings to retrieve.
* Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
* @param array $optParams Optional parameters.
* @return AccessApprovalSettings
* @throws \Google\Service\Exception
*/
public function getAccessApprovalSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAccessApprovalSettings', [$params], AccessApprovalSettings::class);
}
/**
* Retrieves the service account that is used by Access Approval to access KMS
* keys for signing approved approval requests. (folders.getServiceAccount)
*
* @param string $name Name of the AccessApprovalServiceAccount to retrieve.
* @param array $optParams Optional parameters.
* @return AccessApprovalServiceAccount
* @throws \Google\Service\Exception
*/
public function getServiceAccount($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getServiceAccount', [$params], AccessApprovalServiceAccount::class);
}
/**
* Updates the settings associated with a project, folder, or organization.
* Settings to update are determined by the value of field_mask.
* (folders.updateAccessApprovalSettings)
*
* @param string $name The resource name of the settings. Format is one of: *
* "projects/{project}/accessApprovalSettings" *
* "folders/{folder}/accessApprovalSettings" *
* "organizations/{organization}/accessApprovalSettings"
* @param AccessApprovalSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the settings. Only
* the top level fields of AccessApprovalSettings (notification_emails &
* enrolled_services) are supported. For each field, if it is included, the
* currently stored value will be entirely overwritten with the value of the
* field passed in this request. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask If this field is left unset,
* only the notification_emails field will be updated.
* @return AccessApprovalSettings
* @throws \Google\Service\Exception
*/
public function updateAccessApprovalSettings($name, AccessApprovalSettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAccessApprovalSettings', [$params], AccessApprovalSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_AccessApproval_Resource_Folders');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval\Resource;
use Google\Service\AccessApproval\ApprovalRequest;
use Google\Service\AccessApproval\ApproveApprovalRequestMessage;
use Google\Service\AccessApproval\DismissApprovalRequestMessage;
use Google\Service\AccessApproval\InvalidateApprovalRequestMessage;
use Google\Service\AccessApproval\ListApprovalRequestsResponse;
/**
* The "approvalRequests" collection of methods.
* Typical usage is:
* <code>
* $accessapprovalService = new Google\Service\AccessApproval(...);
* $approvalRequests = $accessapprovalService->folders_approvalRequests;
* </code>
*/
class FoldersApprovalRequests extends \Google\Service\Resource
{
/**
* Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND
* if the request does not exist. Returns FAILED_PRECONDITION if the request
* exists but is not in a pending state. (approvalRequests.approve)
*
* @param string $name Name of the approval request to approve.
* @param ApproveApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function approve($name, ApproveApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], ApprovalRequest::class);
}
/**
* Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not
* deny access to the resource if another request has been made and approved. It
* is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND
* if the request does not exist. Returns FAILED_PRECONDITION if the request
* exists but is not in a pending state. (approvalRequests.dismiss)
*
* @param string $name Name of the ApprovalRequest to dismiss.
* @param DismissApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function dismiss($name, DismissApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('dismiss', [$params], ApprovalRequest::class);
}
/**
* Gets an approval request. Returns NOT_FOUND if the request does not exist.
* (approvalRequests.get)
*
* @param string $name The name of the approval request to retrieve. Format:
* "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ApprovalRequest::class);
}
/**
* Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
* NOTE: This does not deny access to the resource if another request has been
* made and approved. It only invalidates a single approval. Returns
* FAILED_PRECONDITION if the request exists but is not in an approved state.
* (approvalRequests.invalidate)
*
* @param string $name Name of the ApprovalRequest to invalidate.
* @param InvalidateApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function invalidate($name, InvalidateApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('invalidate', [$params], ApprovalRequest::class);
}
/**
* Lists approval requests associated with a project, folder, or organization.
* Approval requests can be filtered by state (pending, active, dismissed). The
* order is reverse chronological.
* (approvalRequests.listFoldersApprovalRequests)
*
* @param string $parent The parent resource. This may be "projects/{project}",
* "folders/{folder}", or "organizations/{organization}".
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter on the type of approval requests to
* retrieve. Must be one of the following values: * [not set]: Requests that are
* pending or have active approvals. * ALL: All requests. * PENDING: Only
* pending requests. * ACTIVE: Only active (i.e. currently approved) requests. *
* DISMISSED: Only requests that have been dismissed, or requests that are not
* approved and past expiration. * EXPIRED: Only requests that have been
* approved, and the approval has expired. * HISTORY: Active, dismissed and
* expired requests.
* @opt_param int pageSize Requested page size.
* @opt_param string pageToken A token identifying the page of results to
* return.
* @return ListApprovalRequestsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersApprovalRequests($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApprovalRequestsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersApprovalRequests::class, 'Google_Service_AccessApproval_Resource_FoldersApprovalRequests');

View File

@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval\Resource;
use Google\Service\AccessApproval\AccessApprovalServiceAccount;
use Google\Service\AccessApproval\AccessApprovalSettings;
use Google\Service\AccessApproval\AccessapprovalEmpty;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $accessapprovalService = new Google\Service\AccessApproval(...);
* $organizations = $accessapprovalService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
/**
* Deletes the settings associated with a project, folder, or organization. This
* will have the effect of disabling Access Approval for the project, folder, or
* organization, but only if all ancestors also have Access Approval disabled.
* If Access Approval is enabled at a higher level of the hierarchy, then Access
* Approval will still be enabled at this level as the settings are inherited.
* (organizations.deleteAccessApprovalSettings)
*
* @param string $name Name of the AccessApprovalSettings to delete.
* @param array $optParams Optional parameters.
* @return AccessapprovalEmpty
* @throws \Google\Service\Exception
*/
public function deleteAccessApprovalSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteAccessApprovalSettings', [$params], AccessapprovalEmpty::class);
}
/**
* Gets the settings associated with a project, folder, or organization.
* (organizations.getAccessApprovalSettings)
*
* @param string $name The name of the AccessApprovalSettings to retrieve.
* Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
* @param array $optParams Optional parameters.
* @return AccessApprovalSettings
* @throws \Google\Service\Exception
*/
public function getAccessApprovalSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAccessApprovalSettings', [$params], AccessApprovalSettings::class);
}
/**
* Retrieves the service account that is used by Access Approval to access KMS
* keys for signing approved approval requests.
* (organizations.getServiceAccount)
*
* @param string $name Name of the AccessApprovalServiceAccount to retrieve.
* @param array $optParams Optional parameters.
* @return AccessApprovalServiceAccount
* @throws \Google\Service\Exception
*/
public function getServiceAccount($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getServiceAccount', [$params], AccessApprovalServiceAccount::class);
}
/**
* Updates the settings associated with a project, folder, or organization.
* Settings to update are determined by the value of field_mask.
* (organizations.updateAccessApprovalSettings)
*
* @param string $name The resource name of the settings. Format is one of: *
* "projects/{project}/accessApprovalSettings" *
* "folders/{folder}/accessApprovalSettings" *
* "organizations/{organization}/accessApprovalSettings"
* @param AccessApprovalSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the settings. Only
* the top level fields of AccessApprovalSettings (notification_emails &
* enrolled_services) are supported. For each field, if it is included, the
* currently stored value will be entirely overwritten with the value of the
* field passed in this request. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask If this field is left unset,
* only the notification_emails field will be updated.
* @return AccessApprovalSettings
* @throws \Google\Service\Exception
*/
public function updateAccessApprovalSettings($name, AccessApprovalSettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAccessApprovalSettings', [$params], AccessApprovalSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_AccessApproval_Resource_Organizations');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval\Resource;
use Google\Service\AccessApproval\ApprovalRequest;
use Google\Service\AccessApproval\ApproveApprovalRequestMessage;
use Google\Service\AccessApproval\DismissApprovalRequestMessage;
use Google\Service\AccessApproval\InvalidateApprovalRequestMessage;
use Google\Service\AccessApproval\ListApprovalRequestsResponse;
/**
* The "approvalRequests" collection of methods.
* Typical usage is:
* <code>
* $accessapprovalService = new Google\Service\AccessApproval(...);
* $approvalRequests = $accessapprovalService->organizations_approvalRequests;
* </code>
*/
class OrganizationsApprovalRequests extends \Google\Service\Resource
{
/**
* Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND
* if the request does not exist. Returns FAILED_PRECONDITION if the request
* exists but is not in a pending state. (approvalRequests.approve)
*
* @param string $name Name of the approval request to approve.
* @param ApproveApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function approve($name, ApproveApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], ApprovalRequest::class);
}
/**
* Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not
* deny access to the resource if another request has been made and approved. It
* is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND
* if the request does not exist. Returns FAILED_PRECONDITION if the request
* exists but is not in a pending state. (approvalRequests.dismiss)
*
* @param string $name Name of the ApprovalRequest to dismiss.
* @param DismissApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function dismiss($name, DismissApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('dismiss', [$params], ApprovalRequest::class);
}
/**
* Gets an approval request. Returns NOT_FOUND if the request does not exist.
* (approvalRequests.get)
*
* @param string $name The name of the approval request to retrieve. Format:
* "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ApprovalRequest::class);
}
/**
* Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
* NOTE: This does not deny access to the resource if another request has been
* made and approved. It only invalidates a single approval. Returns
* FAILED_PRECONDITION if the request exists but is not in an approved state.
* (approvalRequests.invalidate)
*
* @param string $name Name of the ApprovalRequest to invalidate.
* @param InvalidateApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function invalidate($name, InvalidateApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('invalidate', [$params], ApprovalRequest::class);
}
/**
* Lists approval requests associated with a project, folder, or organization.
* Approval requests can be filtered by state (pending, active, dismissed). The
* order is reverse chronological.
* (approvalRequests.listOrganizationsApprovalRequests)
*
* @param string $parent The parent resource. This may be "projects/{project}",
* "folders/{folder}", or "organizations/{organization}".
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter on the type of approval requests to
* retrieve. Must be one of the following values: * [not set]: Requests that are
* pending or have active approvals. * ALL: All requests. * PENDING: Only
* pending requests. * ACTIVE: Only active (i.e. currently approved) requests. *
* DISMISSED: Only requests that have been dismissed, or requests that are not
* approved and past expiration. * EXPIRED: Only requests that have been
* approved, and the approval has expired. * HISTORY: Active, dismissed and
* expired requests.
* @opt_param int pageSize Requested page size.
* @opt_param string pageToken A token identifying the page of results to
* return.
* @return ListApprovalRequestsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsApprovalRequests($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApprovalRequestsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsApprovalRequests::class, 'Google_Service_AccessApproval_Resource_OrganizationsApprovalRequests');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval\Resource;
use Google\Service\AccessApproval\AccessApprovalServiceAccount;
use Google\Service\AccessApproval\AccessApprovalSettings;
use Google\Service\AccessApproval\AccessapprovalEmpty;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $accessapprovalService = new Google\Service\AccessApproval(...);
* $projects = $accessapprovalService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Deletes the settings associated with a project, folder, or organization. This
* will have the effect of disabling Access Approval for the project, folder, or
* organization, but only if all ancestors also have Access Approval disabled.
* If Access Approval is enabled at a higher level of the hierarchy, then Access
* Approval will still be enabled at this level as the settings are inherited.
* (projects.deleteAccessApprovalSettings)
*
* @param string $name Name of the AccessApprovalSettings to delete.
* @param array $optParams Optional parameters.
* @return AccessapprovalEmpty
* @throws \Google\Service\Exception
*/
public function deleteAccessApprovalSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteAccessApprovalSettings', [$params], AccessapprovalEmpty::class);
}
/**
* Gets the settings associated with a project, folder, or organization.
* (projects.getAccessApprovalSettings)
*
* @param string $name The name of the AccessApprovalSettings to retrieve.
* Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
* @param array $optParams Optional parameters.
* @return AccessApprovalSettings
* @throws \Google\Service\Exception
*/
public function getAccessApprovalSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAccessApprovalSettings', [$params], AccessApprovalSettings::class);
}
/**
* Retrieves the service account that is used by Access Approval to access KMS
* keys for signing approved approval requests. (projects.getServiceAccount)
*
* @param string $name Name of the AccessApprovalServiceAccount to retrieve.
* @param array $optParams Optional parameters.
* @return AccessApprovalServiceAccount
* @throws \Google\Service\Exception
*/
public function getServiceAccount($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getServiceAccount', [$params], AccessApprovalServiceAccount::class);
}
/**
* Updates the settings associated with a project, folder, or organization.
* Settings to update are determined by the value of field_mask.
* (projects.updateAccessApprovalSettings)
*
* @param string $name The resource name of the settings. Format is one of: *
* "projects/{project}/accessApprovalSettings" *
* "folders/{folder}/accessApprovalSettings" *
* "organizations/{organization}/accessApprovalSettings"
* @param AccessApprovalSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask applies to the settings. Only
* the top level fields of AccessApprovalSettings (notification_emails &
* enrolled_services) are supported. For each field, if it is included, the
* currently stored value will be entirely overwritten with the value of the
* field passed in this request. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask If this field is left unset,
* only the notification_emails field will be updated.
* @return AccessApprovalSettings
* @throws \Google\Service\Exception
*/
public function updateAccessApprovalSettings($name, AccessApprovalSettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAccessApprovalSettings', [$params], AccessApprovalSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_AccessApproval_Resource_Projects');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval\Resource;
use Google\Service\AccessApproval\ApprovalRequest;
use Google\Service\AccessApproval\ApproveApprovalRequestMessage;
use Google\Service\AccessApproval\DismissApprovalRequestMessage;
use Google\Service\AccessApproval\InvalidateApprovalRequestMessage;
use Google\Service\AccessApproval\ListApprovalRequestsResponse;
/**
* The "approvalRequests" collection of methods.
* Typical usage is:
* <code>
* $accessapprovalService = new Google\Service\AccessApproval(...);
* $approvalRequests = $accessapprovalService->projects_approvalRequests;
* </code>
*/
class ProjectsApprovalRequests extends \Google\Service\Resource
{
/**
* Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND
* if the request does not exist. Returns FAILED_PRECONDITION if the request
* exists but is not in a pending state. (approvalRequests.approve)
*
* @param string $name Name of the approval request to approve.
* @param ApproveApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function approve($name, ApproveApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], ApprovalRequest::class);
}
/**
* Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not
* deny access to the resource if another request has been made and approved. It
* is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND
* if the request does not exist. Returns FAILED_PRECONDITION if the request
* exists but is not in a pending state. (approvalRequests.dismiss)
*
* @param string $name Name of the ApprovalRequest to dismiss.
* @param DismissApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function dismiss($name, DismissApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('dismiss', [$params], ApprovalRequest::class);
}
/**
* Gets an approval request. Returns NOT_FOUND if the request does not exist.
* (approvalRequests.get)
*
* @param string $name The name of the approval request to retrieve. Format:
* "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ApprovalRequest::class);
}
/**
* Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
* NOTE: This does not deny access to the resource if another request has been
* made and approved. It only invalidates a single approval. Returns
* FAILED_PRECONDITION if the request exists but is not in an approved state.
* (approvalRequests.invalidate)
*
* @param string $name Name of the ApprovalRequest to invalidate.
* @param InvalidateApprovalRequestMessage $postBody
* @param array $optParams Optional parameters.
* @return ApprovalRequest
* @throws \Google\Service\Exception
*/
public function invalidate($name, InvalidateApprovalRequestMessage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('invalidate', [$params], ApprovalRequest::class);
}
/**
* Lists approval requests associated with a project, folder, or organization.
* Approval requests can be filtered by state (pending, active, dismissed). The
* order is reverse chronological.
* (approvalRequests.listProjectsApprovalRequests)
*
* @param string $parent The parent resource. This may be "projects/{project}",
* "folders/{folder}", or "organizations/{organization}".
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter on the type of approval requests to
* retrieve. Must be one of the following values: * [not set]: Requests that are
* pending or have active approvals. * ALL: All requests. * PENDING: Only
* pending requests. * ACTIVE: Only active (i.e. currently approved) requests. *
* DISMISSED: Only requests that have been dismissed, or requests that are not
* approved and past expiration. * EXPIRED: Only requests that have been
* approved, and the approval has expired. * HISTORY: Active, dismissed and
* expired requests.
* @opt_param int pageSize Requested page size.
* @opt_param string pageToken A token identifying the page of results to
* return.
* @return ListApprovalRequestsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsApprovalRequests($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApprovalRequestsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsApprovalRequests::class, 'Google_Service_AccessApproval_Resource_ProjectsApprovalRequests');

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\AccessApproval;
class ResourceProperties extends \Google\Model
{
/**
* @var bool
*/
public $excludesDescendants;
/**
* @param bool
*/
public function setExcludesDescendants($excludesDescendants)
{
$this->excludesDescendants = $excludesDescendants;
}
/**
* @return bool
*/
public function getExcludesDescendants()
{
return $this->excludesDescendants;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceProperties::class, 'Google_Service_AccessApproval_ResourceProperties');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval;
class SignatureInfo extends \Google\Model
{
/**
* @var string
*/
public $customerKmsKeyVersion;
/**
* @var string
*/
public $googleKeyAlgorithm;
/**
* @var string
*/
public $googlePublicKeyPem;
/**
* @var string
*/
public $serializedApprovalRequest;
/**
* @var string
*/
public $signature;
/**
* @param string
*/
public function setCustomerKmsKeyVersion($customerKmsKeyVersion)
{
$this->customerKmsKeyVersion = $customerKmsKeyVersion;
}
/**
* @return string
*/
public function getCustomerKmsKeyVersion()
{
return $this->customerKmsKeyVersion;
}
/**
* @param string
*/
public function setGoogleKeyAlgorithm($googleKeyAlgorithm)
{
$this->googleKeyAlgorithm = $googleKeyAlgorithm;
}
/**
* @return string
*/
public function getGoogleKeyAlgorithm()
{
return $this->googleKeyAlgorithm;
}
/**
* @param string
*/
public function setGooglePublicKeyPem($googlePublicKeyPem)
{
$this->googlePublicKeyPem = $googlePublicKeyPem;
}
/**
* @return string
*/
public function getGooglePublicKeyPem()
{
return $this->googlePublicKeyPem;
}
/**
* @param string
*/
public function setSerializedApprovalRequest($serializedApprovalRequest)
{
$this->serializedApprovalRequest = $serializedApprovalRequest;
}
/**
* @return string
*/
public function getSerializedApprovalRequest()
{
return $this->serializedApprovalRequest;
}
/**
* @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(SignatureInfo::class, 'Google_Service_AccessApproval_SignatureInfo');