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,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\FirebaseHosting;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_FirebaseHosting_CancelOperationRequest');
@@ -0,0 +1,65 @@
<?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\FirebaseHosting;
class CertVerification extends \Google\Model
{
protected $dnsType = DnsUpdates::class;
protected $dnsDataType = '';
protected $httpType = HttpUpdate::class;
protected $httpDataType = '';
/**
* Output only. A `TXT` record to add to your DNS records that confirms your
* intent to let Hosting create an SSL cert for your domain name.
*
* @param DnsUpdates $dns
*/
public function setDns(DnsUpdates $dns)
{
$this->dns = $dns;
}
/**
* @return DnsUpdates
*/
public function getDns()
{
return $this->dns;
}
/**
* Output only. A file to add to your existing, non-Hosting hosting service
* that confirms your intent to let Hosting create an SSL cert for your domain
* name.
*
* @param HttpUpdate $http
*/
public function setHttp(HttpUpdate $http)
{
$this->http = $http;
}
/**
* @return HttpUpdate
*/
public function getHttp()
{
return $this->http;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertVerification::class, 'Google_Service_FirebaseHosting_CertVerification');
@@ -0,0 +1,287 @@
<?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\FirebaseHosting;
class CustomDomainMetadata extends \Google\Collection
{
/**
* The certificate's state is unspecified. The message is invalid if this is
* unspecified.
*/
public const CERT_STATE_CERT_STATE_UNSPECIFIED = 'CERT_STATE_UNSPECIFIED';
/**
* The initial state of every certificate, represents Hosting's intent to
* create a certificate, before requests to a Certificate Authority are made.
*/
public const CERT_STATE_CERT_PREPARING = 'CERT_PREPARING';
/**
* Hosting is validating whether a domain name's DNS records are in a state
* that allow certificate creation on its behalf.
*/
public const CERT_STATE_CERT_VALIDATING = 'CERT_VALIDATING';
/**
* The certificate was recently created, and needs time to propagate in
* Hosting's CDN.
*/
public const CERT_STATE_CERT_PROPAGATING = 'CERT_PROPAGATING';
/**
* The certificate is active, providing secure connections for the domain
* names it represents.
*/
public const CERT_STATE_CERT_ACTIVE = 'CERT_ACTIVE';
/**
* The certificate is expiring, all domain names on it will be given new
* certificates.
*/
public const CERT_STATE_CERT_EXPIRING_SOON = 'CERT_EXPIRING_SOON';
/**
* The certificate has expired. Hosting can no longer serve secure content on
* your domain name.
*/
public const CERT_STATE_CERT_EXPIRED = 'CERT_EXPIRED';
/**
* Your custom domain's host state is unspecified. The message is invalid if
* this is unspecified.
*/
public const HOST_STATE_HOST_STATE_UNSPECIFIED = 'HOST_STATE_UNSPECIFIED';
/**
* Your custom domain's domain name isn't associated with any IP addresses.
*/
public const HOST_STATE_HOST_UNHOSTED = 'HOST_UNHOSTED';
/**
* Your custom domain's domain name can't be reached. Hosting services' DNS
* queries to find your domain name's IP addresses resulted in errors. See
* your `CustomDomain` object's `issues` field for more details.
*/
public const HOST_STATE_HOST_UNREACHABLE = 'HOST_UNREACHABLE';
/**
* Your custom domain's domain name has IP addresses that don't ultimately
* resolve to Hosting.
*/
public const HOST_STATE_HOST_MISMATCH = 'HOST_MISMATCH';
/**
* Your custom domain's domain name has IP addresses that resolve to both
* Hosting and other services. To ensure consistent results, remove `A` and
* `AAAA` records related to non-Hosting services.
*/
public const HOST_STATE_HOST_CONFLICT = 'HOST_CONFLICT';
/**
* All requests against your custom domain's domain name are served by
* Hosting. If the custom domain's `OwnershipState` is also `ACTIVE`, Hosting
* serves your Hosting site's content on the domain name.
*/
public const HOST_STATE_HOST_ACTIVE = 'HOST_ACTIVE';
/**
* Your custom domain's ownership state is unspecified. This should never
* happen.
*/
public const OWNERSHIP_STATE_OWNERSHIP_STATE_UNSPECIFIED = 'OWNERSHIP_STATE_UNSPECIFIED';
/**
* Your custom domain's domain name has no Hosting-related ownership records;
* no Firebase project has permission to act on the domain name's behalf.
*/
public const OWNERSHIP_STATE_OWNERSHIP_MISSING = 'OWNERSHIP_MISSING';
/**
* Your custom domain's domain name can't be reached. Hosting services' DNS
* queries to find your domain name's ownership records resulted in errors.
* See your `CustomDomain` object's `issues` field for more details.
*/
public const OWNERSHIP_STATE_OWNERSHIP_UNREACHABLE = 'OWNERSHIP_UNREACHABLE';
/**
* Your custom domain's domain name is owned by another Firebase project.
* Remove the conflicting `TXT` records and replace them with project-specific
* records for your current Firebase project.
*/
public const OWNERSHIP_STATE_OWNERSHIP_MISMATCH = 'OWNERSHIP_MISMATCH';
/**
* Your custom domain's domain name has conflicting `TXT` records that
* indicate ownership by both your current Firebase project and another
* project. Remove the other project's ownership records to grant the current
* project ownership.
*/
public const OWNERSHIP_STATE_OWNERSHIP_CONFLICT = 'OWNERSHIP_CONFLICT';
/**
* Your custom domain's DNS records are configured correctly. Hosting will
* transfer ownership of your domain to this `CustomDomain` within 24 hours.
*/
public const OWNERSHIP_STATE_OWNERSHIP_PENDING = 'OWNERSHIP_PENDING';
/**
* Your custom domain's domain name has `TXT` records that grant its project
* permission to act on its behalf.
*/
public const OWNERSHIP_STATE_OWNERSHIP_ACTIVE = 'OWNERSHIP_ACTIVE';
protected $collection_key = 'liveMigrationSteps';
/**
* The `CertState` of the domain name's SSL certificate.
*
* @var string
*/
public $certState;
/**
* The `HostState` of the domain name this `CustomDomain` refers to.
*
* @var string
*/
public $hostState;
protected $issuesType = Status::class;
protected $issuesDataType = 'array';
protected $liveMigrationStepsType = LiveMigrationStep::class;
protected $liveMigrationStepsDataType = 'array';
/**
* The `OwnershipState` of the domain name this `CustomDomain` refers to.
*
* @var string
*/
public $ownershipState;
protected $quickSetupUpdatesType = DnsUpdates::class;
protected $quickSetupUpdatesDataType = '';
/**
* The `CertState` of the domain name's SSL certificate.
*
* Accepted values: CERT_STATE_UNSPECIFIED, CERT_PREPARING, CERT_VALIDATING,
* CERT_PROPAGATING, CERT_ACTIVE, CERT_EXPIRING_SOON, CERT_EXPIRED
*
* @param self::CERT_STATE_* $certState
*/
public function setCertState($certState)
{
$this->certState = $certState;
}
/**
* @return self::CERT_STATE_*
*/
public function getCertState()
{
return $this->certState;
}
/**
* The `HostState` of the domain name this `CustomDomain` refers to.
*
* Accepted values: HOST_STATE_UNSPECIFIED, HOST_UNHOSTED, HOST_UNREACHABLE,
* HOST_MISMATCH, HOST_CONFLICT, HOST_ACTIVE
*
* @param self::HOST_STATE_* $hostState
*/
public function setHostState($hostState)
{
$this->hostState = $hostState;
}
/**
* @return self::HOST_STATE_*
*/
public function getHostState()
{
return $this->hostState;
}
/**
* A list of issues that are currently preventing Hosting from completing the
* operation. These are generally DNS-related issues that Hosting encounters
* when querying a domain name's records or attempting to mint an SSL
* certificate.
*
* @param Status[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return Status[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* A set of DNS record updates and ACME challenges that allow you to
* transition domain names to Firebase Hosting with zero downtime. These
* updates allow Hosting to create an SSL certificate and establish ownership
* for your custom domain before Hosting begins serving traffic on it. If your
* domain name is already in active use with another provider, add one of the
* challenges and make the recommended DNS updates. After adding challenges
* and adjusting DNS records as necessary, wait for the `ownershipState` to be
* `OWNERSHIP_ACTIVE` and the `certState` to be `CERT_ACTIVE` before sending
* traffic to Hosting.
*
* @param LiveMigrationStep[] $liveMigrationSteps
*/
public function setLiveMigrationSteps($liveMigrationSteps)
{
$this->liveMigrationSteps = $liveMigrationSteps;
}
/**
* @return LiveMigrationStep[]
*/
public function getLiveMigrationSteps()
{
return $this->liveMigrationSteps;
}
/**
* The `OwnershipState` of the domain name this `CustomDomain` refers to.
*
* Accepted values: OWNERSHIP_STATE_UNSPECIFIED, OWNERSHIP_MISSING,
* OWNERSHIP_UNREACHABLE, OWNERSHIP_MISMATCH, OWNERSHIP_CONFLICT,
* OWNERSHIP_PENDING, OWNERSHIP_ACTIVE
*
* @param self::OWNERSHIP_STATE_* $ownershipState
*/
public function setOwnershipState($ownershipState)
{
$this->ownershipState = $ownershipState;
}
/**
* @return self::OWNERSHIP_STATE_*
*/
public function getOwnershipState()
{
return $this->ownershipState;
}
/**
* A set of DNS record updates that allow Hosting to serve secure content on
* your domain name. The record type determines the update's purpose: - `A`
* and `AAAA`: Updates your domain name's IP addresses so that they direct
* traffic to Hosting servers. - `TXT`: Updates ownership permissions on your
* domain name, letting Hosting know that your custom domain's project has
* permission to perform actions for that domain name. - `CAA`: Updates your
* domain name's list of authorized Certificate Authorities (CAs). Only
* present if you have existing `CAA` records that prohibit Hosting's CA from
* minting certs for your domain name. These updates include all DNS changes
* you'll need to get started with Hosting, but, if made all at once, can
* result in a brief period of downtime for your domain name--while Hosting
* creates and uploads an SSL cert, for example. If you'd like to add your
* domain name to Hosting without downtime, complete the `liveMigrationSteps`
* first, before making the remaining updates in this field.
*
* @param DnsUpdates $quickSetupUpdates
*/
public function setQuickSetupUpdates(DnsUpdates $quickSetupUpdates)
{
$this->quickSetupUpdates = $quickSetupUpdates;
}
/**
* @return DnsUpdates
*/
public function getQuickSetupUpdates()
{
return $this->quickSetupUpdates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomDomainMetadata::class, 'Google_Service_FirebaseHosting_CustomDomainMetadata');
@@ -0,0 +1,187 @@
<?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\FirebaseHosting;
class DnsRecord extends \Google\Model
{
/**
* No action necessary.
*/
public const REQUIRED_ACTION_NONE = 'NONE';
/**
* Add this record to your DNS records.
*/
public const REQUIRED_ACTION_ADD = 'ADD';
/**
* Remove this record from your DNS records.
*/
public const REQUIRED_ACTION_REMOVE = 'REMOVE';
/**
* The record's type is unspecified. The message is invalid if this is
* unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* An `A` record, as defined in [RFC
* 1035](https://tools.ietf.org/html/rfc1035). A records determine which IPv4
* addresses a domain name directs traffic towards.
*/
public const TYPE_A = 'A';
/**
* A `CNAME` record, as defined in [RFC
* 1035](https://tools.ietf.org/html/rfc1035). `CNAME` or Canonical Name
* records map a domain name to a different, canonical domain name. If a
* `CNAME` record is present, it should be the only record on the domain name.
*/
public const TYPE_CNAME = 'CNAME';
/**
* A `TXT` record, as defined in [RFC
* 1035](https://tools.ietf.org/html/rfc1035). `TXT` records hold arbitrary
* text data on a domain name. Hosting uses `TXT` records to establish which
* Firebase Project has permission to act on a domain name.
*/
public const TYPE_TXT = 'TXT';
/**
* An AAAA record, as defined in [RFC
* 3596](https://tools.ietf.org/html/rfc3596) AAAA records determine which
* IPv6 addresses a domain name directs traffic towards.
*/
public const TYPE_AAAA = 'AAAA';
/**
* A CAA record, as defined in [RFC
* 6844](https://tools.ietf.org/html/rfc6844). CAA, or Certificate Authority
* Authorization, records determine which Certificate Authorities (SSL
* certificate minting organizations) are authorized to mint a certificate for
* the domain name. Firebase Hosting uses `pki.goog` as its primary CA. CAA
* records cascade. A CAA record on `foo.com` also applies to `bar.foo.com`
* unless `bar.foo.com` has its own set of CAA records. CAA records are
* optional. If a domain name and its parents have no CAA records, all CAs are
* authorized to mint certificates on its behalf. In general, Hosting only
* asks you to modify CAA records when doing so is required to unblock SSL
* cert creation.
*/
public const TYPE_CAA = 'CAA';
/**
* Output only. The domain name the record pertains to, e.g. `foo.bar.com.`.
*
* @var string
*/
public $domainName;
/**
* Output only. The data of the record. The meaning of the value depends on
* record type: - A and AAAA: IP addresses for the domain name. - CNAME:
* Another domain to check for records. - TXT: Arbitrary text strings
* associated with the domain name. Hosting uses TXT records to determine
* which Firebase projects have permission to act on the domain name's behalf.
* - CAA: The record's flags, tag, and value, e.g. `0 issue "pki.goog"`.
*
* @var string
*/
public $rdata;
/**
* Output only. An enum that indicates the a required action for this record.
*
* @var string
*/
public $requiredAction;
/**
* Output only. The record's type, which determines what data the record
* contains.
*
* @var string
*/
public $type;
/**
* Output only. The domain name the record pertains to, e.g. `foo.bar.com.`.
*
* @param string $domainName
*/
public function setDomainName($domainName)
{
$this->domainName = $domainName;
}
/**
* @return string
*/
public function getDomainName()
{
return $this->domainName;
}
/**
* Output only. The data of the record. The meaning of the value depends on
* record type: - A and AAAA: IP addresses for the domain name. - CNAME:
* Another domain to check for records. - TXT: Arbitrary text strings
* associated with the domain name. Hosting uses TXT records to determine
* which Firebase projects have permission to act on the domain name's behalf.
* - CAA: The record's flags, tag, and value, e.g. `0 issue "pki.goog"`.
*
* @param string $rdata
*/
public function setRdata($rdata)
{
$this->rdata = $rdata;
}
/**
* @return string
*/
public function getRdata()
{
return $this->rdata;
}
/**
* Output only. An enum that indicates the a required action for this record.
*
* Accepted values: NONE, ADD, REMOVE
*
* @param self::REQUIRED_ACTION_* $requiredAction
*/
public function setRequiredAction($requiredAction)
{
$this->requiredAction = $requiredAction;
}
/**
* @return self::REQUIRED_ACTION_*
*/
public function getRequiredAction()
{
return $this->requiredAction;
}
/**
* Output only. The record's type, which determines what data the record
* contains.
*
* Accepted values: TYPE_UNSPECIFIED, A, CNAME, TXT, AAAA, CAA
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsRecord::class, 'Google_Service_FirebaseHosting_DnsRecord');
@@ -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\FirebaseHosting;
class DnsRecordSet extends \Google\Collection
{
protected $collection_key = 'records';
protected $checkErrorType = Status::class;
protected $checkErrorDataType = '';
/**
* Output only. The domain name the record set pertains to.
*
* @var string
*/
public $domainName;
protected $recordsType = DnsRecord::class;
protected $recordsDataType = 'array';
/**
* Output only. An error Hosting services encountered when querying your
* domain name's DNS records. Note: Hosting ignores `NXDOMAIN` errors, as
* those generally just mean that a domain name hasn't been set up yet.
*
* @param Status $checkError
*/
public function setCheckError(Status $checkError)
{
$this->checkError = $checkError;
}
/**
* @return Status
*/
public function getCheckError()
{
return $this->checkError;
}
/**
* Output only. The domain name the record set pertains to.
*
* @param string $domainName
*/
public function setDomainName($domainName)
{
$this->domainName = $domainName;
}
/**
* @return string
*/
public function getDomainName()
{
return $this->domainName;
}
/**
* Output only. Records on the domain.
*
* @param DnsRecord[] $records
*/
public function setRecords($records)
{
$this->records = $records;
}
/**
* @return DnsRecord[]
*/
public function getRecords()
{
return $this->records;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsRecordSet::class, 'Google_Service_FirebaseHosting_DnsRecordSet');
@@ -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\FirebaseHosting;
class DnsUpdates extends \Google\Collection
{
protected $collection_key = 'discovered';
/**
* The last time Hosting checked your custom domain's DNS records.
*
* @var string
*/
public $checkTime;
protected $desiredType = DnsRecordSet::class;
protected $desiredDataType = 'array';
protected $discoveredType = DnsRecordSet::class;
protected $discoveredDataType = 'array';
/**
* The last time Hosting checked your custom domain's DNS records.
*
* @param string $checkTime
*/
public function setCheckTime($checkTime)
{
$this->checkTime = $checkTime;
}
/**
* @return string
*/
public function getCheckTime()
{
return $this->checkTime;
}
/**
* The set of DNS records Hosting needs to serve secure content on the domain.
*
* @param DnsRecordSet[] $desired
*/
public function setDesired($desired)
{
$this->desired = $desired;
}
/**
* @return DnsRecordSet[]
*/
public function getDesired()
{
return $this->desired;
}
/**
* The set of DNS records Hosting discovered when inspecting a domain.
*
* @param DnsRecordSet[] $discovered
*/
public function setDiscovered($discovered)
{
$this->discovered = $discovered;
}
/**
* @return DnsRecordSet[]
*/
public function getDiscovered()
{
return $this->discovered;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsUpdates::class, 'Google_Service_FirebaseHosting_DnsUpdates');
@@ -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\FirebaseHosting;
class FirebasehostingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirebasehostingEmpty::class, 'Google_Service_FirebaseHosting_FirebasehostingEmpty');
@@ -0,0 +1,135 @@
<?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\FirebaseHosting;
class HttpUpdate extends \Google\Model
{
protected $checkErrorType = Status::class;
protected $checkErrorDataType = '';
/**
* Output only. A text string to serve at the path.
*
* @var string
*/
public $desired;
/**
* Output only. Whether Hosting was able to find the required file contents on
* the specified path during its last check.
*
* @var string
*/
public $discovered;
/**
* Output only. The last time Hosting systems checked for the file contents.
*
* @var string
*/
public $lastCheckTime;
/**
* Output only. The path to the file.
*
* @var string
*/
public $path;
/**
* Output only. An error encountered during the last contents check. If null,
* the check completed successfully.
*
* @param Status $checkError
*/
public function setCheckError(Status $checkError)
{
$this->checkError = $checkError;
}
/**
* @return Status
*/
public function getCheckError()
{
return $this->checkError;
}
/**
* Output only. A text string to serve at the path.
*
* @param string $desired
*/
public function setDesired($desired)
{
$this->desired = $desired;
}
/**
* @return string
*/
public function getDesired()
{
return $this->desired;
}
/**
* Output only. Whether Hosting was able to find the required file contents on
* the specified path during its last check.
*
* @param string $discovered
*/
public function setDiscovered($discovered)
{
$this->discovered = $discovered;
}
/**
* @return string
*/
public function getDiscovered()
{
return $this->discovered;
}
/**
* Output only. The last time Hosting systems checked for the file contents.
*
* @param string $lastCheckTime
*/
public function setLastCheckTime($lastCheckTime)
{
$this->lastCheckTime = $lastCheckTime;
}
/**
* @return string
*/
public function getLastCheckTime()
{
return $this->lastCheckTime;
}
/**
* Output only. The path to the file.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpUpdate::class, 'Google_Service_FirebaseHosting_HttpUpdate');
@@ -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\FirebaseHosting;
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_FirebaseHosting_ListOperationsResponse');
@@ -0,0 +1,146 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseHosting;
class LiveMigrationStep extends \Google\Collection
{
/**
* The step's state is unspecified. The message is invalid if this is
* unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Hosting doesn't have enough information to construct the step yet. Complete
* any prior steps and/or resolve this step's issue to proceed.
*/
public const STATE_PREPARING = 'PREPARING';
/**
* The step's state is pending. Complete prior steps before working on a
* `PENDING` step.
*/
public const STATE_PENDING = 'PENDING';
/**
* The step is incomplete. You should complete any `certVerification` or
* `dnsUpdates` changes to complete it.
*/
public const STATE_INCOMPLETE = 'INCOMPLETE';
/**
* You've done your part to update records and present challenges as
* necessary. Hosting is now completing background processes to complete the
* step, e.g. minting an SSL cert for your domain name.
*/
public const STATE_PROCESSING = 'PROCESSING';
/**
* The step is complete. You've already made the necessary changes to your
* domain and/or prior hosting service to advance to the next step. Once all
* steps are complete, Hosting is ready to serve secure content on your
* domain.
*/
public const STATE_COMPLETE = 'COMPLETE';
protected $collection_key = 'issues';
protected $certVerificationType = CertVerification::class;
protected $certVerificationDataType = '';
protected $dnsUpdatesType = DnsUpdates::class;
protected $dnsUpdatesDataType = '';
protected $issuesType = Status::class;
protected $issuesDataType = 'array';
/**
* Output only. The state of the live migration step, indicates whether you
* should work to complete the step now, in the future, or have already
* completed it.
*
* @var string
*/
public $state;
/**
* Output only. A pair of ACME challenges that Hosting's Certificate Authority
* (CA) can use to create an SSL cert for your domain name. Use either the DNS
* or HTTP challenge; it's not necessary to provide both.
*
* @param CertVerification $certVerification
*/
public function setCertVerification(CertVerification $certVerification)
{
$this->certVerification = $certVerification;
}
/**
* @return CertVerification
*/
public function getCertVerification()
{
return $this->certVerification;
}
/**
* Output only. DNS updates to facilitate your domain's zero-downtime
* migration to Hosting.
*
* @param DnsUpdates $dnsUpdates
*/
public function setDnsUpdates(DnsUpdates $dnsUpdates)
{
$this->dnsUpdates = $dnsUpdates;
}
/**
* @return DnsUpdates
*/
public function getDnsUpdates()
{
return $this->dnsUpdates;
}
/**
* Output only. Issues that prevent the current step from completing.
*
* @param Status[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return Status[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* Output only. The state of the live migration step, indicates whether you
* should work to complete the step now, in the future, or have already
* completed it.
*
* Accepted values: STATE_UNSPECIFIED, PREPARING, PENDING, INCOMPLETE,
* PROCESSING, COMPLETE
*
* @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(LiveMigrationStep::class, 'Google_Service_FirebaseHosting_LiveMigrationStep');
@@ -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\FirebaseHosting;
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_FirebaseHosting_Operation');
@@ -0,0 +1,104 @@
<?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\FirebaseHosting\Resource;
use Google\Service\FirebaseHosting\CancelOperationRequest;
use Google\Service\FirebaseHosting\FirebasehostingEmpty;
use Google\Service\FirebaseHosting\ListOperationsResponse;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $firebasehostingService = new Google\Service\FirebaseHosting(...);
* $operations = $firebasehostingService->operations;
* </code>
*/
class Operations 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 FirebasehostingEmpty
* @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], FirebasehostingEmpty::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 FirebasehostingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], FirebasehostingEmpty::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOperations)
*
* @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 listOperations($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(Operations::class, 'Google_Service_FirebaseHosting_Resource_Operations');
@@ -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\FirebaseHosting\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $firebasehostingService = new Google\Service\FirebaseHosting(...);
* $projects = $firebasehostingService->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_FirebaseHosting_Resource_Projects');
@@ -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\FirebaseHosting\Resource;
/**
* The "sites" collection of methods.
* Typical usage is:
* <code>
* $firebasehostingService = new Google\Service\FirebaseHosting(...);
* $sites = $firebasehostingService->projects_sites;
* </code>
*/
class ProjectsSites extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSites::class, 'Google_Service_FirebaseHosting_Resource_ProjectsSites');
@@ -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\FirebaseHosting\Resource;
/**
* The "customDomains" collection of methods.
* Typical usage is:
* <code>
* $firebasehostingService = new Google\Service\FirebaseHosting(...);
* $customDomains = $firebasehostingService->projects_sites_customDomains;
* </code>
*/
class ProjectsSitesCustomDomains extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSitesCustomDomains::class, 'Google_Service_FirebaseHosting_Resource_ProjectsSitesCustomDomains');
@@ -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\FirebaseHosting\Resource;
use Google\Service\FirebaseHosting\CancelOperationRequest;
use Google\Service\FirebaseHosting\FirebasehostingEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $firebasehostingService = new Google\Service\FirebaseHosting(...);
* $operations = $firebasehostingService->projects_sites_customDomains_operations;
* </code>
*/
class ProjectsSitesCustomDomainsOperations extends \Google\Service\Resource
{
/**
* CancelOperation is a part of the google.longrunning.Operations interface, but
* is not implemented for CustomDomain resources. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return FirebasehostingEmpty
* @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], FirebasehostingEmpty::class);
}
/**
* DeleteOperation is a part of the google.longrunning.Operations interface, but
* is not implemented for CustomDomain resources. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return FirebasehostingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], FirebasehostingEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSitesCustomDomainsOperations::class, 'Google_Service_FirebaseHosting_Resource_ProjectsSitesCustomDomainsOperations');
@@ -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\FirebaseHosting;
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_FirebaseHosting_Status');