gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,74 @@
<?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
{
/**
* Email address of the service account.
*
* @var string
*/
public $accountEmail;
/**
* The resource name of the Access Approval service account. Format is one of:
* * "projects/{project}/serviceAccount" * "folders/{folder}/serviceAccount" *
* "organizations/{organization}/serviceAccount"
*
* @var string
*/
public $name;
/**
* Email address of the service account.
*
* @param string $accountEmail
*/
public function setAccountEmail($accountEmail)
{
$this->accountEmail = $accountEmail;
}
/**
* @return string
*/
public function getAccountEmail()
{
return $this->accountEmail;
}
/**
* The resource name of the Access Approval service account. Format is one of:
* * "projects/{project}/serviceAccount" * "folders/{folder}/serviceAccount" *
* "organizations/{organization}/serviceAccount"
*
* @param string $name
*/
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');
@@ -0,0 +1,441 @@
<?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
{
/**
* Default value, defaults to ORGANIZATION if not set. This value is not able
* to be configured by the user, do not use.
*/
public const REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED = 'REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED';
/**
* This is the widest scope possible. It means the customer has no scope
* restriction when it comes to Access Approval requests.
*/
public const REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_ORGANIZATION = 'ORGANIZATION';
/**
* Customer allows the scope of Access Approval requests as broad as the
* Folder level.
*/
public const REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_FOLDER = 'FOLDER';
/**
* Customer allows the scope of Access Approval requests as broad as the
* Project level.
*/
public const REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_PROJECT = 'PROJECT';
protected $collection_key = 'notificationEmails';
/**
* The asymmetric crypto key version to use for signing approval requests.
* Empty active_key_version indicates that a Google-managed key should be used
* for signing. This property will be ignored if set by an ancestor of this
* resource, and new non-empty values may not be set.
*
* @var string
*/
public $activeKeyVersion;
/**
* Output only. This field is read only (not settable via
* UpdateAccessApprovalSettings method). If the field is true, that indicates
* that an ancestor of this Project or Folder has set active_key_version (this
* field will always be unset for the organization since organizations do not
* have ancestors).
*
* @var bool
*/
public $ancestorHasActiveKeyVersion;
protected $ancestorsEnrolledServicesType = EnrolledService::class;
protected $ancestorsEnrolledServicesDataType = 'array';
protected $approvalPolicyType = CustomerApprovalApprovalPolicy::class;
protected $approvalPolicyDataType = '';
protected $effectiveApprovalPolicyType = CustomerApprovalApprovalPolicy::class;
protected $effectiveApprovalPolicyDataType = '';
/**
* Output only. This field is read only (not settable via
* UpdateAccessApprovalSettings method). If the field is true, that indicates
* that at least one service is enrolled for Access Approval in one or more
* ancestors of the Project or Folder (this field will always be unset for the
* organization since organizations do not have ancestors).
*
* @var bool
*/
public $enrolledAncestor;
protected $enrolledServicesType = EnrolledService::class;
protected $enrolledServicesDataType = 'array';
/**
* Output only. This field is read only (not settable via
* UpdateAccessApprovalSettings method). If the field is true, that indicates
* that there is some configuration issue with the active_key_version
* configured at this level in the resource hierarchy (e.g. it doesn't exist
* or the Access Approval service account doesn't have the correct permissions
* on it, etc.) This key version is not necessarily the effective key version
* at this level, as key versions are inherited top-down.
*
* @var bool
*/
public $invalidKeyVersion;
/**
* The resource name of the settings. Format is one of: *
* "projects/{project}/accessApprovalSettings" *
* "folders/{folder}/accessApprovalSettings" *
* "organizations/{organization}/accessApprovalSettings"
*
* @var string
*/
public $name;
/**
* A list of email addresses to which notifications relating to approval
* requests should be sent. Notifications relating to a resource will be sent
* to all emails in the settings of ancestor resources of that resource. A
* maximum of 50 email addresses are allowed.
*
* @var string[]
*/
public $notificationEmails;
/**
* Optional. A pubsub topic that notifications relating to access approval are
* published to. Notifications include pre-approved accesses.
*
* @var string
*/
public $notificationPubsubTopic;
/**
* This field is used to set a preference for granularity of an access
* approval request. If true, Google personnel will be asked to send resource-
* level requests when possible. If false, Google personnel will be asked to
* send requests at the project level.
*
* @var bool
*/
public $preferNoBroadApprovalRequests;
/**
* Set the default access approval request expiration time. This value is able
* to be set directly by the customer at the time of approval, overriding this
* suggested value. We recommend setting this value to 30 days.
*
* @var int
*/
public $preferredRequestExpirationDays;
/**
* Optional. A setting that indicates the maximum scope of an Access Approval
* request: either organization, folder, or project. Google administrators
* will be asked to send requests no broader than the configured scope.
*
* @var string
*/
public $requestScopeMaxWidthPreference;
/**
* Optional. When enabled, Google will only be able to send approval requests
* for access reasons with a customer accessible case ID in the reason detail.
* Also known as "Require customer initiated support case justification"
*
* @var bool
*/
public $requireCustomerVisibleJustification;
/**
* The asymmetric crypto key version to use for signing approval requests.
* Empty active_key_version indicates that a Google-managed key should be used
* for signing. This property will be ignored if set by an ancestor of this
* resource, and new non-empty values may not be set.
*
* @param string $activeKeyVersion
*/
public function setActiveKeyVersion($activeKeyVersion)
{
$this->activeKeyVersion = $activeKeyVersion;
}
/**
* @return string
*/
public function getActiveKeyVersion()
{
return $this->activeKeyVersion;
}
/**
* Output only. This field is read only (not settable via
* UpdateAccessApprovalSettings method). If the field is true, that indicates
* that an ancestor of this Project or Folder has set active_key_version (this
* field will always be unset for the organization since organizations do not
* have ancestors).
*
* @param bool $ancestorHasActiveKeyVersion
*/
public function setAncestorHasActiveKeyVersion($ancestorHasActiveKeyVersion)
{
$this->ancestorHasActiveKeyVersion = $ancestorHasActiveKeyVersion;
}
/**
* @return bool
*/
public function getAncestorHasActiveKeyVersion()
{
return $this->ancestorHasActiveKeyVersion;
}
/**
* Output only. Field to differentiate ancestor enrolled services from locally
* enrolled services.
*
* @param EnrolledService[] $ancestorsEnrolledServices
*/
public function setAncestorsEnrolledServices($ancestorsEnrolledServices)
{
$this->ancestorsEnrolledServices = $ancestorsEnrolledServices;
}
/**
* @return EnrolledService[]
*/
public function getAncestorsEnrolledServices()
{
return $this->ancestorsEnrolledServices;
}
/**
* Optional. Policy configuration for Access Approval that sets the operating
* mode. The available policies are Transparency, Streamlined Support, and
* Approval Required.
*
* @param CustomerApprovalApprovalPolicy $approvalPolicy
*/
public function setApprovalPolicy(CustomerApprovalApprovalPolicy $approvalPolicy)
{
$this->approvalPolicy = $approvalPolicy;
}
/**
* @return CustomerApprovalApprovalPolicy
*/
public function getApprovalPolicy()
{
return $this->approvalPolicy;
}
/**
* Output only. Effective policy applied for Access Approval, inclusive of
* inheritance.
*
* @param CustomerApprovalApprovalPolicy $effectiveApprovalPolicy
*/
public function setEffectiveApprovalPolicy(CustomerApprovalApprovalPolicy $effectiveApprovalPolicy)
{
$this->effectiveApprovalPolicy = $effectiveApprovalPolicy;
}
/**
* @return CustomerApprovalApprovalPolicy
*/
public function getEffectiveApprovalPolicy()
{
return $this->effectiveApprovalPolicy;
}
/**
* Output only. This field is read only (not settable via
* UpdateAccessApprovalSettings method). If the field is true, that indicates
* that at least one service is enrolled for Access Approval in one or more
* ancestors of the Project or Folder (this field will always be unset for the
* organization since organizations do not have ancestors).
*
* @param bool $enrolledAncestor
*/
public function setEnrolledAncestor($enrolledAncestor)
{
$this->enrolledAncestor = $enrolledAncestor;
}
/**
* @return bool
*/
public function getEnrolledAncestor()
{
return $this->enrolledAncestor;
}
/**
* A list of Google Cloud Services for which the given resource has Access
* Approval enrolled. Access requests for the resource given by name against
* any of these services contained here will be required to have explicit
* approval. If name refers to an organization, enrollment can be done for
* individual services. If name refers to a folder or project, enrollment can
* only be done on an all or nothing basis. If a cloud_product is repeated in
* this list, the first entry will be honored and all following entries will
* be discarded.
*
* @param EnrolledService[] $enrolledServices
*/
public function setEnrolledServices($enrolledServices)
{
$this->enrolledServices = $enrolledServices;
}
/**
* @return EnrolledService[]
*/
public function getEnrolledServices()
{
return $this->enrolledServices;
}
/**
* Output only. This field is read only (not settable via
* UpdateAccessApprovalSettings method). If the field is true, that indicates
* that there is some configuration issue with the active_key_version
* configured at this level in the resource hierarchy (e.g. it doesn't exist
* or the Access Approval service account doesn't have the correct permissions
* on it, etc.) This key version is not necessarily the effective key version
* at this level, as key versions are inherited top-down.
*
* @param bool $invalidKeyVersion
*/
public function setInvalidKeyVersion($invalidKeyVersion)
{
$this->invalidKeyVersion = $invalidKeyVersion;
}
/**
* @return bool
*/
public function getInvalidKeyVersion()
{
return $this->invalidKeyVersion;
}
/**
* The resource name of the settings. Format is one of: *
* "projects/{project}/accessApprovalSettings" *
* "folders/{folder}/accessApprovalSettings" *
* "organizations/{organization}/accessApprovalSettings"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* A list of email addresses to which notifications relating to approval
* requests should be sent. Notifications relating to a resource will be sent
* to all emails in the settings of ancestor resources of that resource. A
* maximum of 50 email addresses are allowed.
*
* @param string[] $notificationEmails
*/
public function setNotificationEmails($notificationEmails)
{
$this->notificationEmails = $notificationEmails;
}
/**
* @return string[]
*/
public function getNotificationEmails()
{
return $this->notificationEmails;
}
/**
* Optional. A pubsub topic that notifications relating to access approval are
* published to. Notifications include pre-approved accesses.
*
* @param string $notificationPubsubTopic
*/
public function setNotificationPubsubTopic($notificationPubsubTopic)
{
$this->notificationPubsubTopic = $notificationPubsubTopic;
}
/**
* @return string
*/
public function getNotificationPubsubTopic()
{
return $this->notificationPubsubTopic;
}
/**
* This field is used to set a preference for granularity of an access
* approval request. If true, Google personnel will be asked to send resource-
* level requests when possible. If false, Google personnel will be asked to
* send requests at the project level.
*
* @param bool $preferNoBroadApprovalRequests
*/
public function setPreferNoBroadApprovalRequests($preferNoBroadApprovalRequests)
{
$this->preferNoBroadApprovalRequests = $preferNoBroadApprovalRequests;
}
/**
* @return bool
*/
public function getPreferNoBroadApprovalRequests()
{
return $this->preferNoBroadApprovalRequests;
}
/**
* Set the default access approval request expiration time. This value is able
* to be set directly by the customer at the time of approval, overriding this
* suggested value. We recommend setting this value to 30 days.
*
* @param int $preferredRequestExpirationDays
*/
public function setPreferredRequestExpirationDays($preferredRequestExpirationDays)
{
$this->preferredRequestExpirationDays = $preferredRequestExpirationDays;
}
/**
* @return int
*/
public function getPreferredRequestExpirationDays()
{
return $this->preferredRequestExpirationDays;
}
/**
* Optional. A setting that indicates the maximum scope of an Access Approval
* request: either organization, folder, or project. Google administrators
* will be asked to send requests no broader than the configured scope.
*
* Accepted values: REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED,
* ORGANIZATION, FOLDER, PROJECT
*
* @param self::REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_* $requestScopeMaxWidthPreference
*/
public function setRequestScopeMaxWidthPreference($requestScopeMaxWidthPreference)
{
$this->requestScopeMaxWidthPreference = $requestScopeMaxWidthPreference;
}
/**
* @return self::REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_*
*/
public function getRequestScopeMaxWidthPreference()
{
return $this->requestScopeMaxWidthPreference;
}
/**
* Optional. When enabled, Google will only be able to send approval requests
* for access reasons with a customer accessible case ID in the reason detail.
* Also known as "Require customer initiated support case justification"
*
* @param bool $requireCustomerVisibleJustification
*/
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');
@@ -0,0 +1,90 @@
<?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
{
/**
* The "home office" location of the Google administrator. A two-letter
* country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region
* code. In some limited situations Google systems may refer refer to a region
* code instead of a country code. Possible Region Codes: * ASI: Asia * EUR:
* Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South
* America * ANT: Antarctica * ANY: Any location
*
* @var string
*/
public $principalOfficeCountry;
/**
* Physical location of the Google administrator at the time of the access. A
* two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
* a region code. In some limited situations Google systems may refer refer to
* a region code instead of a country code. Possible Region Codes: * ASI: Asia
* * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM:
* South America * ANT: Antarctica * ANY: Any location
*
* @var string
*/
public $principalPhysicalLocationCountry;
/**
* The "home office" location of the Google administrator. A two-letter
* country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region
* code. In some limited situations Google systems may refer refer to a region
* code instead of a country code. Possible Region Codes: * ASI: Asia * EUR:
* Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South
* America * ANT: Antarctica * ANY: Any location
*
* @param string $principalOfficeCountry
*/
public function setPrincipalOfficeCountry($principalOfficeCountry)
{
$this->principalOfficeCountry = $principalOfficeCountry;
}
/**
* @return string
*/
public function getPrincipalOfficeCountry()
{
return $this->principalOfficeCountry;
}
/**
* Physical location of the Google administrator at the time of the access. A
* two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
* a region code. In some limited situations Google systems may refer refer to
* a region code instead of a country code. Possible Region Codes: * ASI: Asia
* * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM:
* South America * ANT: Antarctica * ANY: Any location
*
* @param string $principalPhysicalLocationCountry
*/
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');
@@ -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 AccessReason extends \Google\Model
{
/**
* This value is not used.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Customer made a request or raised an issue that required the principal to
* access customer data. `detail` is of the form ("#####" is the issue ID): *
* "Feedback Report: #####" * "Case Number: #####" * "Case ID: #####" * "E-PIN
* Reference: #####" * "Google-#####" * "T-#####"
*/
public const TYPE_CUSTOMER_INITIATED_SUPPORT = 'CUSTOMER_INITIATED_SUPPORT';
/**
* The principal accessed customer data in order to diagnose or resolve a
* suspected issue in services. Often this access is used to confirm that
* customers are not affected by a suspected service issue or to remediate a
* reversible system issue.
*/
public const TYPE_GOOGLE_INITIATED_SERVICE = 'GOOGLE_INITIATED_SERVICE';
/**
* Google initiated service for security, fraud, abuse, or compliance
* purposes.
*/
public const TYPE_GOOGLE_INITIATED_REVIEW = 'GOOGLE_INITIATED_REVIEW';
/**
* The principal was compelled to access customer data in order to respond to
* a legal third party data request or process, including legal processes from
* customers themselves.
*/
public const TYPE_THIRD_PARTY_DATA_REQUEST = 'THIRD_PARTY_DATA_REQUEST';
/**
* The principal accessed customer data in order to diagnose or resolve a
* suspected issue in services or a known outage.
*/
public const TYPE_GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 'GOOGLE_RESPONSE_TO_PRODUCTION_ALERT';
/**
* Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but
* with universe agnostic naming. The principal accessed customer data in
* order to diagnose or resolve a suspected issue in services or a known
* outage, or for security, fraud, abuse, or compliance review purposes.
*/
public const TYPE_CLOUD_INITIATED_ACCESS = 'CLOUD_INITIATED_ACCESS';
/**
* More detail about certain reason types. See comments for each type above.
*
* @var string
*/
public $detail;
/**
* Type of access reason.
*
* @var string
*/
public $type;
/**
* More detail about certain reason types. See comments for each type above.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Type of access reason.
*
* Accepted values: TYPE_UNSPECIFIED, CUSTOMER_INITIATED_SUPPORT,
* GOOGLE_INITIATED_SERVICE, GOOGLE_INITIATED_REVIEW,
* THIRD_PARTY_DATA_REQUEST, GOOGLE_RESPONSE_TO_PRODUCTION_ALERT,
* CLOUD_INITIATED_ACCESS
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
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');
@@ -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');
@@ -0,0 +1,260 @@
<?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 = '';
/**
* The resource name of the request. Format is "{projects|folders|organization
* s}/{id}/approvalRequests/{approval_request}".
*
* @var string
*/
public $name;
/**
* The time at which approval was requested.
*
* @var string
*/
public $requestTime;
protected $requestedAugmentedInfoType = AugmentedInfo::class;
protected $requestedAugmentedInfoDataType = '';
/**
* The requested access duration.
*
* @var string
*/
public $requestedDuration;
/**
* The original requested expiration for the approval. Calculated by adding
* the requested_duration to the request_time.
*
* @var string
*/
public $requestedExpiration;
protected $requestedLocationsType = AccessLocations::class;
protected $requestedLocationsDataType = '';
protected $requestedReasonType = AccessReason::class;
protected $requestedReasonDataType = '';
/**
* The resource for which approval is being requested. The format of the
* resource name is defined at
* https://cloud.google.com/apis/design/resource_names. The resource name here
* may either be a "full" resource name (e.g.
* "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
* resource name (e.g. "shelves/shelf1/books/book2") as described in the
* resource name specification.
*
* @var string
*/
public $requestedResourceName;
protected $requestedResourcePropertiesType = ResourceProperties::class;
protected $requestedResourcePropertiesDataType = '';
/**
* Access was approved.
*
* @param ApproveDecision $approve
*/
public function setApprove(ApproveDecision $approve)
{
$this->approve = $approve;
}
/**
* @return ApproveDecision
*/
public function getApprove()
{
return $this->approve;
}
/**
* The request was dismissed.
*
* @param DismissDecision $dismiss
*/
public function setDismiss(DismissDecision $dismiss)
{
$this->dismiss = $dismiss;
}
/**
* @return DismissDecision
*/
public function getDismiss()
{
return $this->dismiss;
}
/**
* The resource name of the request. Format is "{projects|folders|organization
* s}/{id}/approvalRequests/{approval_request}".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The time at which approval was requested.
*
* @param string $requestTime
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
}
/**
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* This field contains the augmented information of the request.
*
* @param AugmentedInfo $requestedAugmentedInfo
*/
public function setRequestedAugmentedInfo(AugmentedInfo $requestedAugmentedInfo)
{
$this->requestedAugmentedInfo = $requestedAugmentedInfo;
}
/**
* @return AugmentedInfo
*/
public function getRequestedAugmentedInfo()
{
return $this->requestedAugmentedInfo;
}
/**
* The requested access duration.
*
* @param string $requestedDuration
*/
public function setRequestedDuration($requestedDuration)
{
$this->requestedDuration = $requestedDuration;
}
/**
* @return string
*/
public function getRequestedDuration()
{
return $this->requestedDuration;
}
/**
* The original requested expiration for the approval. Calculated by adding
* the requested_duration to the request_time.
*
* @param string $requestedExpiration
*/
public function setRequestedExpiration($requestedExpiration)
{
$this->requestedExpiration = $requestedExpiration;
}
/**
* @return string
*/
public function getRequestedExpiration()
{
return $this->requestedExpiration;
}
/**
* The locations for which approval is being requested.
*
* @param AccessLocations $requestedLocations
*/
public function setRequestedLocations(AccessLocations $requestedLocations)
{
$this->requestedLocations = $requestedLocations;
}
/**
* @return AccessLocations
*/
public function getRequestedLocations()
{
return $this->requestedLocations;
}
/**
* The access reason for which approval is being requested.
*
* @param AccessReason $requestedReason
*/
public function setRequestedReason(AccessReason $requestedReason)
{
$this->requestedReason = $requestedReason;
}
/**
* @return AccessReason
*/
public function getRequestedReason()
{
return $this->requestedReason;
}
/**
* The resource for which approval is being requested. The format of the
* resource name is defined at
* https://cloud.google.com/apis/design/resource_names. The resource name here
* may either be a "full" resource name (e.g.
* "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
* resource name (e.g. "shelves/shelf1/books/book2") as described in the
* resource name specification.
*
* @param string $requestedResourceName
*/
public function setRequestedResourceName($requestedResourceName)
{
$this->requestedResourceName = $requestedResourceName;
}
/**
* @return string
*/
public function getRequestedResourceName()
{
return $this->requestedResourceName;
}
/**
* Properties related to the resource represented by requested_resource_name.
*
* @param ResourceProperties $requestedResourceProperties
*/
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');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval;
class ApproveApprovalRequestMessage extends \Google\Model
{
/**
* The expiration time of this approval.
*
* @var string
*/
public $expireTime;
/**
* The expiration time of this approval.
*
* @param string $expireTime
*/
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');
@@ -0,0 +1,154 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval;
class ApproveDecision extends \Google\Model
{
/**
* The time at which approval was granted.
*
* @var string
*/
public $approveTime;
/**
* True when the request has been auto-approved.
*
* @var bool
*/
public $autoApproved;
/**
* The time at which the approval expires.
*
* @var string
*/
public $expireTime;
/**
* If set, denotes the timestamp at which the approval is invalidated.
*
* @var string
*/
public $invalidateTime;
/**
* True when the request has been approved by the customer's defined policy.
*
* @var bool
*/
public $policyApproved;
protected $signatureInfoType = SignatureInfo::class;
protected $signatureInfoDataType = '';
/**
* The time at which approval was granted.
*
* @param string $approveTime
*/
public function setApproveTime($approveTime)
{
$this->approveTime = $approveTime;
}
/**
* @return string
*/
public function getApproveTime()
{
return $this->approveTime;
}
/**
* True when the request has been auto-approved.
*
* @param bool $autoApproved
*/
public function setAutoApproved($autoApproved)
{
$this->autoApproved = $autoApproved;
}
/**
* @return bool
*/
public function getAutoApproved()
{
return $this->autoApproved;
}
/**
* The time at which the approval expires.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* If set, denotes the timestamp at which the approval is invalidated.
*
* @param string $invalidateTime
*/
public function setInvalidateTime($invalidateTime)
{
$this->invalidateTime = $invalidateTime;
}
/**
* @return string
*/
public function getInvalidateTime()
{
return $this->invalidateTime;
}
/**
* True when the request has been approved by the customer's defined policy.
*
* @param bool $policyApproved
*/
public function setPolicyApproved($policyApproved)
{
$this->policyApproved = $policyApproved;
}
/**
* @return bool
*/
public function getPolicyApproved()
{
return $this->policyApproved;
}
/**
* The signature for the ApprovalRequest and details on how it was signed.
*
* @param SignatureInfo $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');
@@ -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\AccessApproval;
class AugmentedInfo extends \Google\Model
{
/**
* For command-line tools, the full command-line exactly as entered by the
* actor without adding any additional characters (such as quotation marks).
*
* @var string
*/
public $command;
/**
* For command-line tools, the full command-line exactly as entered by the
* actor without adding any additional characters (such as quotation marks).
*
* @param string $command
*/
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');
@@ -0,0 +1,78 @@
<?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 CustomerApprovalApprovalPolicy extends \Google\Model
{
/**
* Default value, defaults to JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED if not
* set. This value is not able to be configured by the user, do not use.
*/
public const JUSTIFICATION_BASED_APPROVAL_POLICY_JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED = 'JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED';
/**
* Audit-only mode. All accesses are pre-approved instantly.
*/
public const JUSTIFICATION_BASED_APPROVAL_POLICY_JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL = 'JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL';
/**
* Customer initiated support access reasons are pre-approved instantly. All
* other accesses require customer approval.
*/
public const JUSTIFICATION_BASED_APPROVAL_POLICY_JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS = 'JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS';
/**
* All access approval requests require customer approval. This is the default
* value if the policy is not set.
*/
public const JUSTIFICATION_BASED_APPROVAL_POLICY_JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED = 'JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED';
/**
* Defer configuration to parent settings. This is the default value if the
* policy is not set and the parent has a value set.
*/
public const JUSTIFICATION_BASED_APPROVAL_POLICY_JUSTIFICATION_BASED_APPROVAL_INHERITED = 'JUSTIFICATION_BASED_APPROVAL_INHERITED';
/**
* Optional. Policy for approval based on the justification given.
*
* @var string
*/
public $justificationBasedApprovalPolicy;
/**
* Optional. Policy for approval based on the justification given.
*
* Accepted values: JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED,
* JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL,
* JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS,
* JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED,
* JUSTIFICATION_BASED_APPROVAL_INHERITED
*
* @param self::JUSTIFICATION_BASED_APPROVAL_POLICY_* $justificationBasedApprovalPolicy
*/
public function setJustificationBasedApprovalPolicy($justificationBasedApprovalPolicy)
{
$this->justificationBasedApprovalPolicy = $justificationBasedApprovalPolicy;
}
/**
* @return self::JUSTIFICATION_BASED_APPROVAL_POLICY_*
*/
public function getJustificationBasedApprovalPolicy()
{
return $this->justificationBasedApprovalPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerApprovalApprovalPolicy::class, 'Google_Service_AccessApproval_CustomerApprovalApprovalPolicy');
@@ -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');
@@ -0,0 +1,74 @@
<?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
{
/**
* The time at which the approval request was dismissed.
*
* @var string
*/
public $dismissTime;
/**
* This field will be true if the ApprovalRequest was implicitly dismissed due
* to inaction by the access approval approvers (the request is not acted on
* by the approvers before the exiration time).
*
* @var bool
*/
public $implicit;
/**
* The time at which the approval request was dismissed.
*
* @param string $dismissTime
*/
public function setDismissTime($dismissTime)
{
$this->dismissTime = $dismissTime;
}
/**
* @return string
*/
public function getDismissTime()
{
return $this->dismissTime;
}
/**
* This field will be true if the ApprovalRequest was implicitly dismissed due
* to inaction by the access approval approvers (the request is not acted on
* by the approvers before the exiration time).
*
* @param bool $implicit
*/
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');
@@ -0,0 +1,175 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AccessApproval;
class EnrolledService extends \Google\Model
{
/**
* Default value if not set, defaults to "BLOCK_ALL". This value is not
* available to be set by the user, do not use.
*/
public const ENROLLMENT_LEVEL_ENROLLMENT_LEVEL_UNSPECIFIED = 'ENROLLMENT_LEVEL_UNSPECIFIED';
/**
* Service is enrolled in Access Approval for all requests
*/
public const ENROLLMENT_LEVEL_BLOCK_ALL = 'BLOCK_ALL';
/**
* The product for which Access Approval will be enrolled. Allowed values are
* listed below (case-sensitive): * all * GA * Access Context Manager * Anthos
* Identity Service * AlloyDB for PostgreSQL * Apigee * Application
* Integration * App Hub * Artifact Registry * Anthos Service Mesh * Access
* Transparency * BigQuery * Certificate Authority Service * Cloud Bigtable *
* CCAI Assist and Knowledge * Cloud Dataflow * Cloud Dataproc * CEP Security
* Gateway * Compliance Evaluation Service * Cloud Firestore * Cloud
* Healthcare API * Chronicle * Cloud AI Companion Gateway - Titan * Google
* Cloud Armor * Cloud Asset Inventory * Cloud Asset Search * Cloud Deploy *
* Cloud DNS * Cloud Latency * Cloud Memorystore for Redis * CloudNet Control
* * Cloud Riptide * Cloud Tasks * Cloud Trace * Cloud Data Transfer * Cloud
* Composer * Integration Connectors * Contact Center AI Insights * Cloud
* Pub/Sub * Cloud Run * Resource Manager * Cloud Spanner * Database Center *
* Cloud Dataform * Cloud Data Fusion * Dataplex * Dialogflow Customer
* Experience Edition * Cloud DLP * Document AI * Edge Container * Edge
* Network * Cloud EKM * Eventarc * Firebase Data Connect * Firebase Rules *
* App Engine * Cloud Build * Compute Engine * Cloud Functions (2nd Gen) *
* Cloud Filestore * Cloud Interconnect * Cloud NetApp Volumes * Cloud Storage
* * Generative AI App Builder * Google Kubernetes Engine * Backup for GKE API
* * GKE Connect * GKE Hub * Hoverboard * Cloud HSM * Cloud Identity and
* Access Management * Cloud Identity-Aware Proxy * Infrastructure Manager *
* Identity Storage Service * Key Access Justifications * Cloud Key Management
* Service * Cloud Logging * Looker (Google Cloud core) * Looker Studio *
* Management Hub * Model Armor * Cloud Monitoring * Cloud NAT * Connectivity
* Hub * External passthrough Network Load Balancer * OIDC One * Organization
* Policy Service * Org Lifecycle * Persistent Disk * Parameter Manager *
* Private Services Access * Regional Internal Application Load Balancer *
* Storage Batch Operations * Cloud Security Command Center * Secure Source
* Manager * Seeker * Service Provisioning * Speaker ID * Secret Manager *
* Cloud SQL * Cloud Speech-to-Text * Traffic Director * Cloud Text-to-Speech
* * USPS Andromeda * Vertex AI * Virtual Private Cloud (VPC) * VPC Access *
* VPC Service Controls Troubleshooter * VPC virtnet * Cloud Workstations *
* Web Risk Note: These values are supported as input for legacy purposes, but
* will not be returned from the API. * all * ga-only *
* appengine.googleapis.com * artifactregistry.googleapis.com *
* bigquery.googleapis.com * bigtable.googleapis.com *
* container.googleapis.com * cloudkms.googleapis.com *
* cloudresourcemanager.googleapis.com * cloudsql.googleapis.com *
* compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com
* * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com *
* orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com *
* secretmanager.googleapis.com * speakerid.googleapis.com *
* storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or
* any of the XXX.googleapis.com will be translated to the associated product
* name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in
* all products supported at both 'GA' and 'Preview' levels. More information
* about levels of support is available at https://cloud.google.com/access-
* approval/docs/supported-services
*
* @var string
*/
public $cloudProduct;
/**
* The enrollment level of the service.
*
* @var string
*/
public $enrollmentLevel;
/**
* The product for which Access Approval will be enrolled. Allowed values are
* listed below (case-sensitive): * all * GA * Access Context Manager * Anthos
* Identity Service * AlloyDB for PostgreSQL * Apigee * Application
* Integration * App Hub * Artifact Registry * Anthos Service Mesh * Access
* Transparency * BigQuery * Certificate Authority Service * Cloud Bigtable *
* CCAI Assist and Knowledge * Cloud Dataflow * Cloud Dataproc * CEP Security
* Gateway * Compliance Evaluation Service * Cloud Firestore * Cloud
* Healthcare API * Chronicle * Cloud AI Companion Gateway - Titan * Google
* Cloud Armor * Cloud Asset Inventory * Cloud Asset Search * Cloud Deploy *
* Cloud DNS * Cloud Latency * Cloud Memorystore for Redis * CloudNet Control
* * Cloud Riptide * Cloud Tasks * Cloud Trace * Cloud Data Transfer * Cloud
* Composer * Integration Connectors * Contact Center AI Insights * Cloud
* Pub/Sub * Cloud Run * Resource Manager * Cloud Spanner * Database Center *
* Cloud Dataform * Cloud Data Fusion * Dataplex * Dialogflow Customer
* Experience Edition * Cloud DLP * Document AI * Edge Container * Edge
* Network * Cloud EKM * Eventarc * Firebase Data Connect * Firebase Rules *
* App Engine * Cloud Build * Compute Engine * Cloud Functions (2nd Gen) *
* Cloud Filestore * Cloud Interconnect * Cloud NetApp Volumes * Cloud Storage
* * Generative AI App Builder * Google Kubernetes Engine * Backup for GKE API
* * GKE Connect * GKE Hub * Hoverboard * Cloud HSM * Cloud Identity and
* Access Management * Cloud Identity-Aware Proxy * Infrastructure Manager *
* Identity Storage Service * Key Access Justifications * Cloud Key Management
* Service * Cloud Logging * Looker (Google Cloud core) * Looker Studio *
* Management Hub * Model Armor * Cloud Monitoring * Cloud NAT * Connectivity
* Hub * External passthrough Network Load Balancer * OIDC One * Organization
* Policy Service * Org Lifecycle * Persistent Disk * Parameter Manager *
* Private Services Access * Regional Internal Application Load Balancer *
* Storage Batch Operations * Cloud Security Command Center * Secure Source
* Manager * Seeker * Service Provisioning * Speaker ID * Secret Manager *
* Cloud SQL * Cloud Speech-to-Text * Traffic Director * Cloud Text-to-Speech
* * USPS Andromeda * Vertex AI * Virtual Private Cloud (VPC) * VPC Access *
* VPC Service Controls Troubleshooter * VPC virtnet * Cloud Workstations *
* Web Risk Note: These values are supported as input for legacy purposes, but
* will not be returned from the API. * all * ga-only *
* appengine.googleapis.com * artifactregistry.googleapis.com *
* bigquery.googleapis.com * bigtable.googleapis.com *
* container.googleapis.com * cloudkms.googleapis.com *
* cloudresourcemanager.googleapis.com * cloudsql.googleapis.com *
* compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com
* * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com *
* orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com *
* secretmanager.googleapis.com * speakerid.googleapis.com *
* storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or
* any of the XXX.googleapis.com will be translated to the associated product
* name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in
* all products supported at both 'GA' and 'Preview' levels. More information
* about levels of support is available at https://cloud.google.com/access-
* approval/docs/supported-services
*
* @param string $cloudProduct
*/
public function setCloudProduct($cloudProduct)
{
$this->cloudProduct = $cloudProduct;
}
/**
* @return string
*/
public function getCloudProduct()
{
return $this->cloudProduct;
}
/**
* The enrollment level of the service.
*
* Accepted values: ENROLLMENT_LEVEL_UNSPECIFIED, BLOCK_ALL
*
* @param self::ENROLLMENT_LEVEL_* $enrollmentLevel
*/
public function setEnrollmentLevel($enrollmentLevel)
{
$this->enrollmentLevel = $enrollmentLevel;
}
/**
* @return self::ENROLLMENT_LEVEL_*
*/
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');
@@ -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');
@@ -0,0 +1,67 @@
<?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';
/**
* Token to retrieve the next page of results, or empty if there are no more.
*
* @var string
*/
public $nextPageToken;
/**
* Approval request details.
*
* @param ApprovalRequest[] $approvalRequests
*/
public function setApprovalRequests($approvalRequests)
{
$this->approvalRequests = $approvalRequests;
}
/**
* @return ApprovalRequest[]
*/
public function getApprovalRequests()
{
return $this->approvalRequests;
}
/**
* Token to retrieve the next page of results, or empty if there are no more.
*
* @param string $nextPageToken
*/
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');
@@ -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\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 resource. Access
* Approval may remain active based on parent resource settings. To confirm the
* effective settings, call GetAccessApprovalSettings and verify effective
* setting is disabled. (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 Access Approval 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');
@@ -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: When a
* request is dismissed, it is considered ignored. Dismissing a request does not
* prevent access granted by other Access Approval requests. 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 action revokes Google access based on this approval request. If
* the resource has other active approvals, access will remain granted. 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');
@@ -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 "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 resource. Access
* Approval may remain active based on parent resource settings. To confirm the
* effective settings, call GetAccessApprovalSettings and verify effective
* setting is disabled. (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 Access Approval 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');
@@ -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: When a
* request is dismissed, it is considered ignored. Dismissing a request does not
* prevent access granted by other Access Approval requests. 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 action revokes Google access based on this approval request. If
* the resource has other active approvals, access will remain granted. 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');
@@ -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\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 resource. Access
* Approval may remain active based on parent resource settings. To confirm the
* effective settings, call GetAccessApprovalSettings and verify effective
* setting is disabled. (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 Access Approval 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');
@@ -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: When a
* request is dismissed, it is considered ignored. Dismissing a request does not
* prevent access granted by other Access Approval requests. 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 action revokes Google access based on this approval request. If
* the resource has other active approvals, access will remain granted. 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');
@@ -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\AccessApproval;
class ResourceProperties extends \Google\Model
{
/**
* Whether an approval will exclude the descendants of the resource being
* requested.
*
* @var bool
*/
public $excludesDescendants;
/**
* Whether an approval will exclude the descendants of the resource being
* requested.
*
* @param bool $excludesDescendants
*/
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');
@@ -0,0 +1,372 @@
<?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
{
/**
* Not specified.
*/
public const GOOGLE_KEY_ALGORITHM_CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED = 'CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED';
/**
* Creates symmetric encryption keys.
*/
public const GOOGLE_KEY_ALGORITHM_GOOGLE_SYMMETRIC_ENCRYPTION = 'GOOGLE_SYMMETRIC_ENCRYPTION';
/**
* AES-GCM (Galois Counter Mode) using 128-bit keys.
*/
public const GOOGLE_KEY_ALGORITHM_AES_128_GCM = 'AES_128_GCM';
/**
* AES-GCM (Galois Counter Mode) using 256-bit keys.
*/
public const GOOGLE_KEY_ALGORITHM_AES_256_GCM = 'AES_256_GCM';
/**
* AES-CBC (Cipher Block Chaining Mode) using 128-bit keys.
*/
public const GOOGLE_KEY_ALGORITHM_AES_128_CBC = 'AES_128_CBC';
/**
* AES-CBC (Cipher Block Chaining Mode) using 256-bit keys.
*/
public const GOOGLE_KEY_ALGORITHM_AES_256_CBC = 'AES_256_CBC';
/**
* AES-CTR (Counter Mode) using 128-bit keys.
*/
public const GOOGLE_KEY_ALGORITHM_AES_128_CTR = 'AES_128_CTR';
/**
* AES-CTR (Counter Mode) using 256-bit keys.
*/
public const GOOGLE_KEY_ALGORITHM_AES_256_CTR = 'AES_256_CTR';
/**
* RSASSA-PSS 2048 bit key with a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PSS_2048_SHA256 = 'RSA_SIGN_PSS_2048_SHA256';
/**
* RSASSA-PSS 3072 bit key with a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PSS_3072_SHA256 = 'RSA_SIGN_PSS_3072_SHA256';
/**
* RSASSA-PSS 4096 bit key with a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PSS_4096_SHA256 = 'RSA_SIGN_PSS_4096_SHA256';
/**
* RSASSA-PSS 4096 bit key with a SHA512 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PSS_4096_SHA512 = 'RSA_SIGN_PSS_4096_SHA512';
/**
* RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PKCS1_2048_SHA256 = 'RSA_SIGN_PKCS1_2048_SHA256';
/**
* RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PKCS1_3072_SHA256 = 'RSA_SIGN_PKCS1_3072_SHA256';
/**
* RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PKCS1_4096_SHA256 = 'RSA_SIGN_PKCS1_4096_SHA256';
/**
* RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_PKCS1_4096_SHA512 = 'RSA_SIGN_PKCS1_4096_SHA512';
/**
* RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_RAW_PKCS1_2048 = 'RSA_SIGN_RAW_PKCS1_2048';
/**
* RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_RAW_PKCS1_3072 = 'RSA_SIGN_RAW_PKCS1_3072';
/**
* RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_SIGN_RAW_PKCS1_4096 = 'RSA_SIGN_RAW_PKCS1_4096';
/**
* RSAES-OAEP 2048 bit key with a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_2048_SHA256 = 'RSA_DECRYPT_OAEP_2048_SHA256';
/**
* RSAES-OAEP 3072 bit key with a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_3072_SHA256 = 'RSA_DECRYPT_OAEP_3072_SHA256';
/**
* RSAES-OAEP 4096 bit key with a SHA256 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_4096_SHA256 = 'RSA_DECRYPT_OAEP_4096_SHA256';
/**
* RSAES-OAEP 4096 bit key with a SHA512 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_4096_SHA512 = 'RSA_DECRYPT_OAEP_4096_SHA512';
/**
* RSAES-OAEP 2048 bit key with a SHA1 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_2048_SHA1 = 'RSA_DECRYPT_OAEP_2048_SHA1';
/**
* RSAES-OAEP 3072 bit key with a SHA1 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_3072_SHA1 = 'RSA_DECRYPT_OAEP_3072_SHA1';
/**
* RSAES-OAEP 4096 bit key with a SHA1 digest.
*/
public const GOOGLE_KEY_ALGORITHM_RSA_DECRYPT_OAEP_4096_SHA1 = 'RSA_DECRYPT_OAEP_4096_SHA1';
/**
* ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions
* can also be used: https://cloud.google.com/kms/docs/create-validate-
* signatures#ecdsa_support_for_other_hash_algorithms
*/
public const GOOGLE_KEY_ALGORITHM_EC_SIGN_P256_SHA256 = 'EC_SIGN_P256_SHA256';
/**
* ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions
* can also be used: https://cloud.google.com/kms/docs/create-validate-
* signatures#ecdsa_support_for_other_hash_algorithms
*/
public const GOOGLE_KEY_ALGORITHM_EC_SIGN_P384_SHA384 = 'EC_SIGN_P384_SHA384';
/**
* ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM
* protection level. Other hash functions can also be used:
* https://cloud.google.com/kms/docs/create-validate-
* signatures#ecdsa_support_for_other_hash_algorithms
*/
public const GOOGLE_KEY_ALGORITHM_EC_SIGN_SECP256K1_SHA256 = 'EC_SIGN_SECP256K1_SHA256';
/**
* EdDSA on the Curve25519 in pure mode (taking data as input).
*/
public const GOOGLE_KEY_ALGORITHM_EC_SIGN_ED25519 = 'EC_SIGN_ED25519';
/**
* HMAC-SHA256 signing with a 256 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_HMAC_SHA256 = 'HMAC_SHA256';
/**
* HMAC-SHA1 signing with a 160 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_HMAC_SHA1 = 'HMAC_SHA1';
/**
* HMAC-SHA384 signing with a 384 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_HMAC_SHA384 = 'HMAC_SHA384';
/**
* HMAC-SHA512 signing with a 512 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_HMAC_SHA512 = 'HMAC_SHA512';
/**
* HMAC-SHA224 signing with a 224 bit key.
*/
public const GOOGLE_KEY_ALGORITHM_HMAC_SHA224 = 'HMAC_SHA224';
/**
* Algorithm representing symmetric encryption by an external key manager.
*/
public const GOOGLE_KEY_ALGORITHM_EXTERNAL_SYMMETRIC_ENCRYPTION = 'EXTERNAL_SYMMETRIC_ENCRYPTION';
/**
* ML-KEM-768 (FIPS 203)
*/
public const GOOGLE_KEY_ALGORITHM_ML_KEM_768 = 'ML_KEM_768';
/**
* ML-KEM-1024 (FIPS 203)
*/
public const GOOGLE_KEY_ALGORITHM_ML_KEM_1024 = 'ML_KEM_1024';
/**
* X-Wing hybrid KEM combining ML-KEM-768 with X25519 following
* datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/.
*/
public const GOOGLE_KEY_ALGORITHM_KEM_XWING = 'KEM_XWING';
/**
* The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
* security level 1. Randomized version.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_ML_DSA_44 = 'PQ_SIGN_ML_DSA_44';
/**
* The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
* security level 3. Randomized version.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_ML_DSA_65 = 'PQ_SIGN_ML_DSA_65';
/**
* The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
* security level 5. Randomized version.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_ML_DSA_87 = 'PQ_SIGN_ML_DSA_87';
/**
* The post-quantum stateless hash-based digital signature algorithm, at
* security level 1. Randomized version.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_SLH_DSA_SHA2_128S = 'PQ_SIGN_SLH_DSA_SHA2_128S';
/**
* The post-quantum stateless hash-based digital signature algorithm, at
* security level 1. Randomized pre-hash version supporting SHA256 digests.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256 = 'PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256';
/**
* The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
* security level 1. Randomized version supporting externally-computed message
* representatives.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_ML_DSA_44_EXTERNAL_MU = 'PQ_SIGN_ML_DSA_44_EXTERNAL_MU';
/**
* The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
* security level 3. Randomized version supporting externally-computed message
* representatives.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_ML_DSA_65_EXTERNAL_MU = 'PQ_SIGN_ML_DSA_65_EXTERNAL_MU';
/**
* The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
* security level 5. Randomized version supporting externally-computed message
* representatives.
*/
public const GOOGLE_KEY_ALGORITHM_PQ_SIGN_ML_DSA_87_EXTERNAL_MU = 'PQ_SIGN_ML_DSA_87_EXTERNAL_MU';
/**
* The resource name of the customer CryptoKeyVersion used for signing.
*
* @var string
*/
public $customerKmsKeyVersion;
/**
* The hashing algorithm used for signature verification. It will only be
* present in the case of Google managed keys.
*
* @var string
*/
public $googleKeyAlgorithm;
/**
* The public key for the Google default signing, encoded in PEM format. The
* signature was created using a private key which may be verified using this
* public key.
*
* @var string
*/
public $googlePublicKeyPem;
/**
* The ApprovalRequest that is serialized without the SignatureInfo message
* field. This data is used with the hashing algorithm to generate the digital
* signature, and it can be used for signature verification.
*
* @var string
*/
public $serializedApprovalRequest;
/**
* The digital signature.
*
* @var string
*/
public $signature;
/**
* The resource name of the customer CryptoKeyVersion used for signing.
*
* @param string $customerKmsKeyVersion
*/
public function setCustomerKmsKeyVersion($customerKmsKeyVersion)
{
$this->customerKmsKeyVersion = $customerKmsKeyVersion;
}
/**
* @return string
*/
public function getCustomerKmsKeyVersion()
{
return $this->customerKmsKeyVersion;
}
/**
* The hashing algorithm used for signature verification. It will only be
* present in the case of Google managed keys.
*
* Accepted values: CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED,
* GOOGLE_SYMMETRIC_ENCRYPTION, AES_128_GCM, AES_256_GCM, AES_128_CBC,
* AES_256_CBC, AES_128_CTR, AES_256_CTR, RSA_SIGN_PSS_2048_SHA256,
* RSA_SIGN_PSS_3072_SHA256, RSA_SIGN_PSS_4096_SHA256,
* RSA_SIGN_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256,
* RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256,
* RSA_SIGN_PKCS1_4096_SHA512, RSA_SIGN_RAW_PKCS1_2048,
* RSA_SIGN_RAW_PKCS1_3072, RSA_SIGN_RAW_PKCS1_4096,
* RSA_DECRYPT_OAEP_2048_SHA256, RSA_DECRYPT_OAEP_3072_SHA256,
* RSA_DECRYPT_OAEP_4096_SHA256, RSA_DECRYPT_OAEP_4096_SHA512,
* RSA_DECRYPT_OAEP_2048_SHA1, RSA_DECRYPT_OAEP_3072_SHA1,
* RSA_DECRYPT_OAEP_4096_SHA1, EC_SIGN_P256_SHA256, EC_SIGN_P384_SHA384,
* EC_SIGN_SECP256K1_SHA256, EC_SIGN_ED25519, HMAC_SHA256, HMAC_SHA1,
* HMAC_SHA384, HMAC_SHA512, HMAC_SHA224, EXTERNAL_SYMMETRIC_ENCRYPTION,
* ML_KEM_768, ML_KEM_1024, KEM_XWING, PQ_SIGN_ML_DSA_44, PQ_SIGN_ML_DSA_65,
* PQ_SIGN_ML_DSA_87, PQ_SIGN_SLH_DSA_SHA2_128S,
* PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256, PQ_SIGN_ML_DSA_44_EXTERNAL_MU,
* PQ_SIGN_ML_DSA_65_EXTERNAL_MU, PQ_SIGN_ML_DSA_87_EXTERNAL_MU
*
* @param self::GOOGLE_KEY_ALGORITHM_* $googleKeyAlgorithm
*/
public function setGoogleKeyAlgorithm($googleKeyAlgorithm)
{
$this->googleKeyAlgorithm = $googleKeyAlgorithm;
}
/**
* @return self::GOOGLE_KEY_ALGORITHM_*
*/
public function getGoogleKeyAlgorithm()
{
return $this->googleKeyAlgorithm;
}
/**
* The public key for the Google default signing, encoded in PEM format. The
* signature was created using a private key which may be verified using this
* public key.
*
* @param string $googlePublicKeyPem
*/
public function setGooglePublicKeyPem($googlePublicKeyPem)
{
$this->googlePublicKeyPem = $googlePublicKeyPem;
}
/**
* @return string
*/
public function getGooglePublicKeyPem()
{
return $this->googlePublicKeyPem;
}
/**
* The ApprovalRequest that is serialized without the SignatureInfo message
* field. This data is used with the hashing algorithm to generate the digital
* signature, and it can be used for signature verification.
*
* @param string $serializedApprovalRequest
*/
public function setSerializedApprovalRequest($serializedApprovalRequest)
{
$this->serializedApprovalRequest = $serializedApprovalRequest;
}
/**
* @return string
*/
public function getSerializedApprovalRequest()
{
return $this->serializedApprovalRequest;
}
/**
* The digital signature.
*
* @param string $signature
*/
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');