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,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\CertificateManager;
class AllowlistedCertificate extends \Google\Model
{
/**
* Required. PEM certificate that is allowlisted. The certificate can be up to
* 5k bytes, and must be a parseable X.509 certificate.
*
* @var string
*/
public $pemCertificate;
/**
* Required. PEM certificate that is allowlisted. The certificate can be up to
* 5k bytes, and must be a parseable X.509 certificate.
*
* @param string $pemCertificate
*/
public function setPemCertificate($pemCertificate)
{
$this->pemCertificate = $pemCertificate;
}
/**
* @return string
*/
public function getPemCertificate()
{
return $this->pemCertificate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllowlistedCertificate::class, 'Google_Service_CertificateManager_AllowlistedCertificate');
@@ -0,0 +1,203 @@
<?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\CertificateManager;
class AuthorizationAttemptInfo extends \Google\Model
{
/**
* FailureReason is unspecified.
*/
public const FAILURE_REASON_FAILURE_REASON_UNSPECIFIED = 'FAILURE_REASON_UNSPECIFIED';
/**
* There was a problem with the user's DNS or load balancer configuration for
* this domain.
*/
public const FAILURE_REASON_CONFIG = 'CONFIG';
/**
* Certificate issuance forbidden by an explicit CAA record for the domain or
* a failure to check CAA records for the domain.
*/
public const FAILURE_REASON_CAA = 'CAA';
/**
* Reached a CA or internal rate-limit for the domain, e.g. for certificates
* per top-level private domain.
*/
public const FAILURE_REASON_RATE_LIMITED = 'RATE_LIMITED';
/**
* State is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Certificate provisioning for this domain is under way. Google Cloud will
* attempt to authorize the domain.
*/
public const STATE_AUTHORIZING = 'AUTHORIZING';
/**
* A managed certificate can be provisioned, no issues for this domain.
*/
public const STATE_AUTHORIZED = 'AUTHORIZED';
/**
* Attempt to authorize the domain failed. This prevents the Managed
* Certificate from being issued. See `failure_reason` and `details` fields
* for more information.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. The timestamp, when the authorization attempt was made.
*
* @var string
*/
public $attemptTime;
/**
* Output only. Human readable explanation for reaching the state. Provided to
* help address the configuration issues. Not guaranteed to be stable. For
* programmatic access use FailureReason enum.
*
* @var string
*/
public $details;
/**
* Output only. Domain name of the authorization attempt.
*
* @var string
*/
public $domain;
/**
* Output only. Reason for failure of the authorization attempt for the
* domain.
*
* @var string
*/
public $failureReason;
/**
* Output only. State of the domain for managed certificate issuance.
*
* @var string
*/
public $state;
protected $troubleshootingType = Troubleshooting::class;
protected $troubleshootingDataType = '';
/**
* Output only. The timestamp, when the authorization attempt was made.
*
* @param string $attemptTime
*/
public function setAttemptTime($attemptTime)
{
$this->attemptTime = $attemptTime;
}
/**
* @return string
*/
public function getAttemptTime()
{
return $this->attemptTime;
}
/**
* Output only. Human readable explanation for reaching the state. Provided to
* help address the configuration issues. Not guaranteed to be stable. For
* programmatic access use FailureReason enum.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* Output only. Domain name of the authorization attempt.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Output only. Reason for failure of the authorization attempt for the
* domain.
*
* Accepted values: FAILURE_REASON_UNSPECIFIED, CONFIG, CAA, RATE_LIMITED
*
* @param self::FAILURE_REASON_* $failureReason
*/
public function setFailureReason($failureReason)
{
$this->failureReason = $failureReason;
}
/**
* @return self::FAILURE_REASON_*
*/
public function getFailureReason()
{
return $this->failureReason;
}
/**
* Output only. State of the domain for managed certificate issuance.
*
* Accepted values: STATE_UNSPECIFIED, AUTHORIZING, AUTHORIZED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Troubleshooting information for the authorization attempt.
* This field is only populated if the authorization attempt failed.
*
* @param Troubleshooting $troubleshooting
*/
public function setTroubleshooting(Troubleshooting $troubleshooting)
{
$this->troubleshooting = $troubleshooting;
}
/**
* @return Troubleshooting
*/
public function getTroubleshooting()
{
return $this->troubleshooting;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizationAttemptInfo::class, 'Google_Service_CertificateManager_AuthorizationAttemptInfo');
@@ -0,0 +1,103 @@
<?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\CertificateManager;
class CNAME extends \Google\Collection
{
protected $collection_key = 'resolvedData';
/**
* Output only. The expected value of the CNAME record for the domain, equals
* to `dns_resource_record.data` in the corresponding `DnsAuthorization`.
*
* @var string
*/
public $expectedData;
/**
* Output only. The name of the CNAME record for the domain, equals to
* `dns_resource_record.name` in the corresponding `DnsAuthorization`.
*
* @var string
*/
public $name;
/**
* Output only. The resolved CNAME chain. Empty list if the CNAME record for
* `CNAME.name` is not found. Otherwise the first item is the value of the
* CNAME record for `CNAME.name`. If the CNAME chain is longer, the second
* item is the value of the CNAME record for the first item, and so on.
*
* @var string[]
*/
public $resolvedData;
/**
* Output only. The expected value of the CNAME record for the domain, equals
* to `dns_resource_record.data` in the corresponding `DnsAuthorization`.
*
* @param string $expectedData
*/
public function setExpectedData($expectedData)
{
$this->expectedData = $expectedData;
}
/**
* @return string
*/
public function getExpectedData()
{
return $this->expectedData;
}
/**
* Output only. The name of the CNAME record for the domain, equals to
* `dns_resource_record.name` in the corresponding `DnsAuthorization`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The resolved CNAME chain. Empty list if the CNAME record for
* `CNAME.name` is not found. Otherwise the first item is the value of the
* CNAME record for `CNAME.name`. If the CNAME chain is longer, the second
* item is the value of the CNAME record for the first item, and so on.
*
* @param string[] $resolvedData
*/
public function setResolvedData($resolvedData)
{
$this->resolvedData = $resolvedData;
}
/**
* @return string[]
*/
public function getResolvedData()
{
return $this->resolvedData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CNAME::class, 'Google_Service_CertificateManager_CNAME');
@@ -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\CertificateManager;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_CertificateManager_CancelOperationRequest');
@@ -0,0 +1,330 @@
<?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\CertificateManager;
class Certificate extends \Google\Collection
{
/**
* Use the DEFAULT scope if you plan to use the certificate with global
* external Application Load Balancer, global external proxy Network Load
* Balancer, or any of the regional Google Cloud services.
*/
public const SCOPE_DEFAULT = 'DEFAULT';
/**
* Use the EDGE_CACHE scope if you plan to use the certificate with Media CDN.
* The certificates are served from Edge Points of Presence. See
* https://cloud.google.com/vpc/docs/edge-locations.
*/
public const SCOPE_EDGE_CACHE = 'EDGE_CACHE';
/**
* Use the ALL_REGIONS scope if you plan to use the certificate with cross-
* region internal Application Load Balancer. The certificates are served from
* all Google Cloud regions. See
* https://cloud.google.com/compute/docs/regions-zones.
*/
public const SCOPE_ALL_REGIONS = 'ALL_REGIONS';
/**
* Associated with certificates used as client certificates in Backend mTLS.
*/
public const SCOPE_CLIENT_AUTH = 'CLIENT_AUTH';
protected $collection_key = 'usedBy';
/**
* Output only. The creation timestamp of a Certificate.
*
* @var string
*/
public $createTime;
/**
* Optional. One or more paragraphs of text description of a certificate.
*
* @var string
*/
public $description;
/**
* Output only. The expiry timestamp of a Certificate.
*
* @var string
*/
public $expireTime;
/**
* Optional. Set of labels associated with a Certificate.
*
* @var string[]
*/
public $labels;
protected $managedType = ManagedCertificate::class;
protected $managedDataType = '';
protected $managedIdentityType = ManagedIdentityCertificate::class;
protected $managedIdentityDataType = '';
/**
* Identifier. A user-defined name of the certificate. Certificate names must
* be unique globally and match pattern `projects/locations/certificates`.
*
* @var string
*/
public $name;
/**
* Output only. The PEM-encoded certificate chain.
*
* @var string
*/
public $pemCertificate;
/**
* Output only. The list of Subject Alternative Names of dnsName type defined
* in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
* haven't been provisioned yet have this field populated with a value of the
* managed.domains field.
*
* @var string[]
*/
public $sanDnsnames;
/**
* Optional. Immutable. The scope of the certificate.
*
* @var string
*/
public $scope;
protected $selfManagedType = SelfManagedCertificate::class;
protected $selfManagedDataType = '';
/**
* Output only. The last update timestamp of a Certificate.
*
* @var string
*/
public $updateTime;
protected $usedByType = UsedBy::class;
protected $usedByDataType = 'array';
/**
* Output only. The creation timestamp of a Certificate.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. One or more paragraphs of text description of a certificate.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The expiry timestamp of a Certificate.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Optional. Set of labels associated with a Certificate.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* If set, contains configuration and state of a managed certificate.
*
* @param ManagedCertificate $managed
*/
public function setManaged(ManagedCertificate $managed)
{
$this->managed = $managed;
}
/**
* @return ManagedCertificate
*/
public function getManaged()
{
return $this->managed;
}
/**
* If set, contains configuration and state of a managed identity certificate.
*
* @param ManagedIdentityCertificate $managedIdentity
*/
public function setManagedIdentity(ManagedIdentityCertificate $managedIdentity)
{
$this->managedIdentity = $managedIdentity;
}
/**
* @return ManagedIdentityCertificate
*/
public function getManagedIdentity()
{
return $this->managedIdentity;
}
/**
* Identifier. A user-defined name of the certificate. Certificate names must
* be unique globally and match pattern `projects/locations/certificates`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The PEM-encoded certificate chain.
*
* @param string $pemCertificate
*/
public function setPemCertificate($pemCertificate)
{
$this->pemCertificate = $pemCertificate;
}
/**
* @return string
*/
public function getPemCertificate()
{
return $this->pemCertificate;
}
/**
* Output only. The list of Subject Alternative Names of dnsName type defined
* in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
* haven't been provisioned yet have this field populated with a value of the
* managed.domains field.
*
* @param string[] $sanDnsnames
*/
public function setSanDnsnames($sanDnsnames)
{
$this->sanDnsnames = $sanDnsnames;
}
/**
* @return string[]
*/
public function getSanDnsnames()
{
return $this->sanDnsnames;
}
/**
* Optional. Immutable. The scope of the certificate.
*
* Accepted values: DEFAULT, EDGE_CACHE, ALL_REGIONS, CLIENT_AUTH
*
* @param self::SCOPE_* $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return self::SCOPE_*
*/
public function getScope()
{
return $this->scope;
}
/**
* If set, defines data of a self-managed certificate.
*
* @param SelfManagedCertificate $selfManaged
*/
public function setSelfManaged(SelfManagedCertificate $selfManaged)
{
$this->selfManaged = $selfManaged;
}
/**
* @return SelfManagedCertificate
*/
public function getSelfManaged()
{
return $this->selfManaged;
}
/**
* Output only. The last update timestamp of a Certificate.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The list of resources that use this Certificate.
*
* @param UsedBy[] $usedBy
*/
public function setUsedBy($usedBy)
{
$this->usedBy = $usedBy;
}
/**
* @return UsedBy[]
*/
public function getUsedBy()
{
return $this->usedBy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Certificate::class, 'Google_Service_CertificateManager_Certificate');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class CertificateAuthorityConfig extends \Google\Model
{
protected $certificateAuthorityServiceConfigType = CertificateAuthorityServiceConfig::class;
protected $certificateAuthorityServiceConfigDataType = '';
/**
* Defines a CertificateAuthorityServiceConfig.
*
* @param CertificateAuthorityServiceConfig $certificateAuthorityServiceConfig
*/
public function setCertificateAuthorityServiceConfig(CertificateAuthorityServiceConfig $certificateAuthorityServiceConfig)
{
$this->certificateAuthorityServiceConfig = $certificateAuthorityServiceConfig;
}
/**
* @return CertificateAuthorityServiceConfig
*/
public function getCertificateAuthorityServiceConfig()
{
return $this->certificateAuthorityServiceConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateAuthorityConfig::class, 'Google_Service_CertificateManager_CertificateAuthorityConfig');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class CertificateAuthorityServiceConfig extends \Google\Model
{
/**
* Required. A CA pool resource used to issue a certificate. The CA pool
* string has a relative resource path following the form
* "projects/{project}/locations/{location}/caPools/{ca_pool}".
*
* @var string
*/
public $caPool;
/**
* Required. A CA pool resource used to issue a certificate. The CA pool
* string has a relative resource path following the form
* "projects/{project}/locations/{location}/caPools/{ca_pool}".
*
* @param string $caPool
*/
public function setCaPool($caPool)
{
$this->caPool = $caPool;
}
/**
* @return string
*/
public function getCaPool()
{
return $this->caPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateAuthorityServiceConfig::class, 'Google_Service_CertificateManager_CertificateAuthorityServiceConfig');
@@ -0,0 +1,245 @@
<?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\CertificateManager;
class CertificateIssuanceConfig extends \Google\Model
{
/**
* Unspecified key algorithm.
*/
public const KEY_ALGORITHM_KEY_ALGORITHM_UNSPECIFIED = 'KEY_ALGORITHM_UNSPECIFIED';
/**
* Specifies RSA with a 2048-bit modulus.
*/
public const KEY_ALGORITHM_RSA_2048 = 'RSA_2048';
/**
* Specifies ECDSA with curve P256.
*/
public const KEY_ALGORITHM_ECDSA_P256 = 'ECDSA_P256';
protected $certificateAuthorityConfigType = CertificateAuthorityConfig::class;
protected $certificateAuthorityConfigDataType = '';
/**
* Output only. The creation timestamp of a CertificateIssuanceConfig.
*
* @var string
*/
public $createTime;
/**
* Optional. One or more paragraphs of text description of a
* CertificateIssuanceConfig.
*
* @var string
*/
public $description;
/**
* Required. The key algorithm to use when generating the private key.
*
* @var string
*/
public $keyAlgorithm;
/**
* Optional. Set of labels associated with a CertificateIssuanceConfig.
*
* @var string[]
*/
public $labels;
/**
* Required. Workload certificate lifetime requested.
*
* @var string
*/
public $lifetime;
/**
* Identifier. A user-defined name of the certificate issuance config.
* CertificateIssuanceConfig names must be unique globally and match pattern
* `projects/locations/certificateIssuanceConfigs`.
*
* @var string
*/
public $name;
/**
* Required. Specifies the percentage of elapsed time of the certificate
* lifetime to wait before renewing the certificate. Must be a number between
* 1-99, inclusive.
*
* @var int
*/
public $rotationWindowPercentage;
/**
* Output only. The last update timestamp of a CertificateIssuanceConfig.
*
* @var string
*/
public $updateTime;
/**
* Required. The CA that issues the workload certificate. It includes the CA
* address, type, authentication to CA service, etc.
*
* @param CertificateAuthorityConfig $certificateAuthorityConfig
*/
public function setCertificateAuthorityConfig(CertificateAuthorityConfig $certificateAuthorityConfig)
{
$this->certificateAuthorityConfig = $certificateAuthorityConfig;
}
/**
* @return CertificateAuthorityConfig
*/
public function getCertificateAuthorityConfig()
{
return $this->certificateAuthorityConfig;
}
/**
* Output only. The creation timestamp of a CertificateIssuanceConfig.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. One or more paragraphs of text description of a
* CertificateIssuanceConfig.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. The key algorithm to use when generating the private key.
*
* Accepted values: KEY_ALGORITHM_UNSPECIFIED, RSA_2048, ECDSA_P256
*
* @param self::KEY_ALGORITHM_* $keyAlgorithm
*/
public function setKeyAlgorithm($keyAlgorithm)
{
$this->keyAlgorithm = $keyAlgorithm;
}
/**
* @return self::KEY_ALGORITHM_*
*/
public function getKeyAlgorithm()
{
return $this->keyAlgorithm;
}
/**
* Optional. Set of labels associated with a CertificateIssuanceConfig.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. Workload certificate lifetime requested.
*
* @param string $lifetime
*/
public function setLifetime($lifetime)
{
$this->lifetime = $lifetime;
}
/**
* @return string
*/
public function getLifetime()
{
return $this->lifetime;
}
/**
* Identifier. A user-defined name of the certificate issuance config.
* CertificateIssuanceConfig names must be unique globally and match pattern
* `projects/locations/certificateIssuanceConfigs`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Specifies the percentage of elapsed time of the certificate
* lifetime to wait before renewing the certificate. Must be a number between
* 1-99, inclusive.
*
* @param int $rotationWindowPercentage
*/
public function setRotationWindowPercentage($rotationWindowPercentage)
{
$this->rotationWindowPercentage = $rotationWindowPercentage;
}
/**
* @return int
*/
public function getRotationWindowPercentage()
{
return $this->rotationWindowPercentage;
}
/**
* Output only. The last update timestamp of a CertificateIssuanceConfig.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateIssuanceConfig::class, 'Google_Service_CertificateManager_CertificateIssuanceConfig');
@@ -0,0 +1,160 @@
<?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\CertificateManager;
class CertificateMap extends \Google\Collection
{
protected $collection_key = 'gclbTargets';
/**
* Output only. The creation timestamp of a Certificate Map.
*
* @var string
*/
public $createTime;
/**
* Optional. One or more paragraphs of text description of a certificate map.
*
* @var string
*/
public $description;
protected $gclbTargetsType = GclbTarget::class;
protected $gclbTargetsDataType = 'array';
/**
* Optional. Set of labels associated with a Certificate Map.
*
* @var string[]
*/
public $labels;
/**
* Identifier. A user-defined name of the Certificate Map. Certificate Map
* names must be unique globally and match pattern
* `projects/locations/certificateMaps`.
*
* @var string
*/
public $name;
/**
* Output only. The update timestamp of a Certificate Map.
*
* @var string
*/
public $updateTime;
/**
* Output only. The creation timestamp of a Certificate Map.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. One or more paragraphs of text description of a certificate map.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. A list of GCLB targets that use this Certificate Map. A Target
* Proxy is only present on this list if it's attached to a Forwarding Rule.
*
* @param GclbTarget[] $gclbTargets
*/
public function setGclbTargets($gclbTargets)
{
$this->gclbTargets = $gclbTargets;
}
/**
* @return GclbTarget[]
*/
public function getGclbTargets()
{
return $this->gclbTargets;
}
/**
* Optional. Set of labels associated with a Certificate Map.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. A user-defined name of the Certificate Map. Certificate Map
* names must be unique globally and match pattern
* `projects/locations/certificateMaps`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The update timestamp of a Certificate Map.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateMap::class, 'Google_Service_CertificateManager_CertificateMap');
@@ -0,0 +1,264 @@
<?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\CertificateManager;
class CertificateMapEntry extends \Google\Collection
{
/**
* A matcher has't been recognized.
*/
public const MATCHER_MATCHER_UNSPECIFIED = 'MATCHER_UNSPECIFIED';
/**
* A primary certificate that is served when SNI wasn't specified in the
* request or SNI couldn't be found in the map.
*/
public const MATCHER_PRIMARY = 'PRIMARY';
/**
* The status is undefined.
*/
public const STATE_SERVING_STATE_UNSPECIFIED = 'SERVING_STATE_UNSPECIFIED';
/**
* The configuration is serving.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Update is in progress. Some frontends may serve this configuration.
*/
public const STATE_PENDING = 'PENDING';
protected $collection_key = 'certificates';
/**
* Optional. A set of Certificates defines for the given `hostname`. There can
* be defined up to four certificates in each Certificate Map Entry. Each
* certificate must match pattern `projects/locations/certificates`.
*
* @var string[]
*/
public $certificates;
/**
* Output only. The creation timestamp of a Certificate Map Entry.
*
* @var string
*/
public $createTime;
/**
* Optional. One or more paragraphs of text description of a certificate map
* entry.
*
* @var string
*/
public $description;
/**
* A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
* (`*.example.com`) for a set of hostnames with common suffix. Used as Server
* Name Indication (SNI) for selecting a proper certificate.
*
* @var string
*/
public $hostname;
/**
* Optional. Set of labels associated with a Certificate Map Entry.
*
* @var string[]
*/
public $labels;
/**
* A predefined matcher for particular cases, other than SNI selection.
*
* @var string
*/
public $matcher;
/**
* Identifier. A user-defined name of the Certificate Map Entry. Certificate
* Map Entry names must be unique globally and match pattern
* `projects/locations/certificateMaps/certificateMapEntries`.
*
* @var string
*/
public $name;
/**
* Output only. A serving state of this Certificate Map Entry.
*
* @var string
*/
public $state;
/**
* Output only. The update timestamp of a Certificate Map Entry.
*
* @var string
*/
public $updateTime;
/**
* Optional. A set of Certificates defines for the given `hostname`. There can
* be defined up to four certificates in each Certificate Map Entry. Each
* certificate must match pattern `projects/locations/certificates`.
*
* @param string[] $certificates
*/
public function setCertificates($certificates)
{
$this->certificates = $certificates;
}
/**
* @return string[]
*/
public function getCertificates()
{
return $this->certificates;
}
/**
* Output only. The creation timestamp of a Certificate Map Entry.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. One or more paragraphs of text description of a certificate map
* entry.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
* (`*.example.com`) for a set of hostnames with common suffix. Used as Server
* Name Indication (SNI) for selecting a proper certificate.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Optional. Set of labels associated with a Certificate Map Entry.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* A predefined matcher for particular cases, other than SNI selection.
*
* Accepted values: MATCHER_UNSPECIFIED, PRIMARY
*
* @param self::MATCHER_* $matcher
*/
public function setMatcher($matcher)
{
$this->matcher = $matcher;
}
/**
* @return self::MATCHER_*
*/
public function getMatcher()
{
return $this->matcher;
}
/**
* Identifier. A user-defined name of the Certificate Map Entry. Certificate
* Map Entry names must be unique globally and match pattern
* `projects/locations/certificateMaps/certificateMapEntries`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. A serving state of this Certificate Map Entry.
*
* Accepted values: SERVING_STATE_UNSPECIFIED, ACTIVE, PENDING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The update timestamp of a Certificate Map Entry.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateMapEntry::class, 'Google_Service_CertificateManager_CertificateMapEntry');
@@ -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\CertificateManager;
class CertificatemanagerEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificatemanagerEmpty::class, 'Google_Service_CertificateManager_CertificatemanagerEmpty');
@@ -0,0 +1,229 @@
<?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\CertificateManager;
class DnsAuthorization extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* FIXED_RECORD DNS authorization uses DNS-01 validation method.
*/
public const TYPE_FIXED_RECORD = 'FIXED_RECORD';
/**
* PER_PROJECT_RECORD DNS authorization allows for independent management of
* Google-managed certificates with DNS authorization across multiple
* projects.
*/
public const TYPE_PER_PROJECT_RECORD = 'PER_PROJECT_RECORD';
/**
* Output only. The creation timestamp of a DnsAuthorization.
*
* @var string
*/
public $createTime;
/**
* Optional. One or more paragraphs of text description of a DnsAuthorization.
*
* @var string
*/
public $description;
protected $dnsResourceRecordType = DnsResourceRecord::class;
protected $dnsResourceRecordDataType = '';
/**
* Required. Immutable. A domain that is being authorized. A DnsAuthorization
* resource covers a single domain and its wildcard, e.g. authorization for
* `example.com` can be used to issue certificates for `example.com` and
* `*.example.com`.
*
* @var string
*/
public $domain;
/**
* Optional. Set of labels associated with a DnsAuthorization.
*
* @var string[]
*/
public $labels;
/**
* Identifier. A user-defined name of the dns authorization. DnsAuthorization
* names must be unique globally and match pattern
* `projects/locations/dnsAuthorizations`.
*
* @var string
*/
public $name;
/**
* Optional. Immutable. Type of DnsAuthorization. If unset during resource
* creation the following default will be used: - in location `global`:
* FIXED_RECORD, - in other locations: PER_PROJECT_RECORD.
*
* @var string
*/
public $type;
/**
* Output only. The last update timestamp of a DnsAuthorization.
*
* @var string
*/
public $updateTime;
/**
* Output only. The creation timestamp of a DnsAuthorization.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. One or more paragraphs of text description of a DnsAuthorization.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. DNS Resource Record that needs to be added to DNS
* configuration.
*
* @param DnsResourceRecord $dnsResourceRecord
*/
public function setDnsResourceRecord(DnsResourceRecord $dnsResourceRecord)
{
$this->dnsResourceRecord = $dnsResourceRecord;
}
/**
* @return DnsResourceRecord
*/
public function getDnsResourceRecord()
{
return $this->dnsResourceRecord;
}
/**
* Required. Immutable. A domain that is being authorized. A DnsAuthorization
* resource covers a single domain and its wildcard, e.g. authorization for
* `example.com` can be used to issue certificates for `example.com` and
* `*.example.com`.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Optional. Set of labels associated with a DnsAuthorization.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. A user-defined name of the dns authorization. DnsAuthorization
* names must be unique globally and match pattern
* `projects/locations/dnsAuthorizations`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Immutable. Type of DnsAuthorization. If unset during resource
* creation the following default will be used: - in location `global`:
* FIXED_RECORD, - in other locations: PER_PROJECT_RECORD.
*
* Accepted values: TYPE_UNSPECIFIED, FIXED_RECORD, PER_PROJECT_RECORD
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The last update timestamp of a DnsAuthorization.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsAuthorization::class, 'Google_Service_CertificateManager_DnsAuthorization');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class DnsResourceRecord extends \Google\Model
{
/**
* Output only. Data of the DNS Resource Record.
*
* @var string
*/
public $data;
/**
* Output only. Fully qualified name of the DNS Resource Record. e.g. `_acme-
* challenge.example.com`
*
* @var string
*/
public $name;
/**
* Output only. Type of the DNS Resource Record. Currently always set to
* "CNAME".
*
* @var string
*/
public $type;
/**
* Output only. Data of the DNS Resource Record.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Output only. Fully qualified name of the DNS Resource Record. e.g. `_acme-
* challenge.example.com`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Type of the DNS Resource Record. Currently always set to
* "CNAME".
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsResourceRecord::class, 'Google_Service_CertificateManager_DnsResourceRecord');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class GclbTarget extends \Google\Collection
{
protected $collection_key = 'ipConfigs';
protected $ipConfigsType = IpConfig::class;
protected $ipConfigsDataType = 'array';
/**
* Output only. This field returns the resource name in the following format:
* `//compute.googleapis.com/projects/global/targetHttpsProxies`.
*
* @var string
*/
public $targetHttpsProxy;
/**
* Output only. This field returns the resource name in the following format:
* `//compute.googleapis.com/projects/global/targetSslProxies`.
*
* @var string
*/
public $targetSslProxy;
/**
* Output only. IP configurations for this Target Proxy where the Certificate
* Map is serving.
*
* @param IpConfig[] $ipConfigs
*/
public function setIpConfigs($ipConfigs)
{
$this->ipConfigs = $ipConfigs;
}
/**
* @return IpConfig[]
*/
public function getIpConfigs()
{
return $this->ipConfigs;
}
/**
* Output only. This field returns the resource name in the following format:
* `//compute.googleapis.com/projects/global/targetHttpsProxies`.
*
* @param string $targetHttpsProxy
*/
public function setTargetHttpsProxy($targetHttpsProxy)
{
$this->targetHttpsProxy = $targetHttpsProxy;
}
/**
* @return string
*/
public function getTargetHttpsProxy()
{
return $this->targetHttpsProxy;
}
/**
* Output only. This field returns the resource name in the following format:
* `//compute.googleapis.com/projects/global/targetSslProxies`.
*
* @param string $targetSslProxy
*/
public function setTargetSslProxy($targetSslProxy)
{
$this->targetSslProxy = $targetSslProxy;
}
/**
* @return string
*/
public function getTargetSslProxy()
{
return $this->targetSslProxy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GclbTarget::class, 'Google_Service_CertificateManager_GclbTarget');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class IPs extends \Google\Collection
{
protected $collection_key = 'servingOnAltPorts';
/**
* Output only. The list of IP addresses resolved from the domain's A/AAAA
* records. Can contain both ipv4 and ipv6 addresses.
*
* @var string[]
*/
public $resolved;
/**
* Output only. The list of IP addresses, where the certificate is attached
* and port 443 is open.
*
* @var string[]
*/
public $serving;
/**
* Output only. The list of IP addresses, where the certificate is attached,
* but port 443 is not open.
*
* @var string[]
*/
public $servingOnAltPorts;
/**
* Output only. The list of IP addresses resolved from the domain's A/AAAA
* records. Can contain both ipv4 and ipv6 addresses.
*
* @param string[] $resolved
*/
public function setResolved($resolved)
{
$this->resolved = $resolved;
}
/**
* @return string[]
*/
public function getResolved()
{
return $this->resolved;
}
/**
* Output only. The list of IP addresses, where the certificate is attached
* and port 443 is open.
*
* @param string[] $serving
*/
public function setServing($serving)
{
$this->serving = $serving;
}
/**
* @return string[]
*/
public function getServing()
{
return $this->serving;
}
/**
* Output only. The list of IP addresses, where the certificate is attached,
* but port 443 is not open.
*
* @param string[] $servingOnAltPorts
*/
public function setServingOnAltPorts($servingOnAltPorts)
{
$this->servingOnAltPorts = $servingOnAltPorts;
}
/**
* @return string[]
*/
public function getServingOnAltPorts()
{
return $this->servingOnAltPorts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IPs::class, 'Google_Service_CertificateManager_IPs');
@@ -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\CertificateManager;
class IntermediateCA extends \Google\Model
{
/**
* PEM intermediate certificate used for building up paths for validation.
* Each certificate provided in PEM format may occupy up to 5kB.
*
* @var string
*/
public $pemCertificate;
/**
* PEM intermediate certificate used for building up paths for validation.
* Each certificate provided in PEM format may occupy up to 5kB.
*
* @param string $pemCertificate
*/
public function setPemCertificate($pemCertificate)
{
$this->pemCertificate = $pemCertificate;
}
/**
* @return string
*/
public function getPemCertificate()
{
return $this->pemCertificate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntermediateCA::class, 'Google_Service_CertificateManager_IntermediateCA');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class IpConfig extends \Google\Collection
{
protected $collection_key = 'ports';
/**
* Output only. An external IP address.
*
* @var string
*/
public $ipAddress;
/**
* Output only. Ports.
*
* @var string[]
*/
public $ports;
/**
* Output only. An external IP address.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Output only. Ports.
*
* @param string[] $ports
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return string[]
*/
public function getPorts()
{
return $this->ports;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IpConfig::class, 'Google_Service_CertificateManager_IpConfig');
@@ -0,0 +1,93 @@
<?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\CertificateManager;
class ListCertificateIssuanceConfigsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $certificateIssuanceConfigsType = CertificateIssuanceConfig::class;
protected $certificateIssuanceConfigsDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of certificate configs for the parent resource.
*
* @param CertificateIssuanceConfig[] $certificateIssuanceConfigs
*/
public function setCertificateIssuanceConfigs($certificateIssuanceConfigs)
{
$this->certificateIssuanceConfigs = $certificateIssuanceConfigs;
}
/**
* @return CertificateIssuanceConfig[]
*/
public function getCertificateIssuanceConfigs()
{
return $this->certificateIssuanceConfigs;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCertificateIssuanceConfigsResponse::class, 'Google_Service_CertificateManager_ListCertificateIssuanceConfigsResponse');
@@ -0,0 +1,93 @@
<?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\CertificateManager;
class ListCertificateMapEntriesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $certificateMapEntriesType = CertificateMapEntry::class;
protected $certificateMapEntriesDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of certificate map entries for the parent resource.
*
* @param CertificateMapEntry[] $certificateMapEntries
*/
public function setCertificateMapEntries($certificateMapEntries)
{
$this->certificateMapEntries = $certificateMapEntries;
}
/**
* @return CertificateMapEntry[]
*/
public function getCertificateMapEntries()
{
return $this->certificateMapEntries;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCertificateMapEntriesResponse::class, 'Google_Service_CertificateManager_ListCertificateMapEntriesResponse');
@@ -0,0 +1,93 @@
<?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\CertificateManager;
class ListCertificateMapsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $certificateMapsType = CertificateMap::class;
protected $certificateMapsDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of certificate maps for the parent resource.
*
* @param CertificateMap[] $certificateMaps
*/
public function setCertificateMaps($certificateMaps)
{
$this->certificateMaps = $certificateMaps;
}
/**
* @return CertificateMap[]
*/
public function getCertificateMaps()
{
return $this->certificateMaps;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCertificateMapsResponse::class, 'Google_Service_CertificateManager_ListCertificateMapsResponse');
@@ -0,0 +1,93 @@
<?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\CertificateManager;
class ListCertificatesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $certificatesType = Certificate::class;
protected $certificatesDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of certificates for the parent resource.
*
* @param Certificate[] $certificates
*/
public function setCertificates($certificates)
{
$this->certificates = $certificates;
}
/**
* @return Certificate[]
*/
public function getCertificates()
{
return $this->certificates;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCertificatesResponse::class, 'Google_Service_CertificateManager_ListCertificatesResponse');
@@ -0,0 +1,93 @@
<?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\CertificateManager;
class ListDnsAuthorizationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $dnsAuthorizationsType = DnsAuthorization::class;
protected $dnsAuthorizationsDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of dns authorizations for the parent resource.
*
* @param DnsAuthorization[] $dnsAuthorizations
*/
public function setDnsAuthorizations($dnsAuthorizations)
{
$this->dnsAuthorizations = $dnsAuthorizations;
}
/**
* @return DnsAuthorization[]
*/
public function getDnsAuthorizations()
{
return $this->dnsAuthorizations;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDnsAuthorizationsResponse::class, 'Google_Service_CertificateManager_ListDnsAuthorizationsResponse');
@@ -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\CertificateManager;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @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(ListLocationsResponse::class, 'Google_Service_CertificateManager_ListLocationsResponse');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_CertificateManager_ListOperationsResponse');
@@ -0,0 +1,93 @@
<?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\CertificateManager;
class ListTrustConfigsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
protected $trustConfigsType = TrustConfig::class;
protected $trustConfigsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of TrustConfigs for the parent resource.
*
* @param TrustConfig[] $trustConfigs
*/
public function setTrustConfigs($trustConfigs)
{
$this->trustConfigs = $trustConfigs;
}
/**
* @return TrustConfig[]
*/
public function getTrustConfigs()
{
return $this->trustConfigs;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTrustConfigsResponse::class, 'Google_Service_CertificateManager_ListTrustConfigsResponse');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @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(Location::class, 'Google_Service_CertificateManager_Location');
@@ -0,0 +1,191 @@
<?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\CertificateManager;
class ManagedCertificate extends \Google\Collection
{
/**
* State is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Certificate Manager attempts to provision or renew the certificate. If the
* process takes longer than expected, consult the `provisioning_issue` field.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* Multiple certificate provisioning attempts failed and Certificate Manager
* gave up. To try again, delete and create a new managed Certificate
* resource. For details see the `provisioning_issue` field.
*/
public const STATE_FAILED = 'FAILED';
/**
* The certificate management is working, and a certificate has been
* provisioned.
*/
public const STATE_ACTIVE = 'ACTIVE';
protected $collection_key = 'domains';
protected $authorizationAttemptInfoType = AuthorizationAttemptInfo::class;
protected $authorizationAttemptInfoDataType = 'array';
/**
* Optional. Immutable. Authorizations that will be used for performing domain
* authorization.
*
* @var string[]
*/
public $dnsAuthorizations;
/**
* Optional. Immutable. The domains for which a managed SSL certificate will
* be generated. Wildcard domains are only supported with DNS challenge
* resolution.
*
* @var string[]
*/
public $domains;
/**
* Optional. Immutable. The resource name for a CertificateIssuanceConfig used
* to configure private PKI certificates in the format
* `projects/locations/certificateIssuanceConfigs`. If this field is not set,
* the certificates will instead be publicly signed as documented at
* https://cloud.google.com/load-balancing/docs/ssl-certificates/google-
* managed-certs#caa.
*
* @var string
*/
public $issuanceConfig;
protected $provisioningIssueType = ProvisioningIssue::class;
protected $provisioningIssueDataType = '';
/**
* Output only. State of the managed certificate resource.
*
* @var string
*/
public $state;
/**
* Output only. Detailed state of the latest authorization attempt for each
* domain specified for managed certificate resource.
*
* @param AuthorizationAttemptInfo[] $authorizationAttemptInfo
*/
public function setAuthorizationAttemptInfo($authorizationAttemptInfo)
{
$this->authorizationAttemptInfo = $authorizationAttemptInfo;
}
/**
* @return AuthorizationAttemptInfo[]
*/
public function getAuthorizationAttemptInfo()
{
return $this->authorizationAttemptInfo;
}
/**
* Optional. Immutable. Authorizations that will be used for performing domain
* authorization.
*
* @param string[] $dnsAuthorizations
*/
public function setDnsAuthorizations($dnsAuthorizations)
{
$this->dnsAuthorizations = $dnsAuthorizations;
}
/**
* @return string[]
*/
public function getDnsAuthorizations()
{
return $this->dnsAuthorizations;
}
/**
* Optional. Immutable. The domains for which a managed SSL certificate will
* be generated. Wildcard domains are only supported with DNS challenge
* resolution.
*
* @param string[] $domains
*/
public function setDomains($domains)
{
$this->domains = $domains;
}
/**
* @return string[]
*/
public function getDomains()
{
return $this->domains;
}
/**
* Optional. Immutable. The resource name for a CertificateIssuanceConfig used
* to configure private PKI certificates in the format
* `projects/locations/certificateIssuanceConfigs`. If this field is not set,
* the certificates will instead be publicly signed as documented at
* https://cloud.google.com/load-balancing/docs/ssl-certificates/google-
* managed-certs#caa.
*
* @param string $issuanceConfig
*/
public function setIssuanceConfig($issuanceConfig)
{
$this->issuanceConfig = $issuanceConfig;
}
/**
* @return string
*/
public function getIssuanceConfig()
{
return $this->issuanceConfig;
}
/**
* Output only. Information about issues with provisioning a Managed
* Certificate.
*
* @param ProvisioningIssue $provisioningIssue
*/
public function setProvisioningIssue(ProvisioningIssue $provisioningIssue)
{
$this->provisioningIssue = $provisioningIssue;
}
/**
* @return ProvisioningIssue
*/
public function getProvisioningIssue()
{
return $this->provisioningIssue;
}
/**
* Output only. State of the managed certificate resource.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, FAILED, ACTIVE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedCertificate::class, 'Google_Service_CertificateManager_ManagedCertificate');
@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class ManagedIdentityCertificate extends \Google\Model
{
/**
* State is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Certificate Manager attempts to provision or renew the certificate. If the
* process takes longer than expected, consult the `provisioning_issue` field.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* Multiple certificate provisioning attempts failed and Certificate Manager
* gave up. To try again, delete and create a new managed Certificate
* resource. For details see the `provisioning_issue` field.
*/
public const STATE_FAILED = 'FAILED';
/**
* The certificate management is working, and a certificate has been
* provisioned.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Required. Immutable. SPIFFE ID of the Managed Identity used for this
* certificate.
*
* @var string
*/
public $identity;
protected $provisioningIssueType = ProvisioningIssue::class;
protected $provisioningIssueDataType = '';
/**
* Output only. State of the managed certificate resource.
*
* @var string
*/
public $state;
/**
* Required. Immutable. SPIFFE ID of the Managed Identity used for this
* certificate.
*
* @param string $identity
*/
public function setIdentity($identity)
{
$this->identity = $identity;
}
/**
* @return string
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Output only. Information about issues with provisioning a managed
* certificate.
*
* @param ProvisioningIssue $provisioningIssue
*/
public function setProvisioningIssue(ProvisioningIssue $provisioningIssue)
{
$this->provisioningIssue = $provisioningIssue;
}
/**
* @return ProvisioningIssue
*/
public function getProvisioningIssue()
{
return $this->provisioningIssue;
}
/**
* Output only. State of the managed certificate resource.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, FAILED, ACTIVE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedIdentityCertificate::class, 'Google_Service_CertificateManager_ManagedIdentityCertificate');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_CertificateManager_Operation');
@@ -0,0 +1,186 @@
<?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\CertificateManager;
class OperationMetadata extends \Google\Model
{
/**
* API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Identifies whether the user has requested cancellation of the operation.
* Operations that have successfully been cancelled have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* `1`, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Identifies whether the user has requested cancellation of the operation.
* Operations that have successfully been cancelled have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* `1`, corresponding to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_CertificateManager_OperationMetadata');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class ProvisioningIssue extends \Google\Model
{
/**
* Reason is unspecified.
*/
public const REASON_REASON_UNSPECIFIED = 'REASON_UNSPECIFIED';
/**
* Certificate provisioning failed due to an issue with one or more of the
* domains on the certificate. For details of which domains failed, consult
* the `authorization_attempt_info` field.
*/
public const REASON_AUTHORIZATION_ISSUE = 'AUTHORIZATION_ISSUE';
/**
* Exceeded Certificate Authority quotas or internal rate limits of the
* system. Provisioning may take longer to complete.
*/
public const REASON_RATE_LIMITED = 'RATE_LIMITED';
/**
* Output only. Human readable explanation about the issue. Provided to help
* address the configuration issues. Not guaranteed to be stable. For
* programmatic access use Reason enum.
*
* @var string
*/
public $details;
/**
* Output only. Reason for provisioning failures.
*
* @var string
*/
public $reason;
/**
* Output only. Human readable explanation about the issue. Provided to help
* address the configuration issues. Not guaranteed to be stable. For
* programmatic access use Reason enum.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* Output only. Reason for provisioning failures.
*
* Accepted values: REASON_UNSPECIFIED, AUTHORIZATION_ISSUE, RATE_LIMITED
*
* @param self::REASON_* $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return self::REASON_*
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvisioningIssue::class, 'Google_Service_CertificateManager_ProvisioningIssue');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $projects = $certificatemanagerService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CertificateManager_Resource_Projects');
@@ -0,0 +1,85 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\ListLocationsResponse;
use Google\Service\CertificateManager\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $locations = $certificatemanagerService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CertificateManager_Resource_ProjectsLocations');
@@ -0,0 +1,142 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\CertificateIssuanceConfig;
use Google\Service\CertificateManager\ListCertificateIssuanceConfigsResponse;
use Google\Service\CertificateManager\Operation;
/**
* The "certificateIssuanceConfigs" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $certificateIssuanceConfigs = $certificatemanagerService->projects_locations_certificateIssuanceConfigs;
* </code>
*/
class ProjectsLocationsCertificateIssuanceConfigs extends \Google\Service\Resource
{
/**
* Creates a new CertificateIssuanceConfig in a given project and location.
* (certificateIssuanceConfigs.create)
*
* @param string $parent Required. The parent resource of the certificate
* issuance config. Must be in the format `projects/locations`.
* @param CertificateIssuanceConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string certificateIssuanceConfigId Required. A user-provided name
* of the certificate config.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CertificateIssuanceConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single CertificateIssuanceConfig.
* (certificateIssuanceConfigs.delete)
*
* @param string $name Required. A name of the certificate issuance config to
* delete. Must be in the format
* `projects/locations/certificateIssuanceConfigs`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single CertificateIssuanceConfig.
* (certificateIssuanceConfigs.get)
*
* @param string $name Required. A name of the certificate issuance config to
* describe. Must be in the format
* `projects/locations/certificateIssuanceConfigs`.
* @param array $optParams Optional parameters.
* @return CertificateIssuanceConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CertificateIssuanceConfig::class);
}
/**
* Lists CertificateIssuanceConfigs in a given project and location.
* (certificateIssuanceConfigs.listProjectsLocationsCertificateIssuanceConfigs)
*
* @param string $parent Required. The project and location from which the
* certificate should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* Certificates Configs returned.
* @opt_param string orderBy Optional. A list of Certificate Config field names
* used to specify the order of the returned results. The default sorting order
* is ascending. To specify descending order for a field, add a suffix `"
* desc"`.
* @opt_param int pageSize Optional. Maximum number of certificate configs to
* return per call.
* @opt_param string pageToken Optional. The value returned by the last
* `ListCertificateIssuanceConfigsResponse`. Indicates that this is a
* continuation of a prior `ListCertificateIssuanceConfigs` call, and that the
* system should return the next page of data.
* @return ListCertificateIssuanceConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCertificateIssuanceConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCertificateIssuanceConfigsResponse::class);
}
/**
* Updates a CertificateIssuanceConfig. (certificateIssuanceConfigs.patch)
*
* @param string $name Identifier. A user-defined name of the certificate
* issuance config. CertificateIssuanceConfig names must be unique globally and
* match pattern `projects/locations/certificateIssuanceConfigs`.
* @param CertificateIssuanceConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, CertificateIssuanceConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCertificateIssuanceConfigs::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificateIssuanceConfigs');
@@ -0,0 +1,141 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\CertificateMap;
use Google\Service\CertificateManager\ListCertificateMapsResponse;
use Google\Service\CertificateManager\Operation;
/**
* The "certificateMaps" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $certificateMaps = $certificatemanagerService->projects_locations_certificateMaps;
* </code>
*/
class ProjectsLocationsCertificateMaps extends \Google\Service\Resource
{
/**
* Creates a new CertificateMap in a given project and location.
* (certificateMaps.create)
*
* @param string $parent Required. The parent resource of the certificate map.
* Must be in the format `projects/locations`.
* @param CertificateMap $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string certificateMapId Required. A user-provided name of the
* certificate map.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CertificateMap $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single CertificateMap. A Certificate Map can't be deleted if it
* contains Certificate Map Entries. Remove all the entries from the map before
* calling this method. (certificateMaps.delete)
*
* @param string $name Required. A name of the certificate map to delete. Must
* be in the format `projects/locations/certificateMaps`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single CertificateMap. (certificateMaps.get)
*
* @param string $name Required. A name of the certificate map to describe. Must
* be in the format `projects/locations/certificateMaps`.
* @param array $optParams Optional parameters.
* @return CertificateMap
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CertificateMap::class);
}
/**
* Lists CertificateMaps in a given project and location.
* (certificateMaps.listProjectsLocationsCertificateMaps)
*
* @param string $parent Required. The project and location from which the
* certificate maps should be listed, specified in the format
* `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* Certificates Maps returned.
* @opt_param string orderBy Optional. A list of Certificate Map field names
* used to specify the order of the returned results. The default sorting order
* is ascending. To specify descending order for a field, add a suffix `"
* desc"`.
* @opt_param int pageSize Optional. Maximum number of certificate maps to
* return per call.
* @opt_param string pageToken Optional. The value returned by the last
* `ListCertificateMapsResponse`. Indicates that this is a continuation of a
* prior `ListCertificateMaps` call, and that the system should return the next
* page of data.
* @return ListCertificateMapsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCertificateMaps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCertificateMapsResponse::class);
}
/**
* Updates a CertificateMap. (certificateMaps.patch)
*
* @param string $name Identifier. A user-defined name of the Certificate Map.
* Certificate Map names must be unique globally and match pattern
* `projects/locations/certificateMaps`.
* @param CertificateMap $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, CertificateMap $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCertificateMaps::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificateMaps');
@@ -0,0 +1,143 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\CertificateMapEntry;
use Google\Service\CertificateManager\ListCertificateMapEntriesResponse;
use Google\Service\CertificateManager\Operation;
/**
* The "certificateMapEntries" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $certificateMapEntries = $certificatemanagerService->projects_locations_certificateMaps_certificateMapEntries;
* </code>
*/
class ProjectsLocationsCertificateMapsCertificateMapEntries extends \Google\Service\Resource
{
/**
* Creates a new CertificateMapEntry in a given project and location.
* (certificateMapEntries.create)
*
* @param string $parent Required. The parent resource of the certificate map
* entry. Must be in the format `projects/locations/certificateMaps`.
* @param CertificateMapEntry $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string certificateMapEntryId Required. A user-provided name of the
* certificate map entry.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CertificateMapEntry $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single CertificateMapEntry. (certificateMapEntries.delete)
*
* @param string $name Required. A name of the certificate map entry to delete.
* Must be in the format
* `projects/locations/certificateMaps/certificateMapEntries`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single CertificateMapEntry. (certificateMapEntries.get)
*
* @param string $name Required. A name of the certificate map entry to
* describe. Must be in the format
* `projects/locations/certificateMaps/certificateMapEntries`.
* @param array $optParams Optional parameters.
* @return CertificateMapEntry
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CertificateMapEntry::class);
}
/**
* Lists CertificateMapEntries in a given project and location. (certificateMapE
* ntries.listProjectsLocationsCertificateMapsCertificateMapEntries)
*
* @param string $parent Required. The project, location and certificate map
* from which the certificate map entries should be listed, specified in the
* format `projects/locations/certificateMaps`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the returned
* Certificate Map Entries.
* @opt_param string orderBy Optional. A list of Certificate Map Entry field
* names used to specify the order of the returned results. The default sorting
* order is ascending. To specify descending order for a field, add a suffix `"
* desc"`.
* @opt_param int pageSize Optional. Maximum number of certificate map entries
* to return. The service may return fewer than this value. If unspecified, at
* most 50 certificate map entries will be returned. The maximum value is 1000;
* values above 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. The value returned by the last
* `ListCertificateMapEntriesResponse`. Indicates that this is a continuation of
* a prior `ListCertificateMapEntries` call, and that the system should return
* the next page of data.
* @return ListCertificateMapEntriesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCertificateMapsCertificateMapEntries($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCertificateMapEntriesResponse::class);
}
/**
* Updates a CertificateMapEntry. (certificateMapEntries.patch)
*
* @param string $name Identifier. A user-defined name of the Certificate Map
* Entry. Certificate Map Entry names must be unique globally and match pattern
* `projects/locations/certificateMaps/certificateMapEntries`.
* @param CertificateMapEntry $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, CertificateMapEntry $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCertificateMapsCertificateMapEntries::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificateMapsCertificateMapEntries');
@@ -0,0 +1,137 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\Certificate;
use Google\Service\CertificateManager\ListCertificatesResponse;
use Google\Service\CertificateManager\Operation;
/**
* The "certificates" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $certificates = $certificatemanagerService->projects_locations_certificates;
* </code>
*/
class ProjectsLocationsCertificates extends \Google\Service\Resource
{
/**
* Creates a new Certificate in a given project and location.
* (certificates.create)
*
* @param string $parent Required. The parent resource of the certificate. Must
* be in the format `projects/locations`.
* @param Certificate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string certificateId Required. A user-provided name of the
* certificate.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Certificate $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Certificate. (certificates.delete)
*
* @param string $name Required. A name of the certificate to delete. Must be in
* the format `projects/locations/certificates`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Certificate. (certificates.get)
*
* @param string $name Required. A name of the certificate to describe. Must be
* in the format `projects/locations/certificates`.
* @param array $optParams Optional parameters.
* @return Certificate
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Certificate::class);
}
/**
* Lists Certificates in a given project and location.
* (certificates.listProjectsLocationsCertificates)
*
* @param string $parent Required. The project and location from which the
* certificate should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* Certificates returned.
* @opt_param string orderBy Optional. A list of Certificate field names used to
* specify the order of the returned results. The default sorting order is
* ascending. To specify descending order for a field, add a suffix `" desc"`.
* @opt_param int pageSize Optional. Maximum number of certificates to return
* per call.
* @opt_param string pageToken Optional. The value returned by the last
* `ListCertificatesResponse`. Indicates that this is a continuation of a prior
* `ListCertificates` call, and that the system should return the next page of
* data.
* @return ListCertificatesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCertificates($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCertificatesResponse::class);
}
/**
* Updates a Certificate. (certificates.patch)
*
* @param string $name Identifier. A user-defined name of the certificate.
* Certificate names must be unique globally and match pattern
* `projects/locations/certificates`.
* @param Certificate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Certificate $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCertificates::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificates');
@@ -0,0 +1,139 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\DnsAuthorization;
use Google\Service\CertificateManager\ListDnsAuthorizationsResponse;
use Google\Service\CertificateManager\Operation;
/**
* The "dnsAuthorizations" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $dnsAuthorizations = $certificatemanagerService->projects_locations_dnsAuthorizations;
* </code>
*/
class ProjectsLocationsDnsAuthorizations extends \Google\Service\Resource
{
/**
* Creates a new DnsAuthorization in a given project and location.
* (dnsAuthorizations.create)
*
* @param string $parent Required. The parent resource of the dns authorization.
* Must be in the format `projects/locations`.
* @param DnsAuthorization $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string dnsAuthorizationId Required. A user-provided name of the
* dns authorization.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, DnsAuthorization $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single DnsAuthorization. (dnsAuthorizations.delete)
*
* @param string $name Required. A name of the dns authorization to delete. Must
* be in the format `projects/locations/dnsAuthorizations`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single DnsAuthorization. (dnsAuthorizations.get)
*
* @param string $name Required. A name of the dns authorization to describe.
* Must be in the format `projects/locations/dnsAuthorizations`.
* @param array $optParams Optional parameters.
* @return DnsAuthorization
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DnsAuthorization::class);
}
/**
* Lists DnsAuthorizations in a given project and location.
* (dnsAuthorizations.listProjectsLocationsDnsAuthorizations)
*
* @param string $parent Required. The project and location from which the dns
* authorizations should be listed, specified in the format
* `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the Dns
* Authorizations returned.
* @opt_param string orderBy Optional. A list of Dns Authorization field names
* used to specify the order of the returned results. The default sorting order
* is ascending. To specify descending order for a field, add a suffix `"
* desc"`.
* @opt_param int pageSize Optional. Maximum number of dns authorizations to
* return per call.
* @opt_param string pageToken Optional. The value returned by the last
* `ListDnsAuthorizationsResponse`. Indicates that this is a continuation of a
* prior `ListDnsAuthorizations` call, and that the system should return the
* next page of data.
* @return ListDnsAuthorizationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDnsAuthorizations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDnsAuthorizationsResponse::class);
}
/**
* Updates a DnsAuthorization. (dnsAuthorizations.patch)
*
* @param string $name Identifier. A user-defined name of the dns authorization.
* DnsAuthorization names must be unique globally and match pattern
* `projects/locations/dnsAuthorizations`.
* @param DnsAuthorization $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, DnsAuthorization $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDnsAuthorizations::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsDnsAuthorizations');
@@ -0,0 +1,121 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\CancelOperationRequest;
use Google\Service\CertificateManager\CertificatemanagerEmpty;
use Google\Service\CertificateManager\ListOperationsResponse;
use Google\Service\CertificateManager\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $operations = $certificatemanagerService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return CertificatemanagerEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], CertificatemanagerEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return CertificatemanagerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CertificatemanagerEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,141 @@
<?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\CertificateManager\Resource;
use Google\Service\CertificateManager\ListTrustConfigsResponse;
use Google\Service\CertificateManager\Operation;
use Google\Service\CertificateManager\TrustConfig;
/**
* The "trustConfigs" collection of methods.
* Typical usage is:
* <code>
* $certificatemanagerService = new Google\Service\CertificateManager(...);
* $trustConfigs = $certificatemanagerService->projects_locations_trustConfigs;
* </code>
*/
class ProjectsLocationsTrustConfigs extends \Google\Service\Resource
{
/**
* Creates a new TrustConfig in a given project and location.
* (trustConfigs.create)
*
* @param string $parent Required. The parent resource of the TrustConfig. Must
* be in the format `projects/locations`.
* @param TrustConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string trustConfigId Required. A user-provided name of the
* TrustConfig. Must match the regexp `[a-z0-9-]{1,63}`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, TrustConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single TrustConfig. (trustConfigs.delete)
*
* @param string $name Required. A name of the TrustConfig to delete. Must be in
* the format `projects/locations/trustConfigs`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the TrustConfig. If an
* etag is provided and does not match the current etag of the resource,
* deletion will be blocked and an ABORTED error will be returned.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single TrustConfig. (trustConfigs.get)
*
* @param string $name Required. A name of the TrustConfig to describe. Must be
* in the format `projects/locations/trustConfigs`.
* @param array $optParams Optional parameters.
* @return TrustConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TrustConfig::class);
}
/**
* Lists TrustConfigs in a given project and location.
* (trustConfigs.listProjectsLocationsTrustConfigs)
*
* @param string $parent Required. The project and location from which the
* TrustConfigs should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* TrustConfigs returned.
* @opt_param string orderBy Optional. A list of TrustConfig field names used to
* specify the order of the returned results. The default sorting order is
* ascending. To specify descending order for a field, add a suffix `" desc"`.
* @opt_param int pageSize Optional. Maximum number of TrustConfigs to return
* per call.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTrustConfigsResponse`. Indicates that this is a continuation of a prior
* `ListTrustConfigs` call, and that the system should return the next page of
* data.
* @return ListTrustConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTrustConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTrustConfigsResponse::class);
}
/**
* Updates a TrustConfig. (trustConfigs.patch)
*
* @param string $name Identifier. A user-defined name of the trust config.
* TrustConfig names must be unique globally and match pattern
* `projects/locations/trustConfigs`.
* @param TrustConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The update mask applies to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, TrustConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTrustConfigs::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsTrustConfigs');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class ResourcesCount extends \Google\Model
{
/**
* @var string
*/
public $certificates;
/**
* @var string
*/
public $computeTime;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCertificates($certificates)
{
$this->certificates = $certificates;
}
/**
* @return string
*/
public function getCertificates()
{
return $this->certificates;
}
/**
* @param string
*/
public function setComputeTime($computeTime)
{
$this->computeTime = $computeTime;
}
/**
* @return string
*/
public function getComputeTime()
{
return $this->computeTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourcesCount::class, 'Google_Service_CertificateManager_ResourcesCount');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class SelfManagedCertificate extends \Google\Model
{
/**
* Optional. Input only. The PEM-encoded certificate chain. Leaf certificate
* comes first, followed by intermediate ones if any.
*
* @var string
*/
public $pemCertificate;
/**
* Optional. Input only. The PEM-encoded private key of the leaf certificate.
*
* @var string
*/
public $pemPrivateKey;
/**
* Optional. Input only. The PEM-encoded certificate chain. Leaf certificate
* comes first, followed by intermediate ones if any.
*
* @param string $pemCertificate
*/
public function setPemCertificate($pemCertificate)
{
$this->pemCertificate = $pemCertificate;
}
/**
* @return string
*/
public function getPemCertificate()
{
return $this->pemCertificate;
}
/**
* Optional. Input only. The PEM-encoded private key of the leaf certificate.
*
* @param string $pemPrivateKey
*/
public function setPemPrivateKey($pemPrivateKey)
{
$this->pemPrivateKey = $pemPrivateKey;
}
/**
* @return string
*/
public function getPemPrivateKey()
{
return $this->pemPrivateKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SelfManagedCertificate::class, 'Google_Service_CertificateManager_SelfManagedCertificate');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CertificateManager;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CertificateManager_Status');
@@ -0,0 +1,87 @@
<?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\CertificateManager;
class Troubleshooting extends \Google\Collection
{
protected $collection_key = 'issues';
protected $cnameType = CNAME::class;
protected $cnameDataType = '';
protected $ipsType = IPs::class;
protected $ipsDataType = '';
/**
* Output only. The list of issues discovered during the authorization
* attempt.
*
* @var string[]
*/
public $issues;
/**
* Output only. CNAME troubleshooting information.
*
* @param CNAME $cname
*/
public function setCname(CNAME $cname)
{
$this->cname = $cname;
}
/**
* @return CNAME
*/
public function getCname()
{
return $this->cname;
}
/**
* Output only. IPs troubleshooting information.
*
* @param IPs $ips
*/
public function setIps(IPs $ips)
{
$this->ips = $ips;
}
/**
* @return IPs
*/
public function getIps()
{
return $this->ips;
}
/**
* Output only. The list of issues discovered during the authorization
* attempt.
*
* @param string[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return string[]
*/
public function getIssues()
{
return $this->issues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Troubleshooting::class, 'Google_Service_CertificateManager_Troubleshooting');
@@ -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\CertificateManager;
class TrustAnchor extends \Google\Model
{
/**
* PEM root certificate of the PKI used for validation. Each certificate
* provided in PEM format may occupy up to 5kB.
*
* @var string
*/
public $pemCertificate;
/**
* PEM root certificate of the PKI used for validation. Each certificate
* provided in PEM format may occupy up to 5kB.
*
* @param string $pemCertificate
*/
public function setPemCertificate($pemCertificate)
{
$this->pemCertificate = $pemCertificate;
}
/**
* @return string
*/
public function getPemCertificate()
{
return $this->pemCertificate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrustAnchor::class, 'Google_Service_CertificateManager_TrustAnchor');
@@ -0,0 +1,226 @@
<?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\CertificateManager;
class TrustConfig extends \Google\Collection
{
protected $collection_key = 'trustStores';
protected $allowlistedCertificatesType = AllowlistedCertificate::class;
protected $allowlistedCertificatesDataType = 'array';
/**
* Output only. The creation timestamp of a TrustConfig.
*
* @var string
*/
public $createTime;
/**
* Optional. One or more paragraphs of text description of a TrustConfig.
*
* @var string
*/
public $description;
/**
* This checksum is computed by the server based on the value of other fields,
* and may be sent on update and delete requests to ensure the client has an
* up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Optional. Set of labels associated with a TrustConfig.
*
* @var string[]
*/
public $labels;
/**
* Identifier. A user-defined name of the trust config. TrustConfig names must
* be unique globally and match pattern `projects/locations/trustConfigs`.
*
* @var string
*/
public $name;
protected $spiffeTrustStoresType = TrustStore::class;
protected $spiffeTrustStoresDataType = 'map';
protected $trustStoresType = TrustStore::class;
protected $trustStoresDataType = 'array';
/**
* Output only. The last update timestamp of a TrustConfig.
*
* @var string
*/
public $updateTime;
/**
* Optional. A certificate matching an allowlisted certificate is always
* considered valid as long as the certificate is parseable, proof of private
* key possession is established, and constraints on the certificate's SAN
* field are met.
*
* @param AllowlistedCertificate[] $allowlistedCertificates
*/
public function setAllowlistedCertificates($allowlistedCertificates)
{
$this->allowlistedCertificates = $allowlistedCertificates;
}
/**
* @return AllowlistedCertificate[]
*/
public function getAllowlistedCertificates()
{
return $this->allowlistedCertificates;
}
/**
* Output only. The creation timestamp of a TrustConfig.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. One or more paragraphs of text description of a TrustConfig.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* This checksum is computed by the server based on the value of other fields,
* and may be sent on update and delete requests to ensure the client has an
* up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Set of labels associated with a TrustConfig.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. A user-defined name of the trust config. TrustConfig names must
* be unique globally and match pattern `projects/locations/trustConfigs`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Defines a mapping from a trust domain to a TrustStore. This is
* used for SPIFFE certificate validation.
*
* @param TrustStore[] $spiffeTrustStores
*/
public function setSpiffeTrustStores($spiffeTrustStores)
{
$this->spiffeTrustStores = $spiffeTrustStores;
}
/**
* @return TrustStore[]
*/
public function getSpiffeTrustStores()
{
return $this->spiffeTrustStores;
}
/**
* Optional. Set of trust stores to perform validation against. This field is
* supported when TrustConfig is configured with Load Balancers, currently not
* supported for SPIFFE certificate validation. Only one TrustStore specified
* is currently allowed.
*
* @param TrustStore[] $trustStores
*/
public function setTrustStores($trustStores)
{
$this->trustStores = $trustStores;
}
/**
* @return TrustStore[]
*/
public function getTrustStores()
{
return $this->trustStores;
}
/**
* Output only. The last update timestamp of a TrustConfig.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrustConfig::class, 'Google_Service_CertificateManager_TrustConfig');
@@ -0,0 +1,66 @@
<?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\CertificateManager;
class TrustStore extends \Google\Collection
{
protected $collection_key = 'trustAnchors';
protected $intermediateCasType = IntermediateCA::class;
protected $intermediateCasDataType = 'array';
protected $trustAnchorsType = TrustAnchor::class;
protected $trustAnchorsDataType = 'array';
/**
* Optional. Set of intermediate CA certificates used for the path building
* phase of chain validation. The field is currently not supported if
* TrustConfig is used for the workload certificate feature.
*
* @param IntermediateCA[] $intermediateCas
*/
public function setIntermediateCas($intermediateCas)
{
$this->intermediateCas = $intermediateCas;
}
/**
* @return IntermediateCA[]
*/
public function getIntermediateCas()
{
return $this->intermediateCas;
}
/**
* Optional. List of Trust Anchors to be used while performing validation
* against a given TrustStore.
*
* @param TrustAnchor[] $trustAnchors
*/
public function setTrustAnchors($trustAnchors)
{
$this->trustAnchors = $trustAnchors;
}
/**
* @return TrustAnchor[]
*/
public function getTrustAnchors()
{
return $this->trustAnchors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrustStore::class, 'Google_Service_CertificateManager_TrustStore');
@@ -0,0 +1,54 @@
<?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\CertificateManager;
class UsedBy extends \Google\Model
{
/**
* Output only. Full name of the resource https://google.aip.dev/122#full-
* resource-names, e.g. `//certificatemanager.googleapis.com/projects/location
* s/certificateMaps/certificateMapEntries` or
* `//compute.googleapis.com/projects/locations/targetHttpsProxies`.
*
* @var string
*/
public $name;
/**
* Output only. Full name of the resource https://google.aip.dev/122#full-
* resource-names, e.g. `//certificatemanager.googleapis.com/projects/location
* s/certificateMaps/certificateMapEntries` or
* `//compute.googleapis.com/projects/locations/targetHttpsProxies`.
*
* @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(UsedBy::class, 'Google_Service_CertificateManager_UsedBy');