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,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class AcceptHubSpokeRequest extends \Google\Model
{
/**
* Optional. A request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server knows to ignore the request
* if it has already been completed. The server guarantees that a request
* doesn't result in creation of duplicate commitments for at least 60
* minutes. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the
* same request ID, the server can check to see whether the original operation
* was received. If it was, the server ignores the second request. This
* behavior prevents clients from mistakenly creating duplicate commitments.
* The request ID must be a valid UUID, with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Required. The URI of the spoke to accept into the hub.
*
* @var string
*/
public $spokeUri;
/**
* Optional. A request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server knows to ignore the request
* if it has already been completed. The server guarantees that a request
* doesn't result in creation of duplicate commitments for at least 60
* minutes. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the
* same request ID, the server can check to see whether the original operation
* was received. If it was, the server ignores the second request. This
* behavior prevents clients from mistakenly creating duplicate commitments.
* The request ID must be a valid UUID, with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Required. The URI of the spoke to accept into the hub.
*
* @param string $spokeUri
*/
public function setSpokeUri($spokeUri)
{
$this->spokeUri = $spokeUri;
}
/**
* @return string
*/
public function getSpokeUri()
{
return $this->spokeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptHubSpokeRequest::class, 'Google_Service_Networkconnectivity_AcceptHubSpokeRequest');
@@ -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\Networkconnectivity;
class AcceptHubSpokeResponse extends \Google\Model
{
protected $spokeType = Spoke::class;
protected $spokeDataType = '';
/**
* The spoke that was operated on.
*
* @param Spoke $spoke
*/
public function setSpoke(Spoke $spoke)
{
$this->spoke = $spoke;
}
/**
* @return Spoke
*/
public function getSpoke()
{
return $this->spoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptHubSpokeResponse::class, 'Google_Service_Networkconnectivity_AcceptHubSpokeResponse');
@@ -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\Networkconnectivity;
class AcceptSpokeRequest extends \Google\Model
{
/**
* @var string
*/
public $requestId;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptSpokeRequest::class, 'Google_Service_Networkconnectivity_AcceptSpokeRequest');
@@ -0,0 +1,112 @@
<?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\Networkconnectivity;
class AcceptSpokeUpdateRequest extends \Google\Model
{
/**
* Optional. A request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server knows to ignore the request
* if it has already been completed. The server guarantees that a request
* doesn't result in creation of duplicate commitments for at least 60
* minutes. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the
* same request ID, the server can check to see whether the original operation
* was received. If it was, the server ignores the second request. This
* behavior prevents clients from mistakenly creating duplicate commitments.
* The request ID must be a valid UUID, with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Required. The etag of the spoke to accept update.
*
* @var string
*/
public $spokeEtag;
/**
* Required. The URI of the spoke to accept update.
*
* @var string
*/
public $spokeUri;
/**
* Optional. A request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server knows to ignore the request
* if it has already been completed. The server guarantees that a request
* doesn't result in creation of duplicate commitments for at least 60
* minutes. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the
* same request ID, the server can check to see whether the original operation
* was received. If it was, the server ignores the second request. This
* behavior prevents clients from mistakenly creating duplicate commitments.
* The request ID must be a valid UUID, with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Required. The etag of the spoke to accept update.
*
* @param string $spokeEtag
*/
public function setSpokeEtag($spokeEtag)
{
$this->spokeEtag = $spokeEtag;
}
/**
* @return string
*/
public function getSpokeEtag()
{
return $this->spokeEtag;
}
/**
* Required. The URI of the spoke to accept update.
*
* @param string $spokeUri
*/
public function setSpokeUri($spokeUri)
{
$this->spokeUri = $spokeUri;
}
/**
* @return string
*/
public function getSpokeUri()
{
return $this->spokeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptSpokeUpdateRequest::class, 'Google_Service_Networkconnectivity_AcceptSpokeUpdateRequest');
@@ -0,0 +1,112 @@
<?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\Networkconnectivity;
class AllocationOptions extends \Google\Model
{
/**
* Unspecified is the only valid option when the range is specified explicitly
* by ip_cidr_range field. Otherwise unspefified means using the default
* strategy.
*/
public const ALLOCATION_STRATEGY_ALLOCATION_STRATEGY_UNSPECIFIED = 'ALLOCATION_STRATEGY_UNSPECIFIED';
/**
* Random strategy, the legacy algorithm, used for backwards compatibility.
* This allocation strategy remains efficient in the case of concurrent
* allocation requests in the same peered network space and doesn't require
* providing the level of concurrency in an explicit parameter, but it is
* prone to fragmenting available address space.
*/
public const ALLOCATION_STRATEGY_RANDOM = 'RANDOM';
/**
* Pick the first available address range. This strategy is deterministic and
* the result is easy to predict.
*/
public const ALLOCATION_STRATEGY_FIRST_AVAILABLE = 'FIRST_AVAILABLE';
/**
* Pick an arbitrary range out of the first N available ones. The N will be
* set in the first_available_ranges_lookup_size field. This strategy should
* be used when concurrent allocation requests are made in the same space of
* peered networks while the fragmentation of the addrress space is reduced.
*/
public const ALLOCATION_STRATEGY_RANDOM_FIRST_N_AVAILABLE = 'RANDOM_FIRST_N_AVAILABLE';
/**
* Pick the smallest but fitting available range. This deterministic strategy
* minimizes fragmentation of the address space.
*/
public const ALLOCATION_STRATEGY_FIRST_SMALLEST_FITTING = 'FIRST_SMALLEST_FITTING';
/**
* Optional. Allocation strategy Not setting this field when the allocation is
* requested means an implementation defined strategy is used.
*
* @var string
*/
public $allocationStrategy;
/**
* Optional. This field must be set only when allocation_strategy is set to
* RANDOM_FIRST_N_AVAILABLE. The value should be the maximum expected
* parallelism of range creation requests issued to the same space of peered
* netwroks.
*
* @var int
*/
public $firstAvailableRangesLookupSize;
/**
* Optional. Allocation strategy Not setting this field when the allocation is
* requested means an implementation defined strategy is used.
*
* Accepted values: ALLOCATION_STRATEGY_UNSPECIFIED, RANDOM, FIRST_AVAILABLE,
* RANDOM_FIRST_N_AVAILABLE, FIRST_SMALLEST_FITTING
*
* @param self::ALLOCATION_STRATEGY_* $allocationStrategy
*/
public function setAllocationStrategy($allocationStrategy)
{
$this->allocationStrategy = $allocationStrategy;
}
/**
* @return self::ALLOCATION_STRATEGY_*
*/
public function getAllocationStrategy()
{
return $this->allocationStrategy;
}
/**
* Optional. This field must be set only when allocation_strategy is set to
* RANDOM_FIRST_N_AVAILABLE. The value should be the maximum expected
* parallelism of range creation requests issued to the same space of peered
* netwroks.
*
* @param int $firstAvailableRangesLookupSize
*/
public function setFirstAvailableRangesLookupSize($firstAvailableRangesLookupSize)
{
$this->firstAvailableRangesLookupSize = $firstAvailableRangesLookupSize;
}
/**
* @return int
*/
public function getFirstAvailableRangesLookupSize()
{
return $this->firstAvailableRangesLookupSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationOptions::class, 'Google_Service_Networkconnectivity_AllocationOptions');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class AttributeValue extends \Google\Model
{
public $boolValue;
public $intValue;
protected $stringValueType = TruncatableString::class;
protected $stringValueDataType = '';
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
public function getBoolValue()
{
return $this->boolValue;
}
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
public function getIntValue()
{
return $this->intValue;
}
/**
* @param TruncatableString
*/
public function setStringValue(TruncatableString $stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return TruncatableString
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributeValue::class, 'Google_Service_Networkconnectivity_AttributeValue');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class Attributes extends \Google\Model
{
protected $attributeMapType = AttributeValue::class;
protected $attributeMapDataType = 'map';
public $droppedAttributesCount;
/**
* @param AttributeValue[]
*/
public function setAttributeMap($attributeMap)
{
$this->attributeMap = $attributeMap;
}
/**
* @return AttributeValue[]
*/
public function getAttributeMap()
{
return $this->attributeMap;
}
public function setDroppedAttributesCount($droppedAttributesCount)
{
$this->droppedAttributesCount = $droppedAttributesCount;
}
public function getDroppedAttributesCount()
{
return $this->droppedAttributesCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attributes::class, 'Google_Service_Networkconnectivity_Attributes');
@@ -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\Networkconnectivity;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Networkconnectivity_AuditConfig');
@@ -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\Networkconnectivity;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Networkconnectivity_AuditLogConfig');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class AutoAccept extends \Google\Collection
{
protected $collection_key = 'autoAcceptProjects';
/**
* Optional. A list of project ids or project numbers for which you want to
* enable auto-accept. The auto-accept setting is applied to spokes being
* created or updated in these projects.
*
* @var string[]
*/
public $autoAcceptProjects;
/**
* Optional. A list of project ids or project numbers for which you want to
* enable auto-accept. The auto-accept setting is applied to spokes being
* created or updated in these projects.
*
* @param string[] $autoAcceptProjects
*/
public function setAutoAcceptProjects($autoAcceptProjects)
{
$this->autoAcceptProjects = $autoAcceptProjects;
}
/**
* @return string[]
*/
public function getAutoAcceptProjects()
{
return $this->autoAcceptProjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoAccept::class, 'Google_Service_Networkconnectivity_AutoAccept');
@@ -0,0 +1,148 @@
<?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\Networkconnectivity;
class AutoCreatedSubnetworkInfo extends \Google\Model
{
/**
* Output only. Indicates whether the subnetwork is delinked from the Service
* Connection Policy. Only set if the subnetwork mode is AUTO_CREATED during
* creation.
*
* @var bool
*/
public $delinked;
/**
* Output only. URI of the automatically created Internal Range. Only set if
* the subnetwork mode is AUTO_CREATED during creation.
*
* @var string
*/
public $internalRange;
/**
* Output only. URI of the automatically created Internal Range reference.
* Only set if the subnetwork mode is AUTO_CREATED during creation.
*
* @var string
*/
public $internalRangeRef;
/**
* Output only. URI of the automatically created subnetwork. Only set if the
* subnetwork mode is AUTO_CREATED during creation.
*
* @var string
*/
public $subnetwork;
/**
* Output only. URI of the automatically created subnetwork reference. Only
* set if the subnetwork mode is AUTO_CREATED during creation.
*
* @var string
*/
public $subnetworkRef;
/**
* Output only. Indicates whether the subnetwork is delinked from the Service
* Connection Policy. Only set if the subnetwork mode is AUTO_CREATED during
* creation.
*
* @param bool $delinked
*/
public function setDelinked($delinked)
{
$this->delinked = $delinked;
}
/**
* @return bool
*/
public function getDelinked()
{
return $this->delinked;
}
/**
* Output only. URI of the automatically created Internal Range. Only set if
* the subnetwork mode is AUTO_CREATED during creation.
*
* @param string $internalRange
*/
public function setInternalRange($internalRange)
{
$this->internalRange = $internalRange;
}
/**
* @return string
*/
public function getInternalRange()
{
return $this->internalRange;
}
/**
* Output only. URI of the automatically created Internal Range reference.
* Only set if the subnetwork mode is AUTO_CREATED during creation.
*
* @param string $internalRangeRef
*/
public function setInternalRangeRef($internalRangeRef)
{
$this->internalRangeRef = $internalRangeRef;
}
/**
* @return string
*/
public function getInternalRangeRef()
{
return $this->internalRangeRef;
}
/**
* Output only. URI of the automatically created subnetwork. Only set if the
* subnetwork mode is AUTO_CREATED during creation.
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* Output only. URI of the automatically created subnetwork reference. Only
* set if the subnetwork mode is AUTO_CREATED during creation.
*
* @param string $subnetworkRef
*/
public function setSubnetworkRef($subnetworkRef)
{
$this->subnetworkRef = $subnetworkRef;
}
/**
* @return string
*/
public function getSubnetworkRef()
{
return $this->subnetworkRef;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoCreatedSubnetworkInfo::class, 'Google_Service_Networkconnectivity_AutoCreatedSubnetworkInfo');
@@ -0,0 +1,106 @@
<?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\Networkconnectivity;
class AutomatedDnsCreationSpec extends \Google\Model
{
/**
* Required. The DNS suffix to use for the DNS record. Must end with a dot.
* This should be a valid DNS domain name as per RFC 1035. Each label (between
* dots) can contain letters, digits, and hyphens, and must not start or end
* with a hyphen. Example: "my-service.example.com.", "internal."
*
* @var string
*/
public $dnsSuffix;
/**
* Required. The hostname (the first label of the FQDN) to use for the DNS
* record. This should be a valid DNS label as per RFC 1035. Generally, this
* means the hostname can contain letters, digits, and hyphens, and must not
* start or end with a hyphen. Example: "my-instance", "db-1"
*
* @var string
*/
public $hostname;
/**
* Optional. The Time To Live for the DNS record, in seconds. If not provided,
* a default of 30 seconds will be used.
*
* @var string
*/
public $ttl;
/**
* Required. The DNS suffix to use for the DNS record. Must end with a dot.
* This should be a valid DNS domain name as per RFC 1035. Each label (between
* dots) can contain letters, digits, and hyphens, and must not start or end
* with a hyphen. Example: "my-service.example.com.", "internal."
*
* @param string $dnsSuffix
*/
public function setDnsSuffix($dnsSuffix)
{
$this->dnsSuffix = $dnsSuffix;
}
/**
* @return string
*/
public function getDnsSuffix()
{
return $this->dnsSuffix;
}
/**
* Required. The hostname (the first label of the FQDN) to use for the DNS
* record. This should be a valid DNS label as per RFC 1035. Generally, this
* means the hostname can contain letters, digits, and hyphens, and must not
* start or end with a hyphen. Example: "my-instance", "db-1"
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Optional. The Time To Live for the DNS record, in seconds. If not provided,
* a default of 30 seconds will be used.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomatedDnsCreationSpec::class, 'Google_Service_Networkconnectivity_AutomatedDnsCreationSpec');
@@ -0,0 +1,535 @@
<?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\Networkconnectivity;
class AutomatedDnsRecord extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const CREATION_MODE_CREATION_MODE_UNSPECIFIED = 'CREATION_MODE_UNSPECIFIED';
/**
* The record was created through the AutomatedDnsRecord CCFE consumer API.
*/
public const CREATION_MODE_CONSUMER_API = 'CONSUMER_API';
/**
* The record was created by a ServiceConnectionMap. Its lifecycle is managed
* by that ServiceConnectionMap.
*/
public const CREATION_MODE_SERVICE_CONNECTION_MAP = 'SERVICE_CONNECTION_MAP';
/**
* Default value. This value is unused.
*/
public const RECORD_TYPE_RECORD_TYPE_UNSPECIFIED = 'RECORD_TYPE_UNSPECIFIED';
/**
* Represents an A record.
*/
public const RECORD_TYPE_A = 'A';
/**
* Represents an AAAA record.
*/
public const RECORD_TYPE_AAAA = 'AAAA';
/**
* Represents a TXT record.
*/
public const RECORD_TYPE_TXT = 'TXT';
/**
* Represents a CNAME record.
*/
public const RECORD_TYPE_CNAME = 'CNAME';
/**
* Default value. This value is unused.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The AutomatedDnsRecord has been successfully programmed.
*/
public const STATE_PROGRAMMED = 'PROGRAMMED';
/**
* A non-recoverable error occurred while attempting to deprogram the DNS
* record from Cloud DNS during deletion.
*/
public const STATE_FAILED_DEPROGRAMMING = 'FAILED_DEPROGRAMMING';
/**
* The AutomatedDnsRecord is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The AutomatedDnsRecord is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Required. Immutable. The full resource path of the consumer network this
* AutomatedDnsRecord is visible to. Example:
* "projects/{projectNumOrId}/global/networks/{networkName}".
*
* @var string
*/
public $consumerNetwork;
/**
* Output only. The timestamp of when the record was created.
*
* @var string
*/
public $createTime;
/**
* Required. Immutable. The creation mode of the AutomatedDnsRecord. This
* field is immutable.
*
* @var string
*/
public $creationMode;
protected $currentConfigType = Config::class;
protected $currentConfigDataType = '';
/**
* A human-readable description of the record.
*
* @var string
*/
public $description;
/**
* Required. Immutable. The dns suffix for this record to use in longest-
* suffix matching. Requires a trailing dot. Example: "example.com."
*
* @var string
*/
public $dnsSuffix;
/**
* Output only. DnsZone is the DNS zone managed by automation. Format:
* projects/{project}/managedZones/{managedZone}
*
* @var string
*/
public $dnsZone;
/**
* Optional. The etag is computed by the server, 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;
/**
* Output only. The FQDN created by combining the hostname and dns suffix.
* Should include a trailing dot.
*
* @var string
*/
public $fqdn;
/**
* Required. Immutable. The hostname for the DNS record. This value will be
* prepended to the `dns_suffix` to create the full domain name (FQDN) for the
* record. For example, if `hostname` is "corp.db" and `dns_suffix` is
* "example.com.", the resulting record will be "corp.db.example.com.". Should
* not include a trailing dot.
*
* @var string
*/
public $hostname;
/**
* Optional. User-defined labels.
*
* @var string[]
*/
public $labels;
/**
* Immutable. Identifier. The name of an AutomatedDnsRecord. Format: projects/
* {project}/locations/{location}/automatedDnsRecords/{automated_dns_record}
* See: https://google.aip.dev/122#fields-representing-resource-names
*
* @var string
*/
public $name;
protected $originalConfigType = Config::class;
protected $originalConfigDataType = '';
/**
* Required. Immutable. The identifier of a supported record type.
*
* @var string
*/
public $recordType;
/**
* Required. Immutable. The service class identifier which authorizes this
* AutomatedDnsRecord. Any API calls targeting this AutomatedDnsRecord must
* have `networkconnectivity.serviceclasses.use` IAM permission for the
* provided service class.
*
* @var string
*/
public $serviceClass;
/**
* Output only. The current operational state of this AutomatedDnsRecord as
* managed by Service Connectivity Automation.
*
* @var string
*/
public $state;
/**
* Output only. A human-readable message providing more context about the
* current state, such as an error description if the state is
* `FAILED_DEPROGRAMMING`.
*
* @var string
*/
public $stateDetails;
/**
* Output only. The timestamp of when the record was updated.
*
* @var string
*/
public $updateTime;
/**
* Required. Immutable. The full resource path of the consumer network this
* AutomatedDnsRecord is visible to. Example:
* "projects/{projectNumOrId}/global/networks/{networkName}".
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* Output only. The timestamp of when the record was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Required. Immutable. The creation mode of the AutomatedDnsRecord. This
* field is immutable.
*
* Accepted values: CREATION_MODE_UNSPECIFIED, CONSUMER_API,
* SERVICE_CONNECTION_MAP
*
* @param self::CREATION_MODE_* $creationMode
*/
public function setCreationMode($creationMode)
{
$this->creationMode = $creationMode;
}
/**
* @return self::CREATION_MODE_*
*/
public function getCreationMode()
{
return $this->creationMode;
}
/**
* Output only. The current settings for this record as identified by
* (`hostname`, `dns_suffix`, `type`) in Cloud DNS. The `current_config` field
* reflects the actual settings of the DNS record in Cloud DNS based on the
* `hostname`, `dns_suffix`, and `type`. * **Absence:** If `current_config` is
* unset, it means a DNS record with the specified `hostname`, `dns_suffix`,
* and `type` does not currently exist in Cloud DNS. This could be because the
* `AutomatedDnsRecord` has never been successfully programmed, has been
* deleted, or there was an error during provisioning. * **Presence:** If
* `current_config` is present: * It can be different from the
* `original_config`. This can happen due to several reasons: * Out-of-band
* changes: A consumer might have directly modified the DNS record in Cloud
* DNS. * `OVERWRITE` operations from other `AutomatedDnsRecord` resources:
* Another `AutomatedDnsRecord` with the same identifying attributes
* (`hostname`, `dns_suffix`, `type`) but a different configuration might have
* overwritten the record using `insert_mode: OVERWRITE`. Therefore, the
* presence of `current_config` indicates that a corresponding DNS record
* exists, but its values (TTL and RRData) might not always align with the
* `original_config` of the AutomatedDnsRecord.
*
* @param Config $currentConfig
*/
public function setCurrentConfig(Config $currentConfig)
{
$this->currentConfig = $currentConfig;
}
/**
* @return Config
*/
public function getCurrentConfig()
{
return $this->currentConfig;
}
/**
* A human-readable description of the record.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Immutable. The dns suffix for this record to use in longest-
* suffix matching. Requires a trailing dot. Example: "example.com."
*
* @param string $dnsSuffix
*/
public function setDnsSuffix($dnsSuffix)
{
$this->dnsSuffix = $dnsSuffix;
}
/**
* @return string
*/
public function getDnsSuffix()
{
return $this->dnsSuffix;
}
/**
* Output only. DnsZone is the DNS zone managed by automation. Format:
* projects/{project}/managedZones/{managedZone}
*
* @param string $dnsZone
*/
public function setDnsZone($dnsZone)
{
$this->dnsZone = $dnsZone;
}
/**
* @return string
*/
public function getDnsZone()
{
return $this->dnsZone;
}
/**
* Optional. The etag is computed by the server, 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;
}
/**
* Output only. The FQDN created by combining the hostname and dns suffix.
* Should include a trailing dot.
*
* @param string $fqdn
*/
public function setFqdn($fqdn)
{
$this->fqdn = $fqdn;
}
/**
* @return string
*/
public function getFqdn()
{
return $this->fqdn;
}
/**
* Required. Immutable. The hostname for the DNS record. This value will be
* prepended to the `dns_suffix` to create the full domain name (FQDN) for the
* record. For example, if `hostname` is "corp.db" and `dns_suffix` is
* "example.com.", the resulting record will be "corp.db.example.com.". Should
* not include a trailing dot.
*
* @param string $hostname
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* Optional. User-defined labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Immutable. Identifier. The name of an AutomatedDnsRecord. Format: projects/
* {project}/locations/{location}/automatedDnsRecords/{automated_dns_record}
* See: https://google.aip.dev/122#fields-representing-resource-names
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. The configuration settings used to create this DNS
* record. These settings define the desired state of the record as specified
* by the producer.
*
* @param Config $originalConfig
*/
public function setOriginalConfig(Config $originalConfig)
{
$this->originalConfig = $originalConfig;
}
/**
* @return Config
*/
public function getOriginalConfig()
{
return $this->originalConfig;
}
/**
* Required. Immutable. The identifier of a supported record type.
*
* Accepted values: RECORD_TYPE_UNSPECIFIED, A, AAAA, TXT, CNAME
*
* @param self::RECORD_TYPE_* $recordType
*/
public function setRecordType($recordType)
{
$this->recordType = $recordType;
}
/**
* @return self::RECORD_TYPE_*
*/
public function getRecordType()
{
return $this->recordType;
}
/**
* Required. Immutable. The service class identifier which authorizes this
* AutomatedDnsRecord. Any API calls targeting this AutomatedDnsRecord must
* have `networkconnectivity.serviceclasses.use` IAM permission for the
* provided service class.
*
* @param string $serviceClass
*/
public function setServiceClass($serviceClass)
{
$this->serviceClass = $serviceClass;
}
/**
* @return string
*/
public function getServiceClass()
{
return $this->serviceClass;
}
/**
* Output only. The current operational state of this AutomatedDnsRecord as
* managed by Service Connectivity Automation.
*
* Accepted values: STATE_UNSPECIFIED, PROGRAMMED, FAILED_DEPROGRAMMING,
* CREATING, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A human-readable message providing more context about the
* current state, such as an error description if the state is
* `FAILED_DEPROGRAMMING`.
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
/**
* Output only. The timestamp of when the record was updated.
*
* @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(AutomatedDnsRecord::class, 'Google_Service_Networkconnectivity_AutomatedDnsRecord');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class BillingView extends \Google\Collection
{
protected $collection_key = 'reportRequests';
protected $reportRequestsType = ReportRequest::class;
protected $reportRequestsDataType = 'array';
/**
* @param ReportRequest[]
*/
public function setReportRequests($reportRequests)
{
$this->reportRequests = $reportRequests;
}
/**
* @return ReportRequest[]
*/
public function getReportRequests()
{
return $this->reportRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingView::class, 'Google_Service_Networkconnectivity_BillingView');
@@ -0,0 +1,216 @@
<?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\Networkconnectivity;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Networkconnectivity_Binding');
@@ -0,0 +1,131 @@
<?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\Networkconnectivity;
class CheckConsumerConfigRequest extends \Google\Model
{
/**
* Default value. We will use IPv4 or IPv6 depending on the IP version of
* first available subnetwork.
*/
public const REQUESTED_IP_VERSION_IP_VERSION_UNSPECIFIED = 'IP_VERSION_UNSPECIFIED';
/**
* Will use IPv4 only.
*/
public const REQUESTED_IP_VERSION_IPV4 = 'IPV4';
/**
* Will use IPv6 only.
*/
public const REQUESTED_IP_VERSION_IPV6 = 'IPV6';
/**
* Required. Full resource name of the consumer network. Example: -
* projects/{project}/global/networks/{network}.
*
* @var string
*/
public $consumerNetwork;
/**
* The project number or ID where the PSC endpoint is to be created.
*
* @var string
*/
public $endpointProject;
/**
* The requested IP Version
*
* @var string
*/
public $requestedIpVersion;
/**
* Required. The service class identifier of the producer.
*
* @var string
*/
public $serviceClass;
/**
* Required. Full resource name of the consumer network. Example: -
* projects/{project}/global/networks/{network}.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* The project number or ID where the PSC endpoint is to be created.
*
* @param string $endpointProject
*/
public function setEndpointProject($endpointProject)
{
$this->endpointProject = $endpointProject;
}
/**
* @return string
*/
public function getEndpointProject()
{
return $this->endpointProject;
}
/**
* The requested IP Version
*
* Accepted values: IP_VERSION_UNSPECIFIED, IPV4, IPV6
*
* @param self::REQUESTED_IP_VERSION_* $requestedIpVersion
*/
public function setRequestedIpVersion($requestedIpVersion)
{
$this->requestedIpVersion = $requestedIpVersion;
}
/**
* @return self::REQUESTED_IP_VERSION_*
*/
public function getRequestedIpVersion()
{
return $this->requestedIpVersion;
}
/**
* Required. The service class identifier of the producer.
*
* @param string $serviceClass
*/
public function setServiceClass($serviceClass)
{
$this->serviceClass = $serviceClass;
}
/**
* @return string
*/
public function getServiceClass()
{
return $this->serviceClass;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckConsumerConfigRequest::class, 'Google_Service_Networkconnectivity_CheckConsumerConfigRequest');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class CheckConsumerConfigResponse extends \Google\Collection
{
protected $collection_key = 'errors';
/**
* List of validation errors. If the list is empty, the consumer config is
* valid.
*
* @var string[]
*/
public $errors;
/**
* List of validation errors. If the list is empty, the consumer config is
* valid.
*
* @param string[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return string[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckConsumerConfigResponse::class, 'Google_Service_Networkconnectivity_CheckConsumerConfigResponse');
@@ -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\Networkconnectivity;
class Config extends \Google\Collection
{
protected $collection_key = 'rrdatas';
/**
* Required. The list of resource record data strings. The content and format
* of these strings depend on the AutomatedDnsRecord.type. For many common
* record types, this list may contain multiple strings. As defined in RFC
* 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. Examples: A
* record: ["192.0.2.1"] or ["192.0.2.1", "192.0.2.2"] TXT record: ["This is a
* text record"] CNAME record: ["target.example.com."] AAAA record: ["::1"] or
* ["2001:0db8:85a3:0000:0000:8a2e:0370:7334",
* "2001:0db8:85a3:0000:0000:8a2e:0370:7335"]
*
* @var string[]
*/
public $rrdatas;
/**
* Required. Number of seconds that this DNS record can be cached by
* resolvers.
*
* @var string
*/
public $ttl;
/**
* Required. The list of resource record data strings. The content and format
* of these strings depend on the AutomatedDnsRecord.type. For many common
* record types, this list may contain multiple strings. As defined in RFC
* 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. Examples: A
* record: ["192.0.2.1"] or ["192.0.2.1", "192.0.2.2"] TXT record: ["This is a
* text record"] CNAME record: ["target.example.com."] AAAA record: ["::1"] or
* ["2001:0db8:85a3:0000:0000:8a2e:0370:7334",
* "2001:0db8:85a3:0000:0000:8a2e:0370:7335"]
*
* @param string[] $rrdatas
*/
public function setRrdatas($rrdatas)
{
$this->rrdatas = $rrdatas;
}
/**
* @return string[]
*/
public function getRrdatas()
{
return $this->rrdatas;
}
/**
* Required. Number of seconds that this DNS record can be cached by
* resolvers.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Config::class, 'Google_Service_Networkconnectivity_Config');
@@ -0,0 +1,293 @@
<?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\Networkconnectivity;
class ConsumerPscConfig extends \Google\Model
{
/**
* Default value. We will use IPv4 or IPv6 depending on the IP version of
* first available subnetwork.
*/
public const IP_VERSION_IP_VERSION_UNSPECIFIED = 'IP_VERSION_UNSPECIFIED';
/**
* Will use IPv4 only.
*/
public const IP_VERSION_IPV4 = 'IPV4';
/**
* Will use IPv6 only.
*/
public const IP_VERSION_IPV6 = 'IPV6';
/**
* Default state, when Connection Map is created initially.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Set when policy and map configuration is valid, and their matching can lead
* to allowing creation of PSC Connections subject to other constraints like
* connections limit.
*/
public const STATE_VALID = 'VALID';
/**
* No Service Connection Policy found for this network and Service Class
*/
public const STATE_CONNECTION_POLICY_MISSING = 'CONNECTION_POLICY_MISSING';
/**
* Service Connection Policy limit reached for this network and Service Class
*/
public const STATE_POLICY_LIMIT_REACHED = 'POLICY_LIMIT_REACHED';
/**
* The consumer instance project is not in
* AllowedGoogleProducersResourceHierarchyLevels of the matching
* ServiceConnectionPolicy.
*/
public const STATE_CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED = 'CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED';
/**
* Required. The project ID or project number of the consumer project. This
* project is the one that the consumer uses to interact with the producer
* instance. From the perspective of a consumer who's created a producer
* instance, this is the project of the producer instance. Format: 'projects/'
* Eg. 'projects/consumer-project' or 'projects/1234'
*
* @var string
*/
public $consumerInstanceProject;
/**
* This is used in PSC consumer ForwardingRule to control whether the PSC
* endpoint can be accessed from another region.
*
* @var bool
*/
public $disableGlobalAccess;
/**
* The requested IP version for the PSC connection.
*
* @var string
*/
public $ipVersion;
/**
* The resource path of the consumer network where PSC connections are allowed
* to be created in. Note, this network does not need be in the
* ConsumerPscConfig.project in the case of SharedVPC. Example:
* projects/{projectNumOrId}/global/networks/{networkId}.
*
* @var string
*/
public $network;
/**
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
* identifier for the producer instance.
*
* @deprecated
* @var string
*/
public $producerInstanceId;
/**
* Immutable. An immutable map for the producer instance metadata.
*
* @var string[]
*/
public $producerInstanceMetadata;
/**
* The consumer project where PSC connections are allowed to be created in.
*
* @var string
*/
public $project;
/**
* Optional. A map to store mapping between customer vip and target service
* attachment. This field can be used to specify a static IP address for a PSC
* connection.
*
* @var string[]
*/
public $serviceAttachmentIpAddressMap;
/**
* Output only. Overall state of PSC Connections management for this consumer
* psc config.
*
* @var string
*/
public $state;
/**
* Required. The project ID or project number of the consumer project. This
* project is the one that the consumer uses to interact with the producer
* instance. From the perspective of a consumer who's created a producer
* instance, this is the project of the producer instance. Format: 'projects/'
* Eg. 'projects/consumer-project' or 'projects/1234'
*
* @param string $consumerInstanceProject
*/
public function setConsumerInstanceProject($consumerInstanceProject)
{
$this->consumerInstanceProject = $consumerInstanceProject;
}
/**
* @return string
*/
public function getConsumerInstanceProject()
{
return $this->consumerInstanceProject;
}
/**
* This is used in PSC consumer ForwardingRule to control whether the PSC
* endpoint can be accessed from another region.
*
* @param bool $disableGlobalAccess
*/
public function setDisableGlobalAccess($disableGlobalAccess)
{
$this->disableGlobalAccess = $disableGlobalAccess;
}
/**
* @return bool
*/
public function getDisableGlobalAccess()
{
return $this->disableGlobalAccess;
}
/**
* The requested IP version for the PSC connection.
*
* Accepted values: IP_VERSION_UNSPECIFIED, IPV4, IPV6
*
* @param self::IP_VERSION_* $ipVersion
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return self::IP_VERSION_*
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* The resource path of the consumer network where PSC connections are allowed
* to be created in. Note, this network does not need be in the
* ConsumerPscConfig.project in the case of SharedVPC. Example:
* projects/{projectNumOrId}/global/networks/{networkId}.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
* identifier for the producer instance.
*
* @deprecated
* @param string $producerInstanceId
*/
public function setProducerInstanceId($producerInstanceId)
{
$this->producerInstanceId = $producerInstanceId;
}
/**
* @deprecated
* @return string
*/
public function getProducerInstanceId()
{
return $this->producerInstanceId;
}
/**
* Immutable. An immutable map for the producer instance metadata.
*
* @param string[] $producerInstanceMetadata
*/
public function setProducerInstanceMetadata($producerInstanceMetadata)
{
$this->producerInstanceMetadata = $producerInstanceMetadata;
}
/**
* @return string[]
*/
public function getProducerInstanceMetadata()
{
return $this->producerInstanceMetadata;
}
/**
* The consumer project where PSC connections are allowed to be created in.
*
* @param string $project
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* Optional. A map to store mapping between customer vip and target service
* attachment. This field can be used to specify a static IP address for a PSC
* connection.
*
* @param string[] $serviceAttachmentIpAddressMap
*/
public function setServiceAttachmentIpAddressMap($serviceAttachmentIpAddressMap)
{
$this->serviceAttachmentIpAddressMap = $serviceAttachmentIpAddressMap;
}
/**
* @return string[]
*/
public function getServiceAttachmentIpAddressMap()
{
return $this->serviceAttachmentIpAddressMap;
}
/**
* Output only. Overall state of PSC Connections management for this consumer
* psc config.
*
* Accepted values: STATE_UNSPECIFIED, VALID, CONNECTION_POLICY_MISSING,
* POLICY_LIMIT_REACHED, CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED
*
* @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(ConsumerPscConfig::class, 'Google_Service_Networkconnectivity_ConsumerPscConfig');
@@ -0,0 +1,462 @@
<?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\Networkconnectivity;
class ConsumerPscConnection extends \Google\Model
{
/**
* An invalid error type as the default case.
*/
public const ERROR_TYPE_CONNECTION_ERROR_TYPE_UNSPECIFIED = 'CONNECTION_ERROR_TYPE_UNSPECIFIED';
/**
* The error is due to Service Automation system internal.
*/
public const ERROR_TYPE_ERROR_INTERNAL = 'ERROR_INTERNAL';
/**
* The error is due to the setup on consumer side.
*/
public const ERROR_TYPE_ERROR_CONSUMER_SIDE = 'ERROR_CONSUMER_SIDE';
/**
* The error is due to the setup on producer side.
*/
public const ERROR_TYPE_ERROR_PRODUCER_SIDE = 'ERROR_PRODUCER_SIDE';
/**
* Default value. We will use IPv4 or IPv6 depending on the IP version of
* first available subnetwork.
*/
public const IP_VERSION_IP_VERSION_UNSPECIFIED = 'IP_VERSION_UNSPECIFIED';
/**
* Will use IPv4 only.
*/
public const IP_VERSION_IPV4 = 'IPV4';
/**
* Will use IPv6 only.
*/
public const IP_VERSION_IPV6 = 'IPV6';
/**
* An invalid state as the default case.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The connection has been created successfully. However, for the up-to-date
* connection status, please use the service attachment's
* "ConnectedEndpoint.status" as the source of truth.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The connection is not functional since some resources on the connection
* fail to be created.
*/
public const STATE_FAILED = 'FAILED';
/**
* The connection is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The connection is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The connection is being repaired to complete creation.
*/
public const STATE_CREATE_REPAIRING = 'CREATE_REPAIRING';
/**
* The connection is being repaired to complete deletion.
*/
public const STATE_DELETE_REPAIRING = 'DELETE_REPAIRING';
protected $dnsAutomationStatusType = DnsAutomationStatus::class;
protected $dnsAutomationStatusDataType = '';
protected $errorDataType = '';
protected $errorInfoType = GoogleRpcErrorInfo::class;
protected $errorInfoDataType = '';
/**
* The error type indicates whether the error is consumer facing, producer
* facing or system internal.
*
* @deprecated
* @var string
*/
public $errorType;
/**
* The URI of the consumer forwarding rule created. Example:
* projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.
*
* @var string
*/
public $forwardingRule;
/**
* The last Compute Engine operation to setup PSC connection.
*
* @var string
*/
public $gceOperation;
/**
* The IP literal allocated on the consumer network for the PSC forwarding
* rule that is created to connect to the producer service attachment in this
* service connection map.
*
* @var string
*/
public $ip;
/**
* The requested IP version for the PSC connection.
*
* @var string
*/
public $ipVersion;
/**
* The consumer network whose PSC forwarding rule is connected to the service
* attachments in this service connection map. Note that the network could be
* on a different project (shared VPC).
*
* @var string
*/
public $network;
/**
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
* identifier for the producer instance.
*
* @deprecated
* @var string
*/
public $producerInstanceId;
/**
* Immutable. An immutable map for the producer instance metadata.
*
* @var string[]
*/
public $producerInstanceMetadata;
/**
* The consumer project whose PSC forwarding rule is connected to the service
* attachments in this service connection map.
*
* @var string
*/
public $project;
/**
* The PSC connection id of the PSC forwarding rule connected to the service
* attachments in this service connection map.
*
* @var string
*/
public $pscConnectionId;
/**
* Output only. The URI of the selected subnetwork selected to allocate IP
* address for this connection.
*
* @var string
*/
public $selectedSubnetwork;
/**
* The URI of a service attachment which is the target of the PSC connection.
*
* @var string
*/
public $serviceAttachmentUri;
/**
* The state of the PSC connection.
*
* @var string
*/
public $state;
/**
* Output only. The status of DNS automation for this PSC connection.
*
* @param DnsAutomationStatus $dnsAutomationStatus
*/
public function setDnsAutomationStatus(DnsAutomationStatus $dnsAutomationStatus)
{
$this->dnsAutomationStatus = $dnsAutomationStatus;
}
/**
* @return DnsAutomationStatus
*/
public function getDnsAutomationStatus()
{
return $this->dnsAutomationStatus;
}
/**
* The most recent error during operating this connection.
*
* @deprecated
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @deprecated
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Output only. The error info for the latest error during operating this
* connection.
*
* @param GoogleRpcErrorInfo $errorInfo
*/
public function setErrorInfo(GoogleRpcErrorInfo $errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return GoogleRpcErrorInfo
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* The error type indicates whether the error is consumer facing, producer
* facing or system internal.
*
* Accepted values: CONNECTION_ERROR_TYPE_UNSPECIFIED, ERROR_INTERNAL,
* ERROR_CONSUMER_SIDE, ERROR_PRODUCER_SIDE
*
* @deprecated
* @param self::ERROR_TYPE_* $errorType
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @deprecated
* @return self::ERROR_TYPE_*
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* The URI of the consumer forwarding rule created. Example:
* projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.
*
* @param string $forwardingRule
*/
public function setForwardingRule($forwardingRule)
{
$this->forwardingRule = $forwardingRule;
}
/**
* @return string
*/
public function getForwardingRule()
{
return $this->forwardingRule;
}
/**
* The last Compute Engine operation to setup PSC connection.
*
* @param string $gceOperation
*/
public function setGceOperation($gceOperation)
{
$this->gceOperation = $gceOperation;
}
/**
* @return string
*/
public function getGceOperation()
{
return $this->gceOperation;
}
/**
* The IP literal allocated on the consumer network for the PSC forwarding
* rule that is created to connect to the producer service attachment in this
* service connection map.
*
* @param string $ip
*/
public function setIp($ip)
{
$this->ip = $ip;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
/**
* The requested IP version for the PSC connection.
*
* Accepted values: IP_VERSION_UNSPECIFIED, IPV4, IPV6
*
* @param self::IP_VERSION_* $ipVersion
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return self::IP_VERSION_*
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* The consumer network whose PSC forwarding rule is connected to the service
* attachments in this service connection map. Note that the network could be
* on a different project (shared VPC).
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
* identifier for the producer instance.
*
* @deprecated
* @param string $producerInstanceId
*/
public function setProducerInstanceId($producerInstanceId)
{
$this->producerInstanceId = $producerInstanceId;
}
/**
* @deprecated
* @return string
*/
public function getProducerInstanceId()
{
return $this->producerInstanceId;
}
/**
* Immutable. An immutable map for the producer instance metadata.
*
* @param string[] $producerInstanceMetadata
*/
public function setProducerInstanceMetadata($producerInstanceMetadata)
{
$this->producerInstanceMetadata = $producerInstanceMetadata;
}
/**
* @return string[]
*/
public function getProducerInstanceMetadata()
{
return $this->producerInstanceMetadata;
}
/**
* The consumer project whose PSC forwarding rule is connected to the service
* attachments in this service connection map.
*
* @param string $project
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* The PSC connection id of the PSC forwarding rule connected to the service
* attachments in this service connection map.
*
* @param string $pscConnectionId
*/
public function setPscConnectionId($pscConnectionId)
{
$this->pscConnectionId = $pscConnectionId;
}
/**
* @return string
*/
public function getPscConnectionId()
{
return $this->pscConnectionId;
}
/**
* Output only. The URI of the selected subnetwork selected to allocate IP
* address for this connection.
*
* @param string $selectedSubnetwork
*/
public function setSelectedSubnetwork($selectedSubnetwork)
{
$this->selectedSubnetwork = $selectedSubnetwork;
}
/**
* @return string
*/
public function getSelectedSubnetwork()
{
return $this->selectedSubnetwork;
}
/**
* The URI of a service attachment which is the target of the PSC connection.
*
* @param string $serviceAttachmentUri
*/
public function setServiceAttachmentUri($serviceAttachmentUri)
{
$this->serviceAttachmentUri = $serviceAttachmentUri;
}
/**
* @return string
*/
public function getServiceAttachmentUri()
{
return $this->serviceAttachmentUri;
}
/**
* The state of the PSC connection.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, FAILED, CREATING, DELETING,
* CREATE_REPAIRING, DELETE_REPAIRING
*
* @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(ConsumerPscConnection::class, 'Google_Service_Networkconnectivity_ConsumerPscConnection');
@@ -0,0 +1,263 @@
<?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\Networkconnectivity;
class Destination extends \Google\Collection
{
protected $collection_key = 'endpoints';
/**
* Output only. Time when the `Destination` resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A description of this resource.
*
* @var string
*/
public $description;
protected $endpointsType = DestinationEndpoint::class;
protected $endpointsDataType = 'array';
/**
* The etag is computed by the server, and might be sent with update and
* delete requests so that the client has an up-to-date value before
* proceeding.
*
* @var string
*/
public $etag;
/**
* Required. Immutable. The IP prefix that represents your workload on another
* CSP.
*
* @var string
*/
public $ipPrefix;
/**
* Optional. User-defined labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The name of the `Destination` resource. Format: `projects/{proj
* ect}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_tr
* ansfer_config}/destinations/{destination}`.
*
* @var string
*/
public $name;
protected $stateTimelineType = StateTimeline::class;
protected $stateTimelineDataType = '';
/**
* Output only. The Google-generated unique ID for the `Destination` resource.
* This value is unique across all `Destination` resources. If a resource is
* deleted and another with the same name is created, the new resource is
* assigned a different and unique ID.
*
* @var string
*/
public $uid;
/**
* Output only. Time when the `Destination` resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. Time when the `Destination` resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A description of this resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Unordered list. The list of `DestinationEndpoint` resources
* configured for the IP prefix.
*
* @param DestinationEndpoint[] $endpoints
*/
public function setEndpoints($endpoints)
{
$this->endpoints = $endpoints;
}
/**
* @return DestinationEndpoint[]
*/
public function getEndpoints()
{
return $this->endpoints;
}
/**
* The etag is computed by the server, and might be sent with update and
* delete requests so that 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;
}
/**
* Required. Immutable. The IP prefix that represents your workload on another
* CSP.
*
* @param string $ipPrefix
*/
public function setIpPrefix($ipPrefix)
{
$this->ipPrefix = $ipPrefix;
}
/**
* @return string
*/
public function getIpPrefix()
{
return $this->ipPrefix;
}
/**
* Optional. User-defined labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The name of the `Destination` resource. Format: `projects/{proj
* ect}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_tr
* ansfer_config}/destinations/{destination}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The timeline of the expected `Destination` states or the
* current rest state. If a state change is expected, the value is `ADDING`,
* `DELETING` or `SUSPENDING`, depending on the action specified. Example:
* "state_timeline": { "states": [ { // The time when the `Destination`
* resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z",
* "state": "ADDING" }, { // The time when the `Destination` resource will be
* suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" }
* ] }
*
* @param StateTimeline $stateTimeline
*/
public function setStateTimeline(StateTimeline $stateTimeline)
{
$this->stateTimeline = $stateTimeline;
}
/**
* @return StateTimeline
*/
public function getStateTimeline()
{
return $this->stateTimeline;
}
/**
* Output only. The Google-generated unique ID for the `Destination` resource.
* This value is unique across all `Destination` resources. If a resource is
* deleted and another with the same name is created, the new resource is
* assigned a different and unique ID.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Time when the `Destination` resource was updated.
*
* @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(Destination::class, 'Google_Service_Networkconnectivity_Destination');
@@ -0,0 +1,128 @@
<?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\Networkconnectivity;
class DestinationEndpoint extends \Google\Model
{
/**
* An invalid state, which is the default case.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The `DestinationEndpoint` resource is valid.
*/
public const STATE_VALID = 'VALID';
/**
* The `DestinationEndpoint` resource is invalid.
*/
public const STATE_INVALID = 'INVALID';
/**
* Required. The ASN of the remote IP prefix.
*
* @var string
*/
public $asn;
/**
* Required. The CSP of the remote IP prefix.
*
* @var string
*/
public $csp;
/**
* Output only. The state of the `DestinationEndpoint` resource.
*
* @var string
*/
public $state;
/**
* Output only. Time when the `DestinationEndpoint` resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Required. The ASN of the remote IP prefix.
*
* @param string $asn
*/
public function setAsn($asn)
{
$this->asn = $asn;
}
/**
* @return string
*/
public function getAsn()
{
return $this->asn;
}
/**
* Required. The CSP of the remote IP prefix.
*
* @param string $csp
*/
public function setCsp($csp)
{
$this->csp = $csp;
}
/**
* @return string
*/
public function getCsp()
{
return $this->csp;
}
/**
* Output only. The state of the `DestinationEndpoint` resource.
*
* Accepted values: STATE_UNSPECIFIED, VALID, INVALID
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Time when the `DestinationEndpoint` resource was updated.
*
* @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(DestinationEndpoint::class, 'Google_Service_Networkconnectivity_DestinationEndpoint');
@@ -0,0 +1,145 @@
<?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\Networkconnectivity;
class Distribution extends \Google\Collection
{
protected $collection_key = 'exemplars';
public $bucketCounts;
public $count;
protected $exemplarsType = Exemplar::class;
protected $exemplarsDataType = 'array';
protected $explicitBucketsType = ExplicitBuckets::class;
protected $explicitBucketsDataType = '';
protected $exponentialBucketsType = ExponentialBuckets::class;
protected $exponentialBucketsDataType = '';
protected $linearBucketsType = LinearBuckets::class;
protected $linearBucketsDataType = '';
public $maximum;
public $mean;
public $minimum;
public $sumOfSquaredDeviation;
public function setBucketCounts($bucketCounts)
{
$this->bucketCounts = $bucketCounts;
}
public function getBucketCounts()
{
return $this->bucketCounts;
}
public function setCount($count)
{
$this->count = $count;
}
public function getCount()
{
return $this->count;
}
/**
* @param Exemplar[]
*/
public function setExemplars($exemplars)
{
$this->exemplars = $exemplars;
}
/**
* @return Exemplar[]
*/
public function getExemplars()
{
return $this->exemplars;
}
/**
* @param ExplicitBuckets
*/
public function setExplicitBuckets(ExplicitBuckets $explicitBuckets)
{
$this->explicitBuckets = $explicitBuckets;
}
/**
* @return ExplicitBuckets
*/
public function getExplicitBuckets()
{
return $this->explicitBuckets;
}
/**
* @param ExponentialBuckets
*/
public function setExponentialBuckets(ExponentialBuckets $exponentialBuckets)
{
$this->exponentialBuckets = $exponentialBuckets;
}
/**
* @return ExponentialBuckets
*/
public function getExponentialBuckets()
{
return $this->exponentialBuckets;
}
/**
* @param LinearBuckets
*/
public function setLinearBuckets(LinearBuckets $linearBuckets)
{
$this->linearBuckets = $linearBuckets;
}
/**
* @return LinearBuckets
*/
public function getLinearBuckets()
{
return $this->linearBuckets;
}
public function setMaximum($maximum)
{
$this->maximum = $maximum;
}
public function getMaximum()
{
return $this->maximum;
}
public function setMean($mean)
{
$this->mean = $mean;
}
public function getMean()
{
return $this->mean;
}
public function setMinimum($minimum)
{
$this->minimum = $minimum;
}
public function getMinimum()
{
return $this->minimum;
}
public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
{
$this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
}
public function getSumOfSquaredDeviation()
{
return $this->sumOfSquaredDeviation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Distribution::class, 'Google_Service_Networkconnectivity_Distribution');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class DnsAutomationStatus extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* DNS record creation is pending.
*/
public const STATE_PENDING_CREATE = 'PENDING_CREATE';
/**
* DNS record is active.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* DNS record deletion is pending.
*/
public const STATE_PENDING_DELETE = 'PENDING_DELETE';
/**
* DNS record creation failed.
*/
public const STATE_CREATE_FAILED = 'CREATE_FAILED';
/**
* DNS record deletion failed.
*/
public const STATE_DELETE_FAILED = 'DELETE_FAILED';
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* Output only. The fully qualified domain name of the DNS record.
*
* @var string
*/
public $fqdn;
/**
* Output only. The current state of DNS automation.
*
* @var string
*/
public $state;
/**
* Output only. The error details if the state is CREATE_FAILED or
* DELETE_FAILED.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Output only. The fully qualified domain name of the DNS record.
*
* @param string $fqdn
*/
public function setFqdn($fqdn)
{
$this->fqdn = $fqdn;
}
/**
* @return string
*/
public function getFqdn()
{
return $this->fqdn;
}
/**
* Output only. The current state of DNS automation.
*
* Accepted values: STATE_UNSPECIFIED, PENDING_CREATE, ACTIVE, PENDING_DELETE,
* CREATE_FAILED, DELETE_FAILED
*
* @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(DnsAutomationStatus::class, 'Google_Service_Networkconnectivity_DnsAutomationStatus');
@@ -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\Networkconnectivity;
class Exemplar extends \Google\Collection
{
protected $collection_key = 'attachments';
public $attachments;
public $timestamp;
public $value;
public function setAttachments($attachments)
{
$this->attachments = $attachments;
}
public function getAttachments()
{
return $this->attachments;
}
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
public function getTimestamp()
{
return $this->timestamp;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Exemplar::class, 'Google_Service_Networkconnectivity_Exemplar');
@@ -0,0 +1,36 @@
<?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\Networkconnectivity;
class ExplicitBuckets extends \Google\Collection
{
protected $collection_key = 'bounds';
public $bounds;
public function setBounds($bounds)
{
$this->bounds = $bounds;
}
public function getBounds()
{
return $this->bounds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExplicitBuckets::class, 'Google_Service_Networkconnectivity_ExplicitBuckets');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class ExponentialBuckets extends \Google\Model
{
public $growthFactor;
public $numFiniteBuckets;
public $scale;
public function setGrowthFactor($growthFactor)
{
$this->growthFactor = $growthFactor;
}
public function getGrowthFactor()
{
return $this->growthFactor;
}
public function setNumFiniteBuckets($numFiniteBuckets)
{
$this->numFiniteBuckets = $numFiniteBuckets;
}
public function getNumFiniteBuckets()
{
return $this->numFiniteBuckets;
}
public function setScale($scale)
{
$this->scale = $scale;
}
public function getScale()
{
return $this->scale;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExponentialBuckets::class, 'Google_Service_Networkconnectivity_ExponentialBuckets');
@@ -0,0 +1,122 @@
<?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\Networkconnectivity;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Networkconnectivity_Expr');
@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class Filter extends \Google\Model
{
/**
* Default value.
*/
public const PROTOCOL_VERSION_PROTOCOL_VERSION_UNSPECIFIED = 'PROTOCOL_VERSION_UNSPECIFIED';
/**
* The PBR is for IPv4 internet protocol traffic.
*/
public const PROTOCOL_VERSION_IPV4 = 'IPV4';
/**
* The PBR is for IPv6 internet protocol traffic.
*/
public const PROTOCOL_VERSION_IPV6 = 'IPV6';
/**
* Optional. The destination IP range of outgoing packets that this policy-
* based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4
* and "::/0" if protocol version is IPv6.
*
* @var string
*/
public $destRange;
/**
* Optional. The IP protocol that this policy-based route applies to. Valid
* values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
*
* @var string
*/
public $ipProtocol;
/**
* Required. Internet protocol versions this policy-based route applies to.
* IPV4 and IPV6 is supported.
*
* @var string
*/
public $protocolVersion;
/**
* Optional. The source IP range of outgoing packets that this policy-based
* route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
* "::/0" if protocol version is IPv6.
*
* @var string
*/
public $srcRange;
/**
* Optional. The destination IP range of outgoing packets that this policy-
* based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4
* and "::/0" if protocol version is IPv6.
*
* @param string $destRange
*/
public function setDestRange($destRange)
{
$this->destRange = $destRange;
}
/**
* @return string
*/
public function getDestRange()
{
return $this->destRange;
}
/**
* Optional. The IP protocol that this policy-based route applies to. Valid
* values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
*
* @param string $ipProtocol
*/
public function setIpProtocol($ipProtocol)
{
$this->ipProtocol = $ipProtocol;
}
/**
* @return string
*/
public function getIpProtocol()
{
return $this->ipProtocol;
}
/**
* Required. Internet protocol versions this policy-based route applies to.
* IPV4 and IPV6 is supported.
*
* Accepted values: PROTOCOL_VERSION_UNSPECIFIED, IPV4, IPV6
*
* @param self::PROTOCOL_VERSION_* $protocolVersion
*/
public function setProtocolVersion($protocolVersion)
{
$this->protocolVersion = $protocolVersion;
}
/**
* @return self::PROTOCOL_VERSION_*
*/
public function getProtocolVersion()
{
return $this->protocolVersion;
}
/**
* Optional. The source IP range of outgoing packets that this policy-based
* route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and
* "::/0" if protocol version is IPv6.
*
* @param string $srcRange
*/
public function setSrcRange($srcRange)
{
$this->srcRange = $srcRange;
}
/**
* @return string
*/
public function getSrcRange()
{
return $this->srcRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Filter::class, 'Google_Service_Networkconnectivity_Filter');
@@ -0,0 +1,133 @@
<?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\Networkconnectivity;
class Gateway extends \Google\Collection
{
/**
* The gateway capacity is unspecified.
*/
public const CAPACITY_GATEWAY_CAPACITY_UNSPECIFIED = 'GATEWAY_CAPACITY_UNSPECIFIED';
/**
* The gateway has 1 Gbps of aggregate processing capacity
*/
public const CAPACITY_CAPACITY_1_GBPS = 'CAPACITY_1_GBPS';
/**
* The gateway has 10 Gbps of aggregate processing capacity
*/
public const CAPACITY_CAPACITY_10_GBPS = 'CAPACITY_10_GBPS';
protected $collection_key = 'ipRangeReservations';
/**
* Optional. The aggregate processing capacity of this gateway.
*
* @var string
*/
public $capacity;
/**
* Output only. The list of Cloud Routers that are connected to this gateway.
* Should be in the form: https://www.googleapis.com/compute/v1/projects/{proj
* ect}/regions/{region}/routers/{router}
*
* @var string[]
*/
public $cloudRouters;
protected $ipRangeReservationsType = IpRangeReservation::class;
protected $ipRangeReservationsDataType = 'array';
/**
* Output only. The URI of the connected SACAttachment. Should be in the form:
* projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
*
* @var string
*/
public $sacAttachment;
/**
* Optional. The aggregate processing capacity of this gateway.
*
* Accepted values: GATEWAY_CAPACITY_UNSPECIFIED, CAPACITY_1_GBPS,
* CAPACITY_10_GBPS
*
* @param self::CAPACITY_* $capacity
*/
public function setCapacity($capacity)
{
$this->capacity = $capacity;
}
/**
* @return self::CAPACITY_*
*/
public function getCapacity()
{
return $this->capacity;
}
/**
* Output only. The list of Cloud Routers that are connected to this gateway.
* Should be in the form: https://www.googleapis.com/compute/v1/projects/{proj
* ect}/regions/{region}/routers/{router}
*
* @param string[] $cloudRouters
*/
public function setCloudRouters($cloudRouters)
{
$this->cloudRouters = $cloudRouters;
}
/**
* @return string[]
*/
public function getCloudRouters()
{
return $this->cloudRouters;
}
/**
* Optional. A list of IP ranges that are reserved for this gateway's internal
* intfrastructure.
*
* @param IpRangeReservation[] $ipRangeReservations
*/
public function setIpRangeReservations($ipRangeReservations)
{
$this->ipRangeReservations = $ipRangeReservations;
}
/**
* @return IpRangeReservation[]
*/
public function getIpRangeReservations()
{
return $this->ipRangeReservations;
}
/**
* Output only. The URI of the connected SACAttachment. Should be in the form:
* projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
*
* @param string $sacAttachment
*/
public function setSacAttachment($sacAttachment)
{
$this->sacAttachment = $sacAttachment;
}
/**
* @return string
*/
public function getSacAttachment()
{
return $this->sacAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Gateway::class, 'Google_Service_Networkconnectivity_Gateway');
@@ -0,0 +1,327 @@
<?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\Networkconnectivity;
class GatewayAdvertisedRoute extends \Google\Model
{
/**
* No recipient specified. By default routes are advertised to the hub.
*/
public const RECIPIENT_RECIPIENT_UNSPECIFIED = 'RECIPIENT_UNSPECIFIED';
/**
* Advertises a route toward the hub. Other spokes reachable from this spoke
* will receive the route.
*/
public const RECIPIENT_ADVERTISE_TO_HUB = 'ADVERTISE_TO_HUB';
/**
* No state information available
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The resource's create operation is in progress.
*/
public const STATE_CREATING = 'CREATING';
/**
* The resource is active
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resource's delete operation is in progress.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resource's accept operation is in progress.
*/
public const STATE_ACCEPTING = 'ACCEPTING';
/**
* The resource's reject operation is in progress.
*/
public const STATE_REJECTING = 'REJECTING';
/**
* The resource's update operation is in progress.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The resource is inactive.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The hub associated with this spoke resource has been deleted. This state
* applies to spoke resources only.
*/
public const STATE_OBSOLETE = 'OBSOLETE';
/**
* The resource is in an undefined state due to resource creation or deletion
* failure. You can try to delete the resource later or contact support for
* help.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. The time the gateway advertised route was created.
*
* @var string
*/
public $createTime;
/**
* An optional description of the gateway advertised route.
*
* @var string
*/
public $description;
/**
* Immutable. This route's advertised IP address range. Must be a valid CIDR-
* formatted prefix. If an IP address is provided without a subnet mask, it is
* interpreted as, for IPv4, a `/32` singular IP address range, and, for IPv6,
* `/128`.
*
* @var string
*/
public $ipRange;
/**
* Optional labels in key-value pair format. For more information about
* labels, see [Requirements for labels](https://cloud.google.com/resource-
* manager/docs/creating-managing-labels#requirements).
*
* @var string[]
*/
public $labels;
/**
* Identifier. The name of the gateway advertised route. Route names must be
* unique and use the following form: `projects/{project_number}/locations/{re
* gion}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
*
* @var string
*/
public $name;
/**
* Optional. The priority of this advertised route. You can choose a value
* from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
* priority of `100` to the ranges.
*
* @var int
*/
public $priority;
/**
* Optional. The recipient of this advertised route.
*
* @var string
*/
public $recipient;
/**
* Output only. The current lifecycle state of this gateway advertised route.
*
* @var string
*/
public $state;
/**
* Output only. The Google-generated UUID for the gateway advertised route.
* This value is unique across all gateway advertised route resources. If a
* gateway advertised route is deleted and another with the same name is
* created, the new route is assigned a different `unique_id`.
*
* @var string
*/
public $uniqueId;
/**
* Output only. The time the gateway advertised route was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The time the gateway advertised route was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* An optional description of the gateway advertised route.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Immutable. This route's advertised IP address range. Must be a valid CIDR-
* formatted prefix. If an IP address is provided without a subnet mask, it is
* interpreted as, for IPv4, a `/32` singular IP address range, and, for IPv6,
* `/128`.
*
* @param string $ipRange
*/
public function setIpRange($ipRange)
{
$this->ipRange = $ipRange;
}
/**
* @return string
*/
public function getIpRange()
{
return $this->ipRange;
}
/**
* Optional labels in key-value pair format. For more information about
* labels, see [Requirements for labels](https://cloud.google.com/resource-
* manager/docs/creating-managing-labels#requirements).
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The name of the gateway advertised route. Route names must be
* unique and use the following form: `projects/{project_number}/locations/{re
* gion}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The priority of this advertised route. You can choose a value
* from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
* priority of `100` to the ranges.
*
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* Optional. The recipient of this advertised route.
*
* Accepted values: RECIPIENT_UNSPECIFIED, ADVERTISE_TO_HUB
*
* @param self::RECIPIENT_* $recipient
*/
public function setRecipient($recipient)
{
$this->recipient = $recipient;
}
/**
* @return self::RECIPIENT_*
*/
public function getRecipient()
{
return $this->recipient;
}
/**
* Output only. The current lifecycle state of this gateway advertised route.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, ACCEPTING,
* REJECTING, UPDATING, INACTIVE, OBSOLETE, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The Google-generated UUID for the gateway advertised route.
* This value is unique across all gateway advertised route resources. If a
* gateway advertised route is deleted and another with the same name is
* created, the new route is assigned a different `unique_id`.
*
* @param string $uniqueId
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
/**
* @return string
*/
public function getUniqueId()
{
return $this->uniqueId;
}
/**
* Output only. The time the gateway advertised route was last updated.
*
* @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(GatewayAdvertisedRoute::class, 'Google_Service_Networkconnectivity_GatewayAdvertisedRoute');
@@ -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\Networkconnectivity;
class GoogleLongrunningCancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningCancelOperationRequest::class, 'Google_Service_Networkconnectivity_GoogleLongrunningCancelOperationRequest');
@@ -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\Networkconnectivity;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::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 GoogleLongrunningOperation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
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(GoogleLongrunningListOperationsResponse::class, 'Google_Service_Networkconnectivity_GoogleLongrunningListOperationsResponse');
@@ -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\Networkconnectivity;
class GoogleLongrunningOperation 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 = GoogleRpcStatus::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 GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
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(GoogleLongrunningOperation::class, 'Google_Service_Networkconnectivity_GoogleLongrunningOperation');
@@ -0,0 +1,120 @@
<?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\Networkconnectivity;
class GoogleRpcErrorInfo extends \Google\Model
{
/**
* The logical grouping to which the "reason" belongs. The error domain is
* typically the registered service name of the tool or product that generates
* the error. Example: "pubsub.googleapis.com". If the error is generated by
* some common infrastructure, the error domain must be a globally unique
* value that identifies the infrastructure. For Google API infrastructure,
* the error domain is "googleapis.com".
*
* @var string
*/
public $domain;
/**
* Additional structured details about this error. Keys must match a regular
* expression of `a-z+` but should ideally be lowerCamelCase. Also, they must
* be limited to 64 characters in length. When identifying the current value
* of an exceeded limit, the units should be contained in the key, not the
* value. For example, rather than `{"instanceLimit": "100/request"}`, should
* be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds
* the number of instances that can be created in a single (batch) request.
*
* @var string[]
*/
public $metadata;
/**
* The reason of the error. This is a constant value that identifies the
* proximate cause of the error. Error reasons are unique within a particular
* domain of errors. This should be at most 63 characters and match a regular
* expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @var string
*/
public $reason;
/**
* The logical grouping to which the "reason" belongs. The error domain is
* typically the registered service name of the tool or product that generates
* the error. Example: "pubsub.googleapis.com". If the error is generated by
* some common infrastructure, the error domain must be a globally unique
* value that identifies the infrastructure. For Google API infrastructure,
* the error domain is "googleapis.com".
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Additional structured details about this error. Keys must match a regular
* expression of `a-z+` but should ideally be lowerCamelCase. Also, they must
* be limited to 64 characters in length. When identifying the current value
* of an exceeded limit, the units should be contained in the key, not the
* value. For example, rather than `{"instanceLimit": "100/request"}`, should
* be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds
* the number of instances that can be created in a single (batch) request.
*
* @param string[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The reason of the error. This is a constant value that identifies the
* proximate cause of the error. Error reasons are unique within a particular
* domain of errors. This should be at most 63 characters and match a regular
* expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcErrorInfo::class, 'Google_Service_Networkconnectivity_GoogleRpcErrorInfo');
@@ -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\Networkconnectivity;
class GoogleRpcStatus 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(GoogleRpcStatus::class, 'Google_Service_Networkconnectivity_GoogleRpcStatus');
@@ -0,0 +1,282 @@
<?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\Networkconnectivity;
class Group extends \Google\Model
{
/**
* No state information available
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The resource's create operation is in progress.
*/
public const STATE_CREATING = 'CREATING';
/**
* The resource is active
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resource's delete operation is in progress.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resource's accept operation is in progress.
*/
public const STATE_ACCEPTING = 'ACCEPTING';
/**
* The resource's reject operation is in progress.
*/
public const STATE_REJECTING = 'REJECTING';
/**
* The resource's update operation is in progress.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The resource is inactive.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The hub associated with this spoke resource has been deleted. This state
* applies to spoke resources only.
*/
public const STATE_OBSOLETE = 'OBSOLETE';
/**
* The resource is in an undefined state due to resource creation or deletion
* failure. You can try to delete the resource later or contact support for
* help.
*/
public const STATE_FAILED = 'FAILED';
protected $autoAcceptType = AutoAccept::class;
protected $autoAcceptDataType = '';
/**
* Output only. The time the group was created.
*
* @var string
*/
public $createTime;
/**
* Optional. The description of the group.
*
* @var string
*/
public $description;
/**
* Optional. Labels in key-value pair format. For more information about
* labels, see [Requirements for labels](https://cloud.google.com/resource-
* manager/docs/creating-managing-labels#requirements).
*
* @var string[]
*/
public $labels;
/**
* Immutable. The name of the group. Group names must be unique. They use the
* following form:
* `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
*
* @var string
*/
public $name;
/**
* Output only. The name of the route table that corresponds to this group.
* They use the following form: `projects/{project_number}/locations/global/hu
* bs/{hub_id}/routeTables/{route_table_id}`
*
* @var string
*/
public $routeTable;
/**
* Output only. The current lifecycle state of this group.
*
* @var string
*/
public $state;
/**
* Output only. The Google-generated UUID for the group. This value is unique
* across all group resources. If a group is deleted and another with the same
* name is created, the new route table is assigned a different unique_id.
*
* @var string
*/
public $uid;
/**
* Output only. The time the group was last updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. The auto-accept setting for this group.
*
* @param AutoAccept $autoAccept
*/
public function setAutoAccept(AutoAccept $autoAccept)
{
$this->autoAccept = $autoAccept;
}
/**
* @return AutoAccept
*/
public function getAutoAccept()
{
return $this->autoAccept;
}
/**
* Output only. The time the group was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The description of the group.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Labels in key-value pair format. For more information about
* labels, see [Requirements for labels](https://cloud.google.com/resource-
* manager/docs/creating-managing-labels#requirements).
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Immutable. The name of the group. Group names must be unique. They use the
* following form:
* `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The name of the route table that corresponds to this group.
* They use the following form: `projects/{project_number}/locations/global/hu
* bs/{hub_id}/routeTables/{route_table_id}`
*
* @param string $routeTable
*/
public function setRouteTable($routeTable)
{
$this->routeTable = $routeTable;
}
/**
* @return string
*/
public function getRouteTable()
{
return $this->routeTable;
}
/**
* Output only. The current lifecycle state of this group.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, ACCEPTING,
* REJECTING, UPDATING, INACTIVE, OBSOLETE, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The Google-generated UUID for the group. This value is unique
* across all group resources. If a group is deleted and another with the same
* name is created, the new route table is assigned a different unique_id.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The time the group was last updated.
*
* @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(Group::class, 'Google_Service_Networkconnectivity_Group');
@@ -0,0 +1,161 @@
<?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\Networkconnectivity;
class HttpRequest extends \Google\Model
{
public $cacheFillBytes;
public $cacheHit;
public $cacheLookup;
public $cacheValidatedWithOriginServer;
public $latency;
public $protocol;
public $referer;
public $remoteIp;
public $requestMethod;
public $requestSize;
public $requestUrl;
public $responseSize;
public $serverIp;
public $status;
public $userAgent;
public function setCacheFillBytes($cacheFillBytes)
{
$this->cacheFillBytes = $cacheFillBytes;
}
public function getCacheFillBytes()
{
return $this->cacheFillBytes;
}
public function setCacheHit($cacheHit)
{
$this->cacheHit = $cacheHit;
}
public function getCacheHit()
{
return $this->cacheHit;
}
public function setCacheLookup($cacheLookup)
{
$this->cacheLookup = $cacheLookup;
}
public function getCacheLookup()
{
return $this->cacheLookup;
}
public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer)
{
$this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer;
}
public function getCacheValidatedWithOriginServer()
{
return $this->cacheValidatedWithOriginServer;
}
public function setLatency($latency)
{
$this->latency = $latency;
}
public function getLatency()
{
return $this->latency;
}
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
public function getProtocol()
{
return $this->protocol;
}
public function setReferer($referer)
{
$this->referer = $referer;
}
public function getReferer()
{
return $this->referer;
}
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
public function getRemoteIp()
{
return $this->remoteIp;
}
public function setRequestMethod($requestMethod)
{
$this->requestMethod = $requestMethod;
}
public function getRequestMethod()
{
return $this->requestMethod;
}
public function setRequestSize($requestSize)
{
$this->requestSize = $requestSize;
}
public function getRequestSize()
{
return $this->requestSize;
}
public function setRequestUrl($requestUrl)
{
$this->requestUrl = $requestUrl;
}
public function getRequestUrl()
{
return $this->requestUrl;
}
public function setResponseSize($responseSize)
{
$this->responseSize = $responseSize;
}
public function getResponseSize()
{
return $this->responseSize;
}
public function setServerIp($serverIp)
{
$this->serverIp = $serverIp;
}
public function getServerIp()
{
return $this->serverIp;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
public function getUserAgent()
{
return $this->userAgent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRequest::class, 'Google_Service_Networkconnectivity_HttpRequest');
@@ -0,0 +1,424 @@
<?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\Networkconnectivity;
class Hub extends \Google\Collection
{
/**
* Policy mode is unspecified. It defaults to PRESET with preset_topology =
* MESH.
*/
public const POLICY_MODE_POLICY_MODE_UNSPECIFIED = 'POLICY_MODE_UNSPECIFIED';
/**
* Hub uses one of the preset topologies.
*/
public const POLICY_MODE_PRESET = 'PRESET';
/**
* Preset topology is unspecified. When policy_mode = PRESET, it defaults to
* MESH.
*/
public const PRESET_TOPOLOGY_PRESET_TOPOLOGY_UNSPECIFIED = 'PRESET_TOPOLOGY_UNSPECIFIED';
/**
* Mesh topology is implemented. Group `default` is automatically created. All
* spokes in the hub are added to group `default`.
*/
public const PRESET_TOPOLOGY_MESH = 'MESH';
/**
* Star topology is implemented. Two groups, `center` and `edge`, are
* automatically created along with hub creation. Spokes have to join one of
* the groups during creation.
*/
public const PRESET_TOPOLOGY_STAR = 'STAR';
/**
* Hybrid inspection has 4 groups ('non-prod', 'prod', 'services', and
* 'untrusted') that are automatically created along with hub creation.
*/
public const PRESET_TOPOLOGY_HYBRID_INSPECTION = 'HYBRID_INSPECTION';
/**
* No state information available
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The resource's create operation is in progress.
*/
public const STATE_CREATING = 'CREATING';
/**
* The resource is active
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resource's delete operation is in progress.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resource's accept operation is in progress.
*/
public const STATE_ACCEPTING = 'ACCEPTING';
/**
* The resource's reject operation is in progress.
*/
public const STATE_REJECTING = 'REJECTING';
/**
* The resource's update operation is in progress.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The resource is inactive.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The hub associated with this spoke resource has been deleted. This state
* applies to spoke resources only.
*/
public const STATE_OBSOLETE = 'OBSOLETE';
/**
* The resource is in an undefined state due to resource creation or deletion
* failure. You can try to delete the resource later or contact support for
* help.
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'routingVpcs';
/**
* Output only. The time the hub was created.
*
* @var string
*/
public $createTime;
/**
* Optional. An optional description of the hub.
*
* @var string
*/
public $description;
/**
* Optional. Whether Private Service Connect connection propagation is enabled
* for the hub. If true, Private Service Connect endpoints in VPC spokes
* attached to the hub are made accessible to other VPC spokes attached to the
* hub. The default value is false.
*
* @var bool
*/
public $exportPsc;
/**
* Optional labels in key-value pair format. For more information about
* labels, see [Requirements for labels](https://cloud.google.com/resource-
* manager/docs/creating-managing-labels#requirements).
*
* @var string[]
*/
public $labels;
/**
* Immutable. The name of the hub. Hub names must be unique. They use the
* following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
*
* @var string
*/
public $name;
/**
* Optional. The policy mode of this hub. This field can be either PRESET or
* CUSTOM. If unspecified, the policy_mode defaults to PRESET.
*
* @var string
*/
public $policyMode;
/**
* Optional. The topology implemented in this hub. Currently, this field is
* only used when policy_mode = PRESET. The available preset topologies are
* MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
* the preset_topology defaults to MESH. When policy_mode = CUSTOM, the
* preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
*
* @var string
*/
public $presetTopology;
/**
* Output only. The route tables that belong to this hub. They use the
* following form: `projects/{project_number}/locations/global/hubs/{hub_id}/r
* outeTables/{route_table_id}` This field is read-only. Network Connectivity
* Center automatically populates it based on the route tables nested under
* the hub.
*
* @var string[]
*/
public $routeTables;
protected $routingVpcsType = RoutingVPC::class;
protected $routingVpcsDataType = 'array';
protected $spokeSummaryType = SpokeSummary::class;
protected $spokeSummaryDataType = '';
/**
* Output only. The current lifecycle state of this hub.
*
* @var string
*/
public $state;
/**
* Output only. The Google-generated UUID for the hub. This value is unique
* across all hub resources. If a hub is deleted and another with the same
* name is created, the new hub is assigned a different unique_id.
*
* @var string
*/
public $uniqueId;
/**
* Output only. The time the hub was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The time the hub was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. An optional description of the hub.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Whether Private Service Connect connection propagation is enabled
* for the hub. If true, Private Service Connect endpoints in VPC spokes
* attached to the hub are made accessible to other VPC spokes attached to the
* hub. The default value is false.
*
* @param bool $exportPsc
*/
public function setExportPsc($exportPsc)
{
$this->exportPsc = $exportPsc;
}
/**
* @return bool
*/
public function getExportPsc()
{
return $this->exportPsc;
}
/**
* Optional labels in key-value pair format. For more information about
* labels, see [Requirements for labels](https://cloud.google.com/resource-
* manager/docs/creating-managing-labels#requirements).
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Immutable. The name of the hub. Hub names must be unique. They use the
* following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The policy mode of this hub. This field can be either PRESET or
* CUSTOM. If unspecified, the policy_mode defaults to PRESET.
*
* Accepted values: POLICY_MODE_UNSPECIFIED, PRESET
*
* @param self::POLICY_MODE_* $policyMode
*/
public function setPolicyMode($policyMode)
{
$this->policyMode = $policyMode;
}
/**
* @return self::POLICY_MODE_*
*/
public function getPolicyMode()
{
return $this->policyMode;
}
/**
* Optional. The topology implemented in this hub. Currently, this field is
* only used when policy_mode = PRESET. The available preset topologies are
* MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
* the preset_topology defaults to MESH. When policy_mode = CUSTOM, the
* preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
*
* Accepted values: PRESET_TOPOLOGY_UNSPECIFIED, MESH, STAR, HYBRID_INSPECTION
*
* @param self::PRESET_TOPOLOGY_* $presetTopology
*/
public function setPresetTopology($presetTopology)
{
$this->presetTopology = $presetTopology;
}
/**
* @return self::PRESET_TOPOLOGY_*
*/
public function getPresetTopology()
{
return $this->presetTopology;
}
/**
* Output only. The route tables that belong to this hub. They use the
* following form: `projects/{project_number}/locations/global/hubs/{hub_id}/r
* outeTables/{route_table_id}` This field is read-only. Network Connectivity
* Center automatically populates it based on the route tables nested under
* the hub.
*
* @param string[] $routeTables
*/
public function setRouteTables($routeTables)
{
$this->routeTables = $routeTables;
}
/**
* @return string[]
*/
public function getRouteTables()
{
return $this->routeTables;
}
/**
* Output only. The VPC networks associated with this hub's spokes. This field
* is read-only. Network Connectivity Center automatically populates it based
* on the set of spokes attached to the hub.
*
* @param RoutingVPC[] $routingVpcs
*/
public function setRoutingVpcs($routingVpcs)
{
$this->routingVpcs = $routingVpcs;
}
/**
* @return RoutingVPC[]
*/
public function getRoutingVpcs()
{
return $this->routingVpcs;
}
/**
* Output only. A summary of the spokes associated with a hub. The summary
* includes a count of spokes according to type and according to state. If any
* spokes are inactive, the summary also lists the reasons they are inactive,
* including a count for each reason.
*
* @param SpokeSummary $spokeSummary
*/
public function setSpokeSummary(SpokeSummary $spokeSummary)
{
$this->spokeSummary = $spokeSummary;
}
/**
* @return SpokeSummary
*/
public function getSpokeSummary()
{
return $this->spokeSummary;
}
/**
* Output only. The current lifecycle state of this hub.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, ACCEPTING,
* REJECTING, UPDATING, INACTIVE, OBSOLETE, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The Google-generated UUID for the hub. This value is unique
* across all hub resources. If a hub is deleted and another with the same
* name is created, the new hub is assigned a different unique_id.
*
* @param string $uniqueId
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
/**
* @return string
*/
public function getUniqueId()
{
return $this->uniqueId;
}
/**
* Output only. The time the hub was last updated.
*
* @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(Hub::class, 'Google_Service_Networkconnectivity_Hub');
@@ -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\Networkconnectivity;
class HubStatusEntry extends \Google\Model
{
/**
* The number of propagated Private Service Connect connections with this
* status. If the `group_by` field was not set in the request message, the
* value of this field is 1.
*
* @var int
*/
public $count;
/**
* The fields that this entry is grouped by. This has the same value as the
* `group_by` field in the request message.
*
* @var string
*/
public $groupBy;
protected $pscPropagationStatusType = PscPropagationStatus::class;
protected $pscPropagationStatusDataType = '';
/**
* The number of propagated Private Service Connect connections with this
* status. If the `group_by` field was not set in the request message, the
* value of this field is 1.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* The fields that this entry is grouped by. This has the same value as the
* `group_by` field in the request message.
*
* @param string $groupBy
*/
public function setGroupBy($groupBy)
{
$this->groupBy = $groupBy;
}
/**
* @return string
*/
public function getGroupBy()
{
return $this->groupBy;
}
/**
* The Private Service Connect propagation status.
*
* @param PscPropagationStatus $pscPropagationStatus
*/
public function setPscPropagationStatus(PscPropagationStatus $pscPropagationStatus)
{
$this->pscPropagationStatus = $pscPropagationStatus;
}
/**
* @return PscPropagationStatus
*/
public function getPscPropagationStatus()
{
return $this->pscPropagationStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HubStatusEntry::class, 'Google_Service_Networkconnectivity_HubStatusEntry');
@@ -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\Networkconnectivity;
class InterconnectAttachment extends \Google\Model
{
/**
* Optional. Cloud region to install this policy-based route on interconnect
* attachment. Use `all` to install it on all interconnect attachments.
*
* @var string
*/
public $region;
/**
* Optional. Cloud region to install this policy-based route on interconnect
* attachment. Use `all` to install it on all interconnect attachments.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InterconnectAttachment::class, 'Google_Service_Networkconnectivity_InterconnectAttachment');
@@ -0,0 +1,512 @@
<?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\Networkconnectivity;
class InternalRange extends \Google\Collection
{
/**
* If Peering is left unspecified in CreateInternalRange or
* UpdateInternalRange, it will be defaulted to FOR_SELF.
*/
public const PEERING_PEERING_UNSPECIFIED = 'PEERING_UNSPECIFIED';
/**
* This is the default behavior and represents the case that this internal
* range is intended to be used in the VPC in which it is created and is
* accessible from its peers. This implies that peers or peers-of-peers cannot
* use this range.
*/
public const PEERING_FOR_SELF = 'FOR_SELF';
/**
* This behavior can be set when the internal range is being reserved for
* usage by peers. This means that no resource within the VPC in which it is
* being created can use this to associate with a VPC resource, but one of the
* peers can. This represents donating a range for peers to use.
*/
public const PEERING_FOR_PEER = 'FOR_PEER';
/**
* This behavior can be set when the internal range is being reserved for
* usage by the VPC in which it is created, but not shared with peers. In a
* sense, it is local to the VPC. This can be used to create internal ranges
* for various purposes like HTTP_INTERNAL_LOAD_BALANCER or for Interconnect
* routes that are not shared with peers. This also implies that peers cannot
* use this range in a way that is visible to this VPC, but can re-use this
* range as long as it is NOT_SHARED from the peer VPC, too.
*/
public const PEERING_NOT_SHARED = 'NOT_SHARED';
/**
* Unspecified usage is allowed in calls which identify the resource by other
* fields and do not need Usage set to complete. These are, i.e.:
* GetInternalRange and DeleteInternalRange. Usage needs to be specified
* explicitly in CreateInternalRange or UpdateInternalRange calls.
*/
public const USAGE_USAGE_UNSPECIFIED = 'USAGE_UNSPECIFIED';
/**
* A VPC resource can use the reserved CIDR block by associating it with the
* internal range resource if usage is set to FOR_VPC.
*/
public const USAGE_FOR_VPC = 'FOR_VPC';
/**
* Ranges created with EXTERNAL_TO_VPC cannot be associated with VPC resources
* and are meant to block out address ranges for various use cases, like for
* example, usage on-prem, with dynamic route announcements via interconnect.
*/
public const USAGE_EXTERNAL_TO_VPC = 'EXTERNAL_TO_VPC';
/**
* Ranges created FOR_MIGRATION can be used to lock a CIDR range between a
* source and target subnet. If usage is set to FOR_MIGRATION, the peering
* value has to be set to FOR_SELF or default to FOR_SELF when unset.
*/
public const USAGE_FOR_MIGRATION = 'FOR_MIGRATION';
protected $collection_key = 'users';
protected $allocationOptionsType = AllocationOptions::class;
protected $allocationOptionsDataType = '';
/**
* Output only. Time when the internal range was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A description of this resource.
*
* @var string
*/
public $description;
/**
* Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that
* allows exclusion of particular CIDR ranges from the auto-allocation
* process, without having to reserve these blocks
*
* @var string[]
*/
public $excludeCidrRanges;
/**
* Optional. Immutable ranges cannot have their fields modified, except for
* labels and description.
*
* @var bool
*/
public $immutable;
/**
* Optional. The IP range that this internal range defines. NOTE: IPv6 ranges
* are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6
* Ranges this field is compulsory, i.e. the address range must be specified
* explicitly.
*
* @var string
*/
public $ipCidrRange;
/**
* User-defined labels.
*
* @var string[]
*/
public $labels;
protected $migrationType = Migration::class;
protected $migrationDataType = '';
/**
* Identifier. The name of an internal range. Format:
* projects/{project}/locations/{location}/internalRanges/{internal_range}
* See: https://google.aip.dev/122#fields-representing-resource-names
*
* @var string
*/
public $name;
/**
* Immutable. The URL or resource ID of the network in which to reserve the
* internal range. The network cannot be deleted if there are any reserved
* internal ranges referring to it. Legacy networks are not supported. For
* example: https://www.googleapis.com/compute/v1/projects/{project}/locations
* /global/networks/{network}
* projects/{project}/locations/global/networks/{network} {network}
*
* @var string
*/
public $network;
/**
* Optional. Types of resources that are allowed to overlap with the current
* internal range.
*
* @var string[]
*/
public $overlaps;
/**
* Optional. The type of peering set for this internal range.
*
* @var string
*/
public $peering;
/**
* Optional. An alternate to ip_cidr_range. Can be set when trying to create
* an IPv4 reservation that automatically finds a free range of the given
* size. If both ip_cidr_range and prefix_length are set, there is an error if
* the range sizes do not match. Can also be used during updates to change the
* range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as
* well, and both fields must match. In other words, with IPv6 this field only
* works as a redundant parameter.
*
* @var int
*/
public $prefixLength;
/**
* Optional. Can be set to narrow down or pick a different address space while
* searching for a free range. If not set, defaults to the ["10.0.0.0/8",
* "172.16.0.0/12", "192.168.0.0/16"] address space (for auto-mode networks,
* the "10.0.0.0/9" range is used instead of "10.0.0.0/8"). This can be used
* to target the search in other rfc-1918 address spaces like "172.16.0.0/12"
* and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
*
* @var string[]
*/
public $targetCidrRange;
/**
* Output only. Time when the internal range was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. The type of usage set for this InternalRange.
*
* @var string
*/
public $usage;
/**
* Output only. The list of resources that refer to this internal range.
* Resources that use the internal range for their range allocation are
* referred to as users of the range. Other resources mark themselves as users
* while doing so by creating a reference to this internal range. Having a
* user, based on this reference, prevents deletion of the internal range
* referred to. Can be empty.
*
* @var string[]
*/
public $users;
/**
* Optional. Range auto-allocation options, may be set only when auto-
* allocation is selected by not setting ip_cidr_range (and setting
* prefix_length).
*
* @param AllocationOptions $allocationOptions
*/
public function setAllocationOptions(AllocationOptions $allocationOptions)
{
$this->allocationOptions = $allocationOptions;
}
/**
* @return AllocationOptions
*/
public function getAllocationOptions()
{
return $this->allocationOptions;
}
/**
* Output only. Time when the internal range was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A description of this resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that
* allows exclusion of particular CIDR ranges from the auto-allocation
* process, without having to reserve these blocks
*
* @param string[] $excludeCidrRanges
*/
public function setExcludeCidrRanges($excludeCidrRanges)
{
$this->excludeCidrRanges = $excludeCidrRanges;
}
/**
* @return string[]
*/
public function getExcludeCidrRanges()
{
return $this->excludeCidrRanges;
}
/**
* Optional. Immutable ranges cannot have their fields modified, except for
* labels and description.
*
* @param bool $immutable
*/
public function setImmutable($immutable)
{
$this->immutable = $immutable;
}
/**
* @return bool
*/
public function getImmutable()
{
return $this->immutable;
}
/**
* Optional. The IP range that this internal range defines. NOTE: IPv6 ranges
* are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6
* Ranges this field is compulsory, i.e. the address range must be specified
* explicitly.
*
* @param string $ipCidrRange
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* User-defined labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Must be present if usage is set to FOR_MIGRATION.
*
* @param Migration $migration
*/
public function setMigration(Migration $migration)
{
$this->migration = $migration;
}
/**
* @return Migration
*/
public function getMigration()
{
return $this->migration;
}
/**
* Identifier. The name of an internal range. Format:
* projects/{project}/locations/{location}/internalRanges/{internal_range}
* See: https://google.aip.dev/122#fields-representing-resource-names
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Immutable. The URL or resource ID of the network in which to reserve the
* internal range. The network cannot be deleted if there are any reserved
* internal ranges referring to it. Legacy networks are not supported. For
* example: https://www.googleapis.com/compute/v1/projects/{project}/locations
* /global/networks/{network}
* projects/{project}/locations/global/networks/{network} {network}
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Optional. Types of resources that are allowed to overlap with the current
* internal range.
*
* @param string[] $overlaps
*/
public function setOverlaps($overlaps)
{
$this->overlaps = $overlaps;
}
/**
* @return string[]
*/
public function getOverlaps()
{
return $this->overlaps;
}
/**
* Optional. The type of peering set for this internal range.
*
* Accepted values: PEERING_UNSPECIFIED, FOR_SELF, FOR_PEER, NOT_SHARED
*
* @param self::PEERING_* $peering
*/
public function setPeering($peering)
{
$this->peering = $peering;
}
/**
* @return self::PEERING_*
*/
public function getPeering()
{
return $this->peering;
}
/**
* Optional. An alternate to ip_cidr_range. Can be set when trying to create
* an IPv4 reservation that automatically finds a free range of the given
* size. If both ip_cidr_range and prefix_length are set, there is an error if
* the range sizes do not match. Can also be used during updates to change the
* range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as
* well, and both fields must match. In other words, with IPv6 this field only
* works as a redundant parameter.
*
* @param int $prefixLength
*/
public function setPrefixLength($prefixLength)
{
$this->prefixLength = $prefixLength;
}
/**
* @return int
*/
public function getPrefixLength()
{
return $this->prefixLength;
}
/**
* Optional. Can be set to narrow down or pick a different address space while
* searching for a free range. If not set, defaults to the ["10.0.0.0/8",
* "172.16.0.0/12", "192.168.0.0/16"] address space (for auto-mode networks,
* the "10.0.0.0/9" range is used instead of "10.0.0.0/8"). This can be used
* to target the search in other rfc-1918 address spaces like "172.16.0.0/12"
* and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
*
* @param string[] $targetCidrRange
*/
public function setTargetCidrRange($targetCidrRange)
{
$this->targetCidrRange = $targetCidrRange;
}
/**
* @return string[]
*/
public function getTargetCidrRange()
{
return $this->targetCidrRange;
}
/**
* Output only. Time when the internal range was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. The type of usage set for this InternalRange.
*
* Accepted values: USAGE_UNSPECIFIED, FOR_VPC, EXTERNAL_TO_VPC, FOR_MIGRATION
*
* @param self::USAGE_* $usage
*/
public function setUsage($usage)
{
$this->usage = $usage;
}
/**
* @return self::USAGE_*
*/
public function getUsage()
{
return $this->usage;
}
/**
* Output only. The list of resources that refer to this internal range.
* Resources that use the internal range for their range allocation are
* referred to as users of the range. Other resources mark themselves as users
* while doing so by creating a reference to this internal range. Having a
* user, based on this reference, prevents deletion of the internal range
* referred to. Can be empty.
*
* @param string[] $users
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return string[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InternalRange::class, 'Google_Service_Networkconnectivity_InternalRange');
@@ -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\Networkconnectivity;
class IpRangeReservation extends \Google\Model
{
/**
* Required. A block of IP addresses used to allocate supporting
* infrastructure for this gateway. This block must not overlap with subnets
* in any spokes or peer VPC networks that the gateway can communicate with.
* Example: "10.1.2.0/24"
*
* @var string
*/
public $ipRange;
/**
* Required. A block of IP addresses used to allocate supporting
* infrastructure for this gateway. This block must not overlap with subnets
* in any spokes or peer VPC networks that the gateway can communicate with.
* Example: "10.1.2.0/24"
*
* @param string $ipRange
*/
public function setIpRange($ipRange)
{
$this->ipRange = $ipRange;
}
/**
* @return string
*/
public function getIpRange()
{
return $this->ipRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IpRangeReservation::class, 'Google_Service_Networkconnectivity_IpRangeReservation');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class LinearBuckets extends \Google\Model
{
public $numFiniteBuckets;
public $offset;
public $width;
public function setNumFiniteBuckets($numFiniteBuckets)
{
$this->numFiniteBuckets = $numFiniteBuckets;
}
public function getNumFiniteBuckets()
{
return $this->numFiniteBuckets;
}
public function setOffset($offset)
{
$this->offset = $offset;
}
public function getOffset()
{
return $this->offset;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinearBuckets::class, 'Google_Service_Networkconnectivity_LinearBuckets');
@@ -0,0 +1,195 @@
<?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\Networkconnectivity;
class LinkedInterconnectAttachments extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* Optional. Dynamic routes overlapped/encompassed by exclude export ranges
* are excluded during export to hub.
*
* @var string[]
*/
public $excludeExportRanges;
/**
* Optional. Hub routes overlapped/encompassed by exclude import ranges are
* excluded during import from hub.
*
* @var string[]
*/
public $excludeImportRanges;
/**
* Optional. Dynamic routes fully encompassed by include export ranges are
* included during export to hub.
*
* @var string[]
*/
public $includeExportRanges;
/**
* Optional. Hub routes fully encompassed by include import ranges are
* included during import from hub.
*
* @var string[]
*/
public $includeImportRanges;
/**
* A value that controls whether site-to-site data transfer is enabled for
* these resources. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* The URIs of linked interconnect attachment resources
*
* @var string[]
*/
public $uris;
/**
* Output only. The VPC network where these VLAN attachments are located.
*
* @var string
*/
public $vpcNetwork;
/**
* Optional. Dynamic routes overlapped/encompassed by exclude export ranges
* are excluded during export to hub.
*
* @param string[] $excludeExportRanges
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* Optional. Hub routes overlapped/encompassed by exclude import ranges are
* excluded during import from hub.
*
* @param string[] $excludeImportRanges
*/
public function setExcludeImportRanges($excludeImportRanges)
{
$this->excludeImportRanges = $excludeImportRanges;
}
/**
* @return string[]
*/
public function getExcludeImportRanges()
{
return $this->excludeImportRanges;
}
/**
* Optional. Dynamic routes fully encompassed by include export ranges are
* included during export to hub.
*
* @param string[] $includeExportRanges
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* Optional. Hub routes fully encompassed by include import ranges are
* included during import from hub.
*
* @param string[] $includeImportRanges
*/
public function setIncludeImportRanges($includeImportRanges)
{
$this->includeImportRanges = $includeImportRanges;
}
/**
* @return string[]
*/
public function getIncludeImportRanges()
{
return $this->includeImportRanges;
}
/**
* A value that controls whether site-to-site data transfer is enabled for
* these resources. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* The URIs of linked interconnect attachment resources
*
* @param string[] $uris
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* Output only. The VPC network where these VLAN attachments are located.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedInterconnectAttachments::class, 'Google_Service_Networkconnectivity_LinkedInterconnectAttachments');
@@ -0,0 +1,213 @@
<?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\Networkconnectivity;
class LinkedProducerVpcNetwork extends \Google\Collection
{
protected $collection_key = 'proposedIncludeExportRanges';
/**
* Optional. IP ranges encompassing the subnets to be excluded from peering.
*
* @var string[]
*/
public $excludeExportRanges;
/**
* Optional. IP ranges allowed to be included from peering.
*
* @var string[]
*/
public $includeExportRanges;
/**
* Immutable. The URI of the Service Consumer VPC that the Producer VPC is
* peered with.
*
* @var string
*/
public $network;
/**
* Immutable. The name of the VPC peering between the Service Consumer VPC and
* the Producer VPC (defined in the Tenant project) which is added to the NCC
* hub. This peering must be in ACTIVE state.
*
* @var string
*/
public $peering;
/**
* Output only. The URI of the Producer VPC.
*
* @var string
*/
public $producerNetwork;
/**
* Output only. The proposed exclude export IP ranges waiting for hub
* administrator's approval.
*
* @var string[]
*/
public $proposedExcludeExportRanges;
/**
* Output only. The proposed include export IP ranges waiting for hub
* administrator's approval.
*
* @var string[]
*/
public $proposedIncludeExportRanges;
/**
* Output only. The Service Consumer Network spoke.
*
* @var string
*/
public $serviceConsumerVpcSpoke;
/**
* Optional. IP ranges encompassing the subnets to be excluded from peering.
*
* @param string[] $excludeExportRanges
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* Optional. IP ranges allowed to be included from peering.
*
* @param string[] $includeExportRanges
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* Immutable. The URI of the Service Consumer VPC that the Producer VPC is
* peered with.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Immutable. The name of the VPC peering between the Service Consumer VPC and
* the Producer VPC (defined in the Tenant project) which is added to the NCC
* hub. This peering must be in ACTIVE state.
*
* @param string $peering
*/
public function setPeering($peering)
{
$this->peering = $peering;
}
/**
* @return string
*/
public function getPeering()
{
return $this->peering;
}
/**
* Output only. The URI of the Producer VPC.
*
* @param string $producerNetwork
*/
public function setProducerNetwork($producerNetwork)
{
$this->producerNetwork = $producerNetwork;
}
/**
* @return string
*/
public function getProducerNetwork()
{
return $this->producerNetwork;
}
/**
* Output only. The proposed exclude export IP ranges waiting for hub
* administrator's approval.
*
* @param string[] $proposedExcludeExportRanges
*/
public function setProposedExcludeExportRanges($proposedExcludeExportRanges)
{
$this->proposedExcludeExportRanges = $proposedExcludeExportRanges;
}
/**
* @return string[]
*/
public function getProposedExcludeExportRanges()
{
return $this->proposedExcludeExportRanges;
}
/**
* Output only. The proposed include export IP ranges waiting for hub
* administrator's approval.
*
* @param string[] $proposedIncludeExportRanges
*/
public function setProposedIncludeExportRanges($proposedIncludeExportRanges)
{
$this->proposedIncludeExportRanges = $proposedIncludeExportRanges;
}
/**
* @return string[]
*/
public function getProposedIncludeExportRanges()
{
return $this->proposedIncludeExportRanges;
}
/**
* Output only. The Service Consumer Network spoke.
*
* @param string $serviceConsumerVpcSpoke
*/
public function setServiceConsumerVpcSpoke($serviceConsumerVpcSpoke)
{
$this->serviceConsumerVpcSpoke = $serviceConsumerVpcSpoke;
}
/**
* @return string
*/
public function getServiceConsumerVpcSpoke()
{
return $this->serviceConsumerVpcSpoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedProducerVpcNetwork::class, 'Google_Service_Networkconnectivity_LinkedProducerVpcNetwork');
@@ -0,0 +1,193 @@
<?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\Networkconnectivity;
class LinkedRouterApplianceInstances extends \Google\Collection
{
protected $collection_key = 'instances';
/**
* Optional. Dynamic routes overlapped/encompassed by exclude export ranges
* are excluded during export to hub.
*
* @var string[]
*/
public $excludeExportRanges;
/**
* Optional. Hub routes overlapped/encompassed by exclude import ranges are
* excluded during import from hub.
*
* @var string[]
*/
public $excludeImportRanges;
/**
* Optional. Dynamic routes fully encompassed by include export ranges are
* included during export to hub.
*
* @var string[]
*/
public $includeExportRanges;
/**
* Optional. Hub routes fully encompassed by include import ranges are
* included during import from hub.
*
* @var string[]
*/
public $includeImportRanges;
protected $instancesType = RouterApplianceInstance::class;
protected $instancesDataType = 'array';
/**
* A value that controls whether site-to-site data transfer is enabled for
* these resources. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* Output only. The VPC network where these router appliance instances are
* located.
*
* @var string
*/
public $vpcNetwork;
/**
* Optional. Dynamic routes overlapped/encompassed by exclude export ranges
* are excluded during export to hub.
*
* @param string[] $excludeExportRanges
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* Optional. Hub routes overlapped/encompassed by exclude import ranges are
* excluded during import from hub.
*
* @param string[] $excludeImportRanges
*/
public function setExcludeImportRanges($excludeImportRanges)
{
$this->excludeImportRanges = $excludeImportRanges;
}
/**
* @return string[]
*/
public function getExcludeImportRanges()
{
return $this->excludeImportRanges;
}
/**
* Optional. Dynamic routes fully encompassed by include export ranges are
* included during export to hub.
*
* @param string[] $includeExportRanges
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* Optional. Hub routes fully encompassed by include import ranges are
* included during import from hub.
*
* @param string[] $includeImportRanges
*/
public function setIncludeImportRanges($includeImportRanges)
{
$this->includeImportRanges = $includeImportRanges;
}
/**
* @return string[]
*/
public function getIncludeImportRanges()
{
return $this->includeImportRanges;
}
/**
* The list of router appliance instances.
*
* @param RouterApplianceInstance[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return RouterApplianceInstance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* A value that controls whether site-to-site data transfer is enabled for
* these resources. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* Output only. The VPC network where these router appliance instances are
* located.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedRouterApplianceInstances::class, 'Google_Service_Networkconnectivity_LinkedRouterApplianceInstances');
@@ -0,0 +1,175 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class LinkedVpcNetwork extends \Google\Collection
{
protected $collection_key = 'proposedIncludeExportRanges';
/**
* Optional. IP ranges encompassing the subnets to be excluded from peering.
*
* @var string[]
*/
public $excludeExportRanges;
/**
* Optional. IP ranges allowed to be included from peering.
*
* @var string[]
*/
public $includeExportRanges;
/**
* Output only. The list of Producer VPC spokes that this VPC spoke is a
* service consumer VPC spoke for. These producer VPCs are connected through
* VPC peering to this spoke's backing VPC network. Because they are directly
* connected through VPC peering, NCC export filters do not apply between the
* service consumer VPC spoke and any of its producer VPC spokes. This VPC
* spoke cannot be deleted as long as any of these producer VPC spokes are
* connected to the NCC Hub.
*
* @var string[]
*/
public $producerVpcSpokes;
/**
* Output only. The proposed exclude export IP ranges waiting for hub
* administrator's approval.
*
* @var string[]
*/
public $proposedExcludeExportRanges;
/**
* Output only. The proposed include export IP ranges waiting for hub
* administrator's approval.
*
* @var string[]
*/
public $proposedIncludeExportRanges;
/**
* Required. The URI of the VPC network resource.
*
* @var string
*/
public $uri;
/**
* Optional. IP ranges encompassing the subnets to be excluded from peering.
*
* @param string[] $excludeExportRanges
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* Optional. IP ranges allowed to be included from peering.
*
* @param string[] $includeExportRanges
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* Output only. The list of Producer VPC spokes that this VPC spoke is a
* service consumer VPC spoke for. These producer VPCs are connected through
* VPC peering to this spoke's backing VPC network. Because they are directly
* connected through VPC peering, NCC export filters do not apply between the
* service consumer VPC spoke and any of its producer VPC spokes. This VPC
* spoke cannot be deleted as long as any of these producer VPC spokes are
* connected to the NCC Hub.
*
* @param string[] $producerVpcSpokes
*/
public function setProducerVpcSpokes($producerVpcSpokes)
{
$this->producerVpcSpokes = $producerVpcSpokes;
}
/**
* @return string[]
*/
public function getProducerVpcSpokes()
{
return $this->producerVpcSpokes;
}
/**
* Output only. The proposed exclude export IP ranges waiting for hub
* administrator's approval.
*
* @param string[] $proposedExcludeExportRanges
*/
public function setProposedExcludeExportRanges($proposedExcludeExportRanges)
{
$this->proposedExcludeExportRanges = $proposedExcludeExportRanges;
}
/**
* @return string[]
*/
public function getProposedExcludeExportRanges()
{
return $this->proposedExcludeExportRanges;
}
/**
* Output only. The proposed include export IP ranges waiting for hub
* administrator's approval.
*
* @param string[] $proposedIncludeExportRanges
*/
public function setProposedIncludeExportRanges($proposedIncludeExportRanges)
{
$this->proposedIncludeExportRanges = $proposedIncludeExportRanges;
}
/**
* @return string[]
*/
public function getProposedIncludeExportRanges()
{
return $this->proposedIncludeExportRanges;
}
/**
* Required. The URI of the VPC network resource.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedVpcNetwork::class, 'Google_Service_Networkconnectivity_LinkedVpcNetwork');
@@ -0,0 +1,195 @@
<?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\Networkconnectivity;
class LinkedVpnTunnels extends \Google\Collection
{
protected $collection_key = 'uris';
/**
* Optional. Dynamic routes overlapped/encompassed by exclude export ranges
* are excluded during export to hub.
*
* @var string[]
*/
public $excludeExportRanges;
/**
* Optional. Hub routes overlapped/encompassed by exclude import ranges are
* excluded during import from hub.
*
* @var string[]
*/
public $excludeImportRanges;
/**
* Optional. Dynamic routes fully encompassed by include export ranges are
* included during export to hub.
*
* @var string[]
*/
public $includeExportRanges;
/**
* Optional. Hub routes fully encompassed by include import ranges are
* included during import from hub.
*
* @var string[]
*/
public $includeImportRanges;
/**
* A value that controls whether site-to-site data transfer is enabled for
* these resources. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* The URIs of linked VPN tunnel resources.
*
* @var string[]
*/
public $uris;
/**
* Output only. The VPC network where these VPN tunnels are located.
*
* @var string
*/
public $vpcNetwork;
/**
* Optional. Dynamic routes overlapped/encompassed by exclude export ranges
* are excluded during export to hub.
*
* @param string[] $excludeExportRanges
*/
public function setExcludeExportRanges($excludeExportRanges)
{
$this->excludeExportRanges = $excludeExportRanges;
}
/**
* @return string[]
*/
public function getExcludeExportRanges()
{
return $this->excludeExportRanges;
}
/**
* Optional. Hub routes overlapped/encompassed by exclude import ranges are
* excluded during import from hub.
*
* @param string[] $excludeImportRanges
*/
public function setExcludeImportRanges($excludeImportRanges)
{
$this->excludeImportRanges = $excludeImportRanges;
}
/**
* @return string[]
*/
public function getExcludeImportRanges()
{
return $this->excludeImportRanges;
}
/**
* Optional. Dynamic routes fully encompassed by include export ranges are
* included during export to hub.
*
* @param string[] $includeExportRanges
*/
public function setIncludeExportRanges($includeExportRanges)
{
$this->includeExportRanges = $includeExportRanges;
}
/**
* @return string[]
*/
public function getIncludeExportRanges()
{
return $this->includeExportRanges;
}
/**
* Optional. Hub routes fully encompassed by include import ranges are
* included during import from hub.
*
* @param string[] $includeImportRanges
*/
public function setIncludeImportRanges($includeImportRanges)
{
$this->includeImportRanges = $includeImportRanges;
}
/**
* @return string[]
*/
public function getIncludeImportRanges()
{
return $this->includeImportRanges;
}
/**
* A value that controls whether site-to-site data transfer is enabled for
* these resources. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* The URIs of linked VPN tunnel resources.
*
* @param string[] $uris
*/
public function setUris($uris)
{
$this->uris = $uris;
}
/**
* @return string[]
*/
public function getUris()
{
return $this->uris;
}
/**
* Output only. The VPC network where these VPN tunnels are located.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkedVpnTunnels::class, 'Google_Service_Networkconnectivity_LinkedVpnTunnels');
@@ -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\Networkconnectivity;
class ListAutomatedDnsRecordsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $automatedDnsRecordsType = AutomatedDnsRecord::class;
protected $automatedDnsRecordsDataType = 'array';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* AutomatedDnsRecords to be returned.
*
* @param AutomatedDnsRecord[] $automatedDnsRecords
*/
public function setAutomatedDnsRecords($automatedDnsRecords)
{
$this->automatedDnsRecords = $automatedDnsRecords;
}
/**
* @return AutomatedDnsRecord[]
*/
public function getAutomatedDnsRecords()
{
return $this->automatedDnsRecords;
}
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @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(ListAutomatedDnsRecordsResponse::class, 'Google_Service_Networkconnectivity_ListAutomatedDnsRecordsResponse');
@@ -0,0 +1,89 @@
<?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\Networkconnectivity;
class ListDestinationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $destinationsType = Destination::class;
protected $destinationsDataType = 'array';
/**
* The next page token.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of `Destination` resources to be listed.
*
* @param Destination[] $destinations
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return Destination[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* The next 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(ListDestinationsResponse::class, 'Google_Service_Networkconnectivity_ListDestinationsResponse');
@@ -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\Networkconnectivity;
class ListGatewayAdvertisedRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gatewayAdvertisedRoutesType = GatewayAdvertisedRoute::class;
protected $gatewayAdvertisedRoutesDataType = 'array';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
/**
* Hubs that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The requested gateway advertised routes.
*
* @param GatewayAdvertisedRoute[] $gatewayAdvertisedRoutes
*/
public function setGatewayAdvertisedRoutes($gatewayAdvertisedRoutes)
{
$this->gatewayAdvertisedRoutes = $gatewayAdvertisedRoutes;
}
/**
* @return GatewayAdvertisedRoute[]
*/
public function getGatewayAdvertisedRoutes()
{
return $this->gatewayAdvertisedRoutes;
}
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Hubs 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(ListGatewayAdvertisedRoutesResponse::class, 'Google_Service_Networkconnectivity_ListGatewayAdvertisedRoutesResponse');
@@ -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\Networkconnectivity;
class ListGroupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $groupsType = Group::class;
protected $groupsDataType = 'array';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
/**
* Hubs that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The requested groups.
*
* @param Group[] $groups
*/
public function setGroups($groups)
{
$this->groups = $groups;
}
/**
* @return Group[]
*/
public function getGroups()
{
return $this->groups;
}
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Hubs 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(ListGroupsResponse::class, 'Google_Service_Networkconnectivity_ListGroupsResponse');
@@ -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\Networkconnectivity;
class ListHubSpokesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
protected $spokesType = Spoke::class;
protected $spokesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The requested spokes. The spoke fields can be partially populated based on
* the `view` field in the request message.
*
* @param Spoke[] $spokes
*/
public function setSpokes($spokes)
{
$this->spokes = $spokes;
}
/**
* @return Spoke[]
*/
public function getSpokes()
{
return $this->spokes;
}
/**
* 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(ListHubSpokesResponse::class, 'Google_Service_Networkconnectivity_ListHubSpokesResponse');
@@ -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\Networkconnectivity;
class ListHubsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $hubsType = Hub::class;
protected $hubsDataType = 'array';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The requested hubs.
*
* @param Hub[] $hubs
*/
public function setHubs($hubs)
{
$this->hubs = $hubs;
}
/**
* @return Hub[]
*/
public function getHubs()
{
return $this->hubs;
}
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @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(ListHubsResponse::class, 'Google_Service_Networkconnectivity_ListHubsResponse');
@@ -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\Networkconnectivity;
class ListInternalRangesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $internalRangesType = InternalRange::class;
protected $internalRangesDataType = 'array';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* Internal ranges to be returned.
*
* @param InternalRange[] $internalRanges
*/
public function setInternalRanges($internalRanges)
{
$this->internalRanges = $internalRanges;
}
/**
* @return InternalRange[]
*/
public function getInternalRanges()
{
return $this->internalRanges;
}
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @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(ListInternalRangesResponse::class, 'Google_Service_Networkconnectivity_ListInternalRangesResponse');
@@ -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\Networkconnectivity;
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_Networkconnectivity_ListLocationsResponse');
@@ -0,0 +1,89 @@
<?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\Networkconnectivity;
class ListMulticloudDataTransferConfigsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $multicloudDataTransferConfigsType = MulticloudDataTransferConfig::class;
protected $multicloudDataTransferConfigsDataType = 'array';
/**
* The next page token.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of `MulticloudDataTransferConfig` resources to be listed.
*
* @param MulticloudDataTransferConfig[] $multicloudDataTransferConfigs
*/
public function setMulticloudDataTransferConfigs($multicloudDataTransferConfigs)
{
$this->multicloudDataTransferConfigs = $multicloudDataTransferConfigs;
}
/**
* @return MulticloudDataTransferConfig[]
*/
public function getMulticloudDataTransferConfigs()
{
return $this->multicloudDataTransferConfigs;
}
/**
* The next 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(ListMulticloudDataTransferConfigsResponse::class, 'Google_Service_Networkconnectivity_ListMulticloudDataTransferConfigsResponse');
@@ -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\Networkconnectivity;
class ListMulticloudDataTransferSupportedServicesResponse extends \Google\Collection
{
protected $collection_key = 'multicloudDataTransferSupportedServices';
protected $multicloudDataTransferSupportedServicesType = MulticloudDataTransferSupportedService::class;
protected $multicloudDataTransferSupportedServicesDataType = 'array';
/**
* The next page token.
*
* @var string
*/
public $nextPageToken;
/**
* The list of supported services.
*
* @param MulticloudDataTransferSupportedService[] $multicloudDataTransferSupportedServices
*/
public function setMulticloudDataTransferSupportedServices($multicloudDataTransferSupportedServices)
{
$this->multicloudDataTransferSupportedServices = $multicloudDataTransferSupportedServices;
}
/**
* @return MulticloudDataTransferSupportedService[]
*/
public function getMulticloudDataTransferSupportedServices()
{
return $this->multicloudDataTransferSupportedServices;
}
/**
* The 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(ListMulticloudDataTransferSupportedServicesResponse::class, 'Google_Service_Networkconnectivity_ListMulticloudDataTransferSupportedServicesResponse');
@@ -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\Networkconnectivity;
class ListPolicyBasedRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
protected $policyBasedRoutesType = PolicyBasedRoute::class;
protected $policyBasedRoutesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Policy-based routes to be returned.
*
* @param PolicyBasedRoute[] $policyBasedRoutes
*/
public function setPolicyBasedRoutes($policyBasedRoutes)
{
$this->policyBasedRoutes = $policyBasedRoutes;
}
/**
* @return PolicyBasedRoute[]
*/
public function getPolicyBasedRoutes()
{
return $this->policyBasedRoutes;
}
/**
* 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(ListPolicyBasedRoutesResponse::class, 'Google_Service_Networkconnectivity_ListPolicyBasedRoutesResponse');
@@ -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\Networkconnectivity;
class ListRegionalEndpointsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
protected $regionalEndpointsType = RegionalEndpoint::class;
protected $regionalEndpointsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Regional endpoints to be returned.
*
* @param RegionalEndpoint[] $regionalEndpoints
*/
public function setRegionalEndpoints($regionalEndpoints)
{
$this->regionalEndpoints = $regionalEndpoints;
}
/**
* @return RegionalEndpoint[]
*/
public function getRegionalEndpoints()
{
return $this->regionalEndpoints;
}
/**
* 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(ListRegionalEndpointsResponse::class, 'Google_Service_Networkconnectivity_ListRegionalEndpointsResponse');
@@ -0,0 +1,89 @@
<?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\Networkconnectivity;
class ListRemoteTransportProfilesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $remoteTransportProfilesType = RemoteTransportProfile::class;
protected $remoteTransportProfilesDataType = 'array';
/**
* Unordered list. Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of RemoteTransportProfiles.
*
* @param RemoteTransportProfile[] $remoteTransportProfiles
*/
public function setRemoteTransportProfiles($remoteTransportProfiles)
{
$this->remoteTransportProfiles = $remoteTransportProfiles;
}
/**
* @return RemoteTransportProfile[]
*/
public function getRemoteTransportProfiles()
{
return $this->remoteTransportProfiles;
}
/**
* Unordered list. 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(ListRemoteTransportProfilesResponse::class, 'Google_Service_Networkconnectivity_ListRemoteTransportProfilesResponse');
@@ -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\Networkconnectivity;
class ListRouteTablesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
protected $routeTablesType = RouteTable::class;
protected $routeTablesDataType = 'array';
/**
* Hubs that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The requested route tables.
*
* @param RouteTable[] $routeTables
*/
public function setRouteTables($routeTables)
{
$this->routeTables = $routeTables;
}
/**
* @return RouteTable[]
*/
public function getRouteTables()
{
return $this->routeTables;
}
/**
* Hubs 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(ListRouteTablesResponse::class, 'Google_Service_Networkconnectivity_ListRouteTablesResponse');
@@ -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\Networkconnectivity;
class ListRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
protected $routesType = Route::class;
protected $routesDataType = 'array';
/**
* RouteTables that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The requested routes.
*
* @param Route[] $routes
*/
public function setRoutes($routes)
{
$this->routes = $routes;
}
/**
* @return Route[]
*/
public function getRoutes()
{
return $this->routes;
}
/**
* RouteTables 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(ListRoutesResponse::class, 'Google_Service_Networkconnectivity_ListRoutesResponse');
@@ -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\Networkconnectivity;
class ListServiceClassesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
protected $serviceClassesType = ServiceClass::class;
protected $serviceClassesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* ServiceClasses to be returned.
*
* @param ServiceClass[] $serviceClasses
*/
public function setServiceClasses($serviceClasses)
{
$this->serviceClasses = $serviceClasses;
}
/**
* @return ServiceClass[]
*/
public function getServiceClasses()
{
return $this->serviceClasses;
}
/**
* 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(ListServiceClassesResponse::class, 'Google_Service_Networkconnectivity_ListServiceClassesResponse');
@@ -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\Networkconnectivity;
class ListServiceConnectionMapsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
protected $serviceConnectionMapsType = ServiceConnectionMap::class;
protected $serviceConnectionMapsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* ServiceConnectionMaps to be returned.
*
* @param ServiceConnectionMap[] $serviceConnectionMaps
*/
public function setServiceConnectionMaps($serviceConnectionMaps)
{
$this->serviceConnectionMaps = $serviceConnectionMaps;
}
/**
* @return ServiceConnectionMap[]
*/
public function getServiceConnectionMaps()
{
return $this->serviceConnectionMaps;
}
/**
* 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(ListServiceConnectionMapsResponse::class, 'Google_Service_Networkconnectivity_ListServiceConnectionMapsResponse');
@@ -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\Networkconnectivity;
class ListServiceConnectionPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
protected $serviceConnectionPoliciesType = ServiceConnectionPolicy::class;
protected $serviceConnectionPoliciesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* ServiceConnectionPolicies to be returned.
*
* @param ServiceConnectionPolicy[] $serviceConnectionPolicies
*/
public function setServiceConnectionPolicies($serviceConnectionPolicies)
{
$this->serviceConnectionPolicies = $serviceConnectionPolicies;
}
/**
* @return ServiceConnectionPolicy[]
*/
public function getServiceConnectionPolicies()
{
return $this->serviceConnectionPolicies;
}
/**
* 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(ListServiceConnectionPoliciesResponse::class, 'Google_Service_Networkconnectivity_ListServiceConnectionPoliciesResponse');
@@ -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\Networkconnectivity;
class ListServiceConnectionTokensResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @var string
*/
public $nextPageToken;
protected $serviceConnectionTokensType = ServiceConnectionToken::class;
protected $serviceConnectionTokensDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next pagination token in the List response. It should be used as
* page_token for the following request. An empty value means no more result.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* ServiceConnectionTokens to be returned.
*
* @param ServiceConnectionToken[] $serviceConnectionTokens
*/
public function setServiceConnectionTokens($serviceConnectionTokens)
{
$this->serviceConnectionTokens = $serviceConnectionTokens;
}
/**
* @return ServiceConnectionToken[]
*/
public function getServiceConnectionTokens()
{
return $this->serviceConnectionTokens;
}
/**
* 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(ListServiceConnectionTokensResponse::class, 'Google_Service_Networkconnectivity_ListServiceConnectionTokensResponse');
@@ -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\Networkconnectivity;
class ListSpokesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
protected $spokesType = Spoke::class;
protected $spokesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The requested spokes.
*
* @param Spoke[] $spokes
*/
public function setSpokes($spokes)
{
$this->spokes = $spokes;
}
/**
* @return Spoke[]
*/
public function getSpokes()
{
return $this->spokes;
}
/**
* 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(ListSpokesResponse::class, 'Google_Service_Networkconnectivity_ListSpokesResponse');
@@ -0,0 +1,89 @@
<?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\Networkconnectivity;
class ListTransportsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $transportsType = Transport::class;
protected $transportsDataType = 'array';
/**
* Unordered list. Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of Transport.
*
* @param Transport[] $transports
*/
public function setTransports($transports)
{
$this->transports = $transports;
}
/**
* @return Transport[]
*/
public function getTransports()
{
return $this->transports;
}
/**
* Unordered list. 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(ListTransportsResponse::class, 'Google_Service_Networkconnectivity_ListTransportsResponse');
@@ -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\Networkconnectivity;
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_Networkconnectivity_Location');
@@ -0,0 +1,49 @@
<?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\Networkconnectivity;
class LocationMetadata extends \Google\Collection
{
protected $collection_key = 'locationFeatures';
/**
* List of supported features
*
* @var string[]
*/
public $locationFeatures;
/**
* List of supported features
*
* @param string[] $locationFeatures
*/
public function setLocationFeatures($locationFeatures)
{
$this->locationFeatures = $locationFeatures;
}
/**
* @return string[]
*/
public function getLocationFeatures()
{
return $this->locationFeatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_Networkconnectivity_LocationMetadata');
@@ -0,0 +1,155 @@
<?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\Networkconnectivity;
class LogEntry extends \Google\Model
{
protected $httpRequestType = HttpRequest::class;
protected $httpRequestDataType = '';
public $insertId;
public $labels;
public $name;
protected $operationType = LogEntryOperation::class;
protected $operationDataType = '';
public $protoPayload;
public $severity;
protected $sourceLocationType = LogEntrySourceLocation::class;
protected $sourceLocationDataType = '';
public $structPayload;
public $textPayload;
public $timestamp;
public $trace;
/**
* @param HttpRequest
*/
public function setHttpRequest(HttpRequest $httpRequest)
{
$this->httpRequest = $httpRequest;
}
/**
* @return HttpRequest
*/
public function getHttpRequest()
{
return $this->httpRequest;
}
public function setInsertId($insertId)
{
$this->insertId = $insertId;
}
public function getInsertId()
{
return $this->insertId;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
/**
* @param LogEntryOperation
*/
public function setOperation(LogEntryOperation $operation)
{
$this->operation = $operation;
}
/**
* @return LogEntryOperation
*/
public function getOperation()
{
return $this->operation;
}
public function setProtoPayload($protoPayload)
{
$this->protoPayload = $protoPayload;
}
public function getProtoPayload()
{
return $this->protoPayload;
}
public function setSeverity($severity)
{
$this->severity = $severity;
}
public function getSeverity()
{
return $this->severity;
}
/**
* @param LogEntrySourceLocation
*/
public function setSourceLocation(LogEntrySourceLocation $sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
/**
* @return LogEntrySourceLocation
*/
public function getSourceLocation()
{
return $this->sourceLocation;
}
public function setStructPayload($structPayload)
{
$this->structPayload = $structPayload;
}
public function getStructPayload()
{
return $this->structPayload;
}
public function setTextPayload($textPayload)
{
$this->textPayload = $textPayload;
}
public function getTextPayload()
{
return $this->textPayload;
}
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
public function getTimestamp()
{
return $this->timestamp;
}
public function setTrace($trace)
{
$this->trace = $trace;
}
public function getTrace()
{
return $this->trace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntry::class, 'Google_Service_Networkconnectivity_LogEntry');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class LogEntryOperation extends \Google\Model
{
public $first;
public $id;
public $last;
public $producer;
public function setFirst($first)
{
$this->first = $first;
}
public function getFirst()
{
return $this->first;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setLast($last)
{
$this->last = $last;
}
public function getLast()
{
return $this->last;
}
public function setProducer($producer)
{
$this->producer = $producer;
}
public function getProducer()
{
return $this->producer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntryOperation::class, 'Google_Service_Networkconnectivity_LogEntryOperation');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class LogEntrySourceLocation extends \Google\Model
{
public $file;
public $function;
public $line;
public function setFile($file)
{
$this->file = $file;
}
public function getFile()
{
return $this->file;
}
public function setFunction($function)
{
$this->function = $function;
}
public function getFunction()
{
return $this->function;
}
public function setLine($line)
{
$this->line = $line;
}
public function getLine()
{
return $this->line;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntrySourceLocation::class, 'Google_Service_Networkconnectivity_LogEntrySourceLocation');
@@ -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\Networkconnectivity;
class MetricValue extends \Google\Model
{
public $boolValue;
protected $distributionValueType = Distribution::class;
protected $distributionValueDataType = '';
public $doubleValue;
public $endTime;
public $int64Value;
public $labels;
protected $moneyValueType = Money::class;
protected $moneyValueDataType = '';
public $startTime;
public $stringValue;
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
public function getBoolValue()
{
return $this->boolValue;
}
/**
* @param Distribution
*/
public function setDistributionValue(Distribution $distributionValue)
{
$this->distributionValue = $distributionValue;
}
/**
* @return Distribution
*/
public function getDistributionValue()
{
return $this->distributionValue;
}
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setInt64Value($int64Value)
{
$this->int64Value = $int64Value;
}
public function getInt64Value()
{
return $this->int64Value;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
/**
* @param Money
*/
public function setMoneyValue(Money $moneyValue)
{
$this->moneyValue = $moneyValue;
}
/**
* @return Money
*/
public function getMoneyValue()
{
return $this->moneyValue;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricValue::class, 'Google_Service_Networkconnectivity_MetricValue');
@@ -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\Networkconnectivity;
class MetricValueSet extends \Google\Collection
{
protected $collection_key = 'metricValues';
public $metricName;
protected $metricValuesType = MetricValue::class;
protected $metricValuesDataType = 'array';
public function setMetricName($metricName)
{
$this->metricName = $metricName;
}
public function getMetricName()
{
return $this->metricName;
}
/**
* @param MetricValue[]
*/
public function setMetricValues($metricValues)
{
$this->metricValues = $metricValues;
}
/**
* @return MetricValue[]
*/
public function getMetricValues()
{
return $this->metricValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricValueSet::class, 'Google_Service_Networkconnectivity_MetricValueSet');
@@ -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\Networkconnectivity;
class Migration extends \Google\Model
{
/**
* Immutable. Resource path as an URI of the source resource, for example a
* subnet. The project for the source resource should match the project for
* the InternalRange. An example:
* /projects/{project}/regions/{region}/subnetworks/{subnet}
*
* @var string
*/
public $source;
/**
* Immutable. Resource path of the target resource. The target project can be
* different, as in the cases when migrating to peer networks. For example:
* /projects/{project}/regions/{region}/subnetworks/{subnet}
*
* @var string
*/
public $target;
/**
* Immutable. Resource path as an URI of the source resource, for example a
* subnet. The project for the source resource should match the project for
* the InternalRange. An example:
* /projects/{project}/regions/{region}/subnetworks/{subnet}
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Immutable. Resource path of the target resource. The target project can be
* different, as in the cases when migrating to peer networks. For example:
* /projects/{project}/regions/{region}/subnetworks/{subnet}
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Migration::class, 'Google_Service_Networkconnectivity_Migration');
@@ -0,0 +1,53 @@
<?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\Networkconnectivity;
class Money extends \Google\Model
{
public $currencyCode;
public $nanos;
public $units;
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
public function getCurrencyCode()
{
return $this->currencyCode;
}
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
public function getNanos()
{
return $this->nanos;
}
public function setUnits($units)
{
$this->units = $units;
}
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Money::class, 'Google_Service_Networkconnectivity_Money');
@@ -0,0 +1,271 @@
<?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\Networkconnectivity;
class MulticloudDataTransferConfig extends \Google\Model
{
/**
* Output only. Time when the `MulticloudDataTransferConfig` resource was
* created.
*
* @var string
*/
public $createTime;
/**
* Optional. A description of this resource.
*
* @var string
*/
public $description;
/**
* Output only. The number of `Destination` resources in use with the
* `MulticloudDataTransferConfig` resource.
*
* @var int
*/
public $destinationsActiveCount;
/**
* Output only. The number of `Destination` resources configured for the
* `MulticloudDataTransferConfig` resource.
*
* @var int
*/
public $destinationsCount;
/**
* The etag is computed by the server, and might be sent with update and
* delete requests so that the client has an up-to-date value before
* proceeding.
*
* @var string
*/
public $etag;
/**
* Optional. User-defined labels.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The name of the `MulticloudDataTransferConfig` resource.
* Format: `projects/{project}/locations/{location}/multicloudDataTransferConf
* igs/{multicloud_data_transfer_config}`.
*
* @var string
*/
public $name;
protected $servicesType = StateTimeline::class;
protected $servicesDataType = 'map';
/**
* Output only. The Google-generated unique ID for the
* `MulticloudDataTransferConfig` resource. This value is unique across all
* `MulticloudDataTransferConfig` resources. If a resource is deleted and
* another with the same name is created, the new resource is assigned a
* different and unique ID.
*
* @var string
*/
public $uid;
/**
* Output only. Time when the `MulticloudDataTransferConfig` resource was
* updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. Time when the `MulticloudDataTransferConfig` resource was
* created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A description of this resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The number of `Destination` resources in use with the
* `MulticloudDataTransferConfig` resource.
*
* @param int $destinationsActiveCount
*/
public function setDestinationsActiveCount($destinationsActiveCount)
{
$this->destinationsActiveCount = $destinationsActiveCount;
}
/**
* @return int
*/
public function getDestinationsActiveCount()
{
return $this->destinationsActiveCount;
}
/**
* Output only. The number of `Destination` resources configured for the
* `MulticloudDataTransferConfig` resource.
*
* @param int $destinationsCount
*/
public function setDestinationsCount($destinationsCount)
{
$this->destinationsCount = $destinationsCount;
}
/**
* @return int
*/
public function getDestinationsCount()
{
return $this->destinationsCount;
}
/**
* The etag is computed by the server, and might be sent with update and
* delete requests so that 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. User-defined labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The name of the `MulticloudDataTransferConfig` resource.
* Format: `projects/{project}/locations/{location}/multicloudDataTransferConf
* igs/{multicloud_data_transfer_config}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Maps services to their current or planned states. Service names
* are keys, and the associated values describe the state of the service. If a
* state change is expected, the value is either `ADDING` or `DELETING`,
* depending on the actions taken. Sample output: "services": { "big-query": {
* "states": [ { "effectiveTime": "2024-12-12T08:00:00Z" "state": "ADDING", },
* ] }, "cloud-storage": { "states": [ { "state": "ACTIVE", } ] } }
*
* @param StateTimeline[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return StateTimeline[]
*/
public function getServices()
{
return $this->services;
}
/**
* Output only. The Google-generated unique ID for the
* `MulticloudDataTransferConfig` resource. This value is unique across all
* `MulticloudDataTransferConfig` resources. If a resource is deleted and
* another with the same name is created, the new resource is assigned a
* different and unique ID.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Time when the `MulticloudDataTransferConfig` resource was
* updated.
*
* @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(MulticloudDataTransferConfig::class, 'Google_Service_Networkconnectivity_MulticloudDataTransferConfig');
@@ -0,0 +1,68 @@
<?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\Networkconnectivity;
class MulticloudDataTransferSupportedService extends \Google\Collection
{
protected $collection_key = 'serviceConfigs';
/**
* Identifier. The name of the service.
*
* @var string
*/
public $name;
protected $serviceConfigsType = ServiceConfig::class;
protected $serviceConfigsDataType = 'array';
/**
* Identifier. The name of the service.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The network service tier or regional endpoint supported for
* the service.
*
* @param ServiceConfig[] $serviceConfigs
*/
public function setServiceConfigs($serviceConfigs)
{
$this->serviceConfigs = $serviceConfigs;
}
/**
* @return ServiceConfig[]
*/
public function getServiceConfigs()
{
return $this->serviceConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MulticloudDataTransferSupportedService::class, 'Google_Service_Networkconnectivity_MulticloudDataTransferSupportedService');
@@ -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\Networkconnectivity;
class NetworkconnectivityEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkconnectivityEmpty::class, 'Google_Service_Networkconnectivity_NetworkconnectivityEmpty');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class NextHopInterconnectAttachment extends \Google\Model
{
/**
* Indicates whether site-to-site data transfer is allowed for this
* interconnect attachment resource. Data transfer is available only in
* [supported locations](https://cloud.google.com/network-
* connectivity/docs/network-connectivity-center/concepts/locations).
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* The URI of the interconnect attachment resource.
*
* @var string
*/
public $uri;
/**
* The VPC network where this interconnect attachment is located.
*
* @var string
*/
public $vpcNetwork;
/**
* Indicates whether site-to-site data transfer is allowed for this
* interconnect attachment resource. Data transfer is available only in
* [supported locations](https://cloud.google.com/network-
* connectivity/docs/network-connectivity-center/concepts/locations).
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* The URI of the interconnect attachment resource.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* The VPC network where this interconnect attachment is located.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopInterconnectAttachment::class, 'Google_Service_Networkconnectivity_NextHopInterconnectAttachment');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class NextHopRouterApplianceInstance extends \Google\Model
{
/**
* Indicates whether site-to-site data transfer is allowed for this Router
* appliance instance resource. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* The URI of the Router appliance instance.
*
* @var string
*/
public $uri;
/**
* The VPC network where this VM is located.
*
* @var string
*/
public $vpcNetwork;
/**
* Indicates whether site-to-site data transfer is allowed for this Router
* appliance instance resource. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* The URI of the Router appliance instance.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* The VPC network where this VM is located.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopRouterApplianceInstance::class, 'Google_Service_Networkconnectivity_NextHopRouterApplianceInstance');
@@ -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\Networkconnectivity;
class NextHopSpoke extends \Google\Model
{
/**
* Indicates whether site-to-site data transfer is allowed for this spoke
* resource. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations). Whether this route is accessible
* to other hybrid spokes with site-to-site data transfer enabled. If this is
* false, the route is only accessible to VPC spokes of the connected Hub.
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* The URI of the spoke resource.
*
* @var string
*/
public $uri;
/**
* Indicates whether site-to-site data transfer is allowed for this spoke
* resource. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations). Whether this route is accessible
* to other hybrid spokes with site-to-site data transfer enabled. If this is
* false, the route is only accessible to VPC spokes of the connected Hub.
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* The URI of the spoke resource.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopSpoke::class, 'Google_Service_Networkconnectivity_NextHopSpoke');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class NextHopVPNTunnel extends \Google\Model
{
/**
* Indicates whether site-to-site data transfer is allowed for this VPN tunnel
* resource. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @var bool
*/
public $siteToSiteDataTransfer;
/**
* The URI of the VPN tunnel resource.
*
* @var string
*/
public $uri;
/**
* The VPC network where this VPN tunnel is located.
*
* @var string
*/
public $vpcNetwork;
/**
* Indicates whether site-to-site data transfer is allowed for this VPN tunnel
* resource. Data transfer is available only in [supported
* locations](https://cloud.google.com/network-connectivity/docs/network-
* connectivity-center/concepts/locations).
*
* @param bool $siteToSiteDataTransfer
*/
public function setSiteToSiteDataTransfer($siteToSiteDataTransfer)
{
$this->siteToSiteDataTransfer = $siteToSiteDataTransfer;
}
/**
* @return bool
*/
public function getSiteToSiteDataTransfer()
{
return $this->siteToSiteDataTransfer;
}
/**
* The URI of the VPN tunnel resource.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* The VPC network where this VPN tunnel is located.
*
* @param string $vpcNetwork
*/
public function setVpcNetwork($vpcNetwork)
{
$this->vpcNetwork = $vpcNetwork;
}
/**
* @return string
*/
public function getVpcNetwork()
{
return $this->vpcNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopVPNTunnel::class, 'Google_Service_Networkconnectivity_NextHopVPNTunnel');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class NextHopVpcNetwork extends \Google\Model
{
/**
* The URI of the VPC network resource
*
* @var string
*/
public $uri;
/**
* The URI of the VPC network resource
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NextHopVpcNetwork::class, 'Google_Service_Networkconnectivity_NextHopVpcNetwork');
@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class Operation extends \Google\Collection
{
protected $collection_key = 'traceSpans';
public $consumerId;
public $endTime;
public $extensions;
public $importance;
public $labels;
protected $logEntriesType = LogEntry::class;
protected $logEntriesDataType = 'array';
protected $metricValueSetsType = MetricValueSet::class;
protected $metricValueSetsDataType = 'array';
public $operationId;
public $operationName;
protected $quotaPropertiesType = QuotaProperties::class;
protected $quotaPropertiesDataType = '';
protected $resourcesType = ResourceInfo::class;
protected $resourcesDataType = 'array';
public $startTime;
protected $traceSpansType = TraceSpan::class;
protected $traceSpansDataType = 'array';
public $userLabels;
public function setConsumerId($consumerId)
{
$this->consumerId = $consumerId;
}
public function getConsumerId()
{
return $this->consumerId;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
public function getExtensions()
{
return $this->extensions;
}
public function setImportance($importance)
{
$this->importance = $importance;
}
public function getImportance()
{
return $this->importance;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
/**
* @param LogEntry[]
*/
public function setLogEntries($logEntries)
{
$this->logEntries = $logEntries;
}
/**
* @return LogEntry[]
*/
public function getLogEntries()
{
return $this->logEntries;
}
/**
* @param MetricValueSet[]
*/
public function setMetricValueSets($metricValueSets)
{
$this->metricValueSets = $metricValueSets;
}
/**
* @return MetricValueSet[]
*/
public function getMetricValueSets()
{
return $this->metricValueSets;
}
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
public function getOperationId()
{
return $this->operationId;
}
public function setOperationName($operationName)
{
$this->operationName = $operationName;
}
public function getOperationName()
{
return $this->operationName;
}
/**
* @param QuotaProperties
*/
public function setQuotaProperties(QuotaProperties $quotaProperties)
{
$this->quotaProperties = $quotaProperties;
}
/**
* @return QuotaProperties
*/
public function getQuotaProperties()
{
return $this->quotaProperties;
}
/**
* @param ResourceInfo[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return ResourceInfo[]
*/
public function getResources()
{
return $this->resources;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
/**
* @param TraceSpan[]
*/
public function setTraceSpans($traceSpans)
{
$this->traceSpans = $traceSpans;
}
/**
* @return TraceSpan[]
*/
public function getTraceSpans()
{
return $this->traceSpans;
}
public function setUserLabels($userLabels)
{
$this->userLabels = $userLabels;
}
public function getUserLabels()
{
return $this->userLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Networkconnectivity_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\Networkconnectivity;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. 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;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully 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;
}
/**
* Output only. 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;
}
/**
* Output only. 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;
}
/**
* Output only. 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_Networkconnectivity_OperationMetadata');
@@ -0,0 +1,165 @@
<?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\Networkconnectivity;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Networkconnectivity_Policy');
@@ -0,0 +1,378 @@
<?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\Networkconnectivity;
class PolicyBasedRoute extends \Google\Collection
{
/**
* Default value.
*/
public const NEXT_HOP_OTHER_ROUTES_OTHER_ROUTES_UNSPECIFIED = 'OTHER_ROUTES_UNSPECIFIED';
/**
* Use the routes from the default routing tables (system-generated routes,
* custom routes, peering route) to determine the next hop. This effectively
* excludes matching packets being applied on other PBRs with a lower
* priority.
*/
public const NEXT_HOP_OTHER_ROUTES_DEFAULT_ROUTING = 'DEFAULT_ROUTING';
protected $collection_key = 'warnings';
/**
* Output only. Time when the policy-based route was created.
*
* @var string
*/
public $createTime;
/**
* Optional. An optional description of this resource. Provide this field when
* you create the resource.
*
* @var string
*/
public $description;
protected $filterType = Filter::class;
protected $filterDataType = '';
protected $interconnectAttachmentType = InterconnectAttachment::class;
protected $interconnectAttachmentDataType = '';
/**
* Output only. Type of this resource. Always
* networkconnectivity#policyBasedRoute for policy-based Route resources.
*
* @var string
*/
public $kind;
/**
* User-defined labels.
*
* @var string[]
*/
public $labels;
/**
* Immutable. Identifier. A unique name of the resource in the form of `projec
* ts/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_
* id}`
*
* @var string
*/
public $name;
/**
* Required. Fully-qualified URL of the network that this route applies to,
* for example: projects/my-project/global/networks/my-network.
*
* @var string
*/
public $network;
/**
* Optional. The IP address of a global-access-enabled L4 ILB that is the next
* hop for matching packets. For this version, only nextHopIlbIp is supported.
*
* @var string
*/
public $nextHopIlbIp;
/**
* Optional. Other routes that will be referenced to determine the next hop of
* the packet.
*
* @var string
*/
public $nextHopOtherRoutes;
/**
* Optional. The priority of this policy-based route. Priority is used to
* break ties in cases where there are more than one matching policy-based
* routes found. In cases where multiple policy-based routes are matched, the
* one with the lowest-numbered priority value wins. The default value is
* 1000. The priority value must be from 1 to 65535, inclusive.
*
* @var int
*/
public $priority;
/**
* Output only. Server-defined fully-qualified URL for this resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. Time when the policy-based route was updated.
*
* @var string
*/
public $updateTime;
protected $virtualMachineType = VirtualMachine::class;
protected $virtualMachineDataType = '';
protected $warningsType = Warnings::class;
protected $warningsDataType = 'array';
/**
* Output only. Time when the policy-based route was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. An optional description of this resource. Provide this field when
* you create the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. The filter to match L4 traffic.
*
* @param Filter $filter
*/
public function setFilter(Filter $filter)
{
$this->filter = $filter;
}
/**
* @return Filter
*/
public function getFilter()
{
return $this->filter;
}
/**
* Optional. The interconnect attachments that this policy-based route applies
* to.
*
* @param InterconnectAttachment $interconnectAttachment
*/
public function setInterconnectAttachment(InterconnectAttachment $interconnectAttachment)
{
$this->interconnectAttachment = $interconnectAttachment;
}
/**
* @return InterconnectAttachment
*/
public function getInterconnectAttachment()
{
return $this->interconnectAttachment;
}
/**
* Output only. Type of this resource. Always
* networkconnectivity#policyBasedRoute for policy-based Route resources.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* User-defined labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Immutable. Identifier. A unique name of the resource in the form of `projec
* ts/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_
* id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Fully-qualified URL of the network that this route applies to,
* for example: projects/my-project/global/networks/my-network.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Optional. The IP address of a global-access-enabled L4 ILB that is the next
* hop for matching packets. For this version, only nextHopIlbIp is supported.
*
* @param string $nextHopIlbIp
*/
public function setNextHopIlbIp($nextHopIlbIp)
{
$this->nextHopIlbIp = $nextHopIlbIp;
}
/**
* @return string
*/
public function getNextHopIlbIp()
{
return $this->nextHopIlbIp;
}
/**
* Optional. Other routes that will be referenced to determine the next hop of
* the packet.
*
* Accepted values: OTHER_ROUTES_UNSPECIFIED, DEFAULT_ROUTING
*
* @param self::NEXT_HOP_OTHER_ROUTES_* $nextHopOtherRoutes
*/
public function setNextHopOtherRoutes($nextHopOtherRoutes)
{
$this->nextHopOtherRoutes = $nextHopOtherRoutes;
}
/**
* @return self::NEXT_HOP_OTHER_ROUTES_*
*/
public function getNextHopOtherRoutes()
{
return $this->nextHopOtherRoutes;
}
/**
* Optional. The priority of this policy-based route. Priority is used to
* break ties in cases where there are more than one matching policy-based
* routes found. In cases where multiple policy-based routes are matched, the
* one with the lowest-numbered priority value wins. The default value is
* 1000. The priority value must be from 1 to 65535, inclusive.
*
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* Output only. Server-defined fully-qualified URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. Time when the policy-based route was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. VM instances that this policy-based route applies to.
*
* @param VirtualMachine $virtualMachine
*/
public function setVirtualMachine(VirtualMachine $virtualMachine)
{
$this->virtualMachine = $virtualMachine;
}
/**
* @return VirtualMachine
*/
public function getVirtualMachine()
{
return $this->virtualMachine;
}
/**
* Output only. If potential misconfigurations are detected for this route,
* this field will be populated with warning messages.
*
* @param Warnings[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return Warnings[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyBasedRoute::class, 'Google_Service_Networkconnectivity_PolicyBasedRoute');
@@ -0,0 +1,69 @@
<?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\Networkconnectivity;
class ProducerPscConfig extends \Google\Model
{
protected $automatedDnsCreationSpecType = AutomatedDnsCreationSpec::class;
protected $automatedDnsCreationSpecDataType = '';
/**
* The resource path of a service attachment. Example:
* projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}.
*
* @var string
*/
public $serviceAttachmentUri;
/**
* Optional. The specification for automatically creating a DNS record for
* this PSC connection.
*
* @param AutomatedDnsCreationSpec $automatedDnsCreationSpec
*/
public function setAutomatedDnsCreationSpec(AutomatedDnsCreationSpec $automatedDnsCreationSpec)
{
$this->automatedDnsCreationSpec = $automatedDnsCreationSpec;
}
/**
* @return AutomatedDnsCreationSpec
*/
public function getAutomatedDnsCreationSpec()
{
return $this->automatedDnsCreationSpec;
}
/**
* The resource path of a service attachment. Example:
* projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}.
*
* @param string $serviceAttachmentUri
*/
public function setServiceAttachmentUri($serviceAttachmentUri)
{
$this->serviceAttachmentUri = $serviceAttachmentUri;
}
/**
* @return string
*/
public function getServiceAttachmentUri()
{
return $this->serviceAttachmentUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProducerPscConfig::class, 'Google_Service_Networkconnectivity_ProducerPscConfig');
@@ -0,0 +1,163 @@
<?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\Networkconnectivity;
class PscConfig extends \Google\Collection
{
/**
* Producer instance location is not specified. When this option is chosen,
* then the PSC connections created by this ServiceConnectionPolicy must be
* within the same project as the Producer instance. This is the default
* ProducerInstanceLocation value. To allow for PSC connections from this
* network to other networks, use the CUSTOM_RESOURCE_HIERARCHY_LEVELS option.
*/
public const PRODUCER_INSTANCE_LOCATION_PRODUCER_INSTANCE_LOCATION_UNSPECIFIED = 'PRODUCER_INSTANCE_LOCATION_UNSPECIFIED';
/**
* Producer instance must be within one of the values provided in
* allowed_google_producers_resource_hierarchy_level.
*/
public const PRODUCER_INSTANCE_LOCATION_CUSTOM_RESOURCE_HIERARCHY_LEVELS = 'CUSTOM_RESOURCE_HIERARCHY_LEVELS';
protected $collection_key = 'subnetworks';
/**
* Optional. List of Projects, Folders, or Organizations from where the
* Producer instance can be within. For example, a network administrator can
* provide both 'organizations/foo' and 'projects/bar' as
* allowed_google_producers_resource_hierarchy_levels. This allowlists this
* network to connect with any Producer instance within the 'foo' organization
* or the 'bar' project. By default,
* allowed_google_producers_resource_hierarchy_level is empty. The format for
* each allowed_google_producers_resource_hierarchy_level is / where is one of
* 'projects', 'folders', or 'organizations' and is either the ID or the
* number of the resource type. Format for each
* allowed_google_producers_resource_hierarchy_level value: 'projects/' or
* 'folders/' or 'organizations/' Eg. [projects/my-project-id, projects/567,
* folders/891, organizations/123]
*
* @var string[]
*/
public $allowedGoogleProducersResourceHierarchyLevel;
/**
* Optional. Max number of PSC connections for this policy.
*
* @var string
*/
public $limit;
/**
* Optional. ProducerInstanceLocation is used to specify which authorization
* mechanism to use to determine which projects the Producer instance can be
* within.
*
* @var string
*/
public $producerInstanceLocation;
/**
* The resource paths of subnetworks to use for IP address management.
* Example:
* projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.
*
* @var string[]
*/
public $subnetworks;
/**
* Optional. List of Projects, Folders, or Organizations from where the
* Producer instance can be within. For example, a network administrator can
* provide both 'organizations/foo' and 'projects/bar' as
* allowed_google_producers_resource_hierarchy_levels. This allowlists this
* network to connect with any Producer instance within the 'foo' organization
* or the 'bar' project. By default,
* allowed_google_producers_resource_hierarchy_level is empty. The format for
* each allowed_google_producers_resource_hierarchy_level is / where is one of
* 'projects', 'folders', or 'organizations' and is either the ID or the
* number of the resource type. Format for each
* allowed_google_producers_resource_hierarchy_level value: 'projects/' or
* 'folders/' or 'organizations/' Eg. [projects/my-project-id, projects/567,
* folders/891, organizations/123]
*
* @param string[] $allowedGoogleProducersResourceHierarchyLevel
*/
public function setAllowedGoogleProducersResourceHierarchyLevel($allowedGoogleProducersResourceHierarchyLevel)
{
$this->allowedGoogleProducersResourceHierarchyLevel = $allowedGoogleProducersResourceHierarchyLevel;
}
/**
* @return string[]
*/
public function getAllowedGoogleProducersResourceHierarchyLevel()
{
return $this->allowedGoogleProducersResourceHierarchyLevel;
}
/**
* Optional. Max number of PSC connections for this policy.
*
* @param string $limit
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return string
*/
public function getLimit()
{
return $this->limit;
}
/**
* Optional. ProducerInstanceLocation is used to specify which authorization
* mechanism to use to determine which projects the Producer instance can be
* within.
*
* Accepted values: PRODUCER_INSTANCE_LOCATION_UNSPECIFIED,
* CUSTOM_RESOURCE_HIERARCHY_LEVELS
*
* @param self::PRODUCER_INSTANCE_LOCATION_* $producerInstanceLocation
*/
public function setProducerInstanceLocation($producerInstanceLocation)
{
$this->producerInstanceLocation = $producerInstanceLocation;
}
/**
* @return self::PRODUCER_INSTANCE_LOCATION_*
*/
public function getProducerInstanceLocation()
{
return $this->producerInstanceLocation;
}
/**
* The resource paths of subnetworks to use for IP address management.
* Example:
* projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.
*
* @param string[] $subnetworks
*/
public function setSubnetworks($subnetworks)
{
$this->subnetworks = $subnetworks;
}
/**
* @return string[]
*/
public function getSubnetworks()
{
return $this->subnetworks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscConfig::class, 'Google_Service_Networkconnectivity_PscConfig');
@@ -0,0 +1,413 @@
<?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\Networkconnectivity;
class PscConnection extends \Google\Model
{
/**
* An invalid error type as the default case.
*/
public const ERROR_TYPE_CONNECTION_ERROR_TYPE_UNSPECIFIED = 'CONNECTION_ERROR_TYPE_UNSPECIFIED';
/**
* The error is due to Service Automation system internal.
*/
public const ERROR_TYPE_ERROR_INTERNAL = 'ERROR_INTERNAL';
/**
* The error is due to the setup on consumer side.
*/
public const ERROR_TYPE_ERROR_CONSUMER_SIDE = 'ERROR_CONSUMER_SIDE';
/**
* The error is due to the setup on producer side.
*/
public const ERROR_TYPE_ERROR_PRODUCER_SIDE = 'ERROR_PRODUCER_SIDE';
/**
* Default value. We will use IPv4 or IPv6 depending on the IP version of
* first available subnetwork.
*/
public const IP_VERSION_IP_VERSION_UNSPECIFIED = 'IP_VERSION_UNSPECIFIED';
/**
* Will use IPv4 only.
*/
public const IP_VERSION_IPV4 = 'IPV4';
/**
* Will use IPv6 only.
*/
public const IP_VERSION_IPV6 = 'IPV6';
/**
* An invalid state as the default case.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The connection has been created successfully. However, for the up-to-date
* connection status, please use the created forwarding rule's
* "PscConnectionStatus" as the source of truth.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The connection is not functional since some resources on the connection
* fail to be created.
*/
public const STATE_FAILED = 'FAILED';
/**
* The connection is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The connection is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The connection is being repaired to complete creation.
*/
public const STATE_CREATE_REPAIRING = 'CREATE_REPAIRING';
/**
* The connection is being repaired to complete deletion.
*/
public const STATE_DELETE_REPAIRING = 'DELETE_REPAIRING';
/**
* The resource reference of the consumer address.
*
* @var string
*/
public $consumerAddress;
/**
* The resource reference of the PSC Forwarding Rule within the consumer VPC.
*
* @var string
*/
public $consumerForwardingRule;
/**
* The project where the PSC connection is created.
*
* @var string
*/
public $consumerTargetProject;
protected $errorDataType = '';
protected $errorInfoType = GoogleRpcErrorInfo::class;
protected $errorInfoDataType = '';
/**
* The error type indicates whether the error is consumer facing, producer
* facing or system internal.
*
* @deprecated
* @var string
*/
public $errorType;
/**
* The last Compute Engine operation to setup PSC connection.
*
* @var string
*/
public $gceOperation;
/**
* The requested IP version for the PSC connection.
*
* @var string
*/
public $ipVersion;
/**
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
* identifier for the producer instance.
*
* @deprecated
* @var string
*/
public $producerInstanceId;
/**
* Immutable. An immutable map for the producer instance metadata.
*
* @var string[]
*/
public $producerInstanceMetadata;
/**
* The PSC connection id of the PSC forwarding rule.
*
* @var string
*/
public $pscConnectionId;
/**
* Output only. The URI of the subnetwork selected to allocate IP address for
* this connection.
*
* @var string
*/
public $selectedSubnetwork;
/**
* Output only. [Output only] The service class associated with this PSC
* Connection. The value is derived from the SCPolicy and matches the service
* class name provided by the customer.
*
* @var string
*/
public $serviceClass;
/**
* State of the PSC Connection
*
* @var string
*/
public $state;
/**
* The resource reference of the consumer address.
*
* @param string $consumerAddress
*/
public function setConsumerAddress($consumerAddress)
{
$this->consumerAddress = $consumerAddress;
}
/**
* @return string
*/
public function getConsumerAddress()
{
return $this->consumerAddress;
}
/**
* The resource reference of the PSC Forwarding Rule within the consumer VPC.
*
* @param string $consumerForwardingRule
*/
public function setConsumerForwardingRule($consumerForwardingRule)
{
$this->consumerForwardingRule = $consumerForwardingRule;
}
/**
* @return string
*/
public function getConsumerForwardingRule()
{
return $this->consumerForwardingRule;
}
/**
* The project where the PSC connection is created.
*
* @param string $consumerTargetProject
*/
public function setConsumerTargetProject($consumerTargetProject)
{
$this->consumerTargetProject = $consumerTargetProject;
}
/**
* @return string
*/
public function getConsumerTargetProject()
{
return $this->consumerTargetProject;
}
/**
* The most recent error during operating this connection. Deprecated, please
* use error_info instead.
*
* @deprecated
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @deprecated
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Output only. The error info for the latest error during operating this
* connection.
*
* @param GoogleRpcErrorInfo $errorInfo
*/
public function setErrorInfo(GoogleRpcErrorInfo $errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return GoogleRpcErrorInfo
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* The error type indicates whether the error is consumer facing, producer
* facing or system internal.
*
* Accepted values: CONNECTION_ERROR_TYPE_UNSPECIFIED, ERROR_INTERNAL,
* ERROR_CONSUMER_SIDE, ERROR_PRODUCER_SIDE
*
* @deprecated
* @param self::ERROR_TYPE_* $errorType
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @deprecated
* @return self::ERROR_TYPE_*
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* The last Compute Engine operation to setup PSC connection.
*
* @param string $gceOperation
*/
public function setGceOperation($gceOperation)
{
$this->gceOperation = $gceOperation;
}
/**
* @return string
*/
public function getGceOperation()
{
return $this->gceOperation;
}
/**
* The requested IP version for the PSC connection.
*
* Accepted values: IP_VERSION_UNSPECIFIED, IPV4, IPV6
*
* @param self::IP_VERSION_* $ipVersion
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return self::IP_VERSION_*
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
* identifier for the producer instance.
*
* @deprecated
* @param string $producerInstanceId
*/
public function setProducerInstanceId($producerInstanceId)
{
$this->producerInstanceId = $producerInstanceId;
}
/**
* @deprecated
* @return string
*/
public function getProducerInstanceId()
{
return $this->producerInstanceId;
}
/**
* Immutable. An immutable map for the producer instance metadata.
*
* @param string[] $producerInstanceMetadata
*/
public function setProducerInstanceMetadata($producerInstanceMetadata)
{
$this->producerInstanceMetadata = $producerInstanceMetadata;
}
/**
* @return string[]
*/
public function getProducerInstanceMetadata()
{
return $this->producerInstanceMetadata;
}
/**
* The PSC connection id of the PSC forwarding rule.
*
* @param string $pscConnectionId
*/
public function setPscConnectionId($pscConnectionId)
{
$this->pscConnectionId = $pscConnectionId;
}
/**
* @return string
*/
public function getPscConnectionId()
{
return $this->pscConnectionId;
}
/**
* Output only. The URI of the subnetwork selected to allocate IP address for
* this connection.
*
* @param string $selectedSubnetwork
*/
public function setSelectedSubnetwork($selectedSubnetwork)
{
$this->selectedSubnetwork = $selectedSubnetwork;
}
/**
* @return string
*/
public function getSelectedSubnetwork()
{
return $this->selectedSubnetwork;
}
/**
* Output only. [Output only] The service class associated with this PSC
* Connection. The value is derived from the SCPolicy and matches the service
* class name provided by the customer.
*
* @param string $serviceClass
*/
public function setServiceClass($serviceClass)
{
$this->serviceClass = $serviceClass;
}
/**
* @return string
*/
public function getServiceClass()
{
return $this->serviceClass;
}
/**
* State of the PSC Connection
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, FAILED, CREATING, DELETING,
* CREATE_REPAIRING, DELETE_REPAIRING
*
* @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(PscConnection::class, 'Google_Service_Networkconnectivity_PscConnection');
@@ -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\Networkconnectivity;
class PscPropagationStatus extends \Google\Model
{
/**
* The code is unspecified.
*/
public const CODE_CODE_UNSPECIFIED = 'CODE_UNSPECIFIED';
/**
* The propagated Private Service Connect connection is ready.
*/
public const CODE_READY = 'READY';
/**
* The Private Service Connect connection is propagating. This is a transient
* state.
*/
public const CODE_PROPAGATING = 'PROPAGATING';
/**
* The Private Service Connect connection propagation failed because the VPC
* network or the project of the target spoke has exceeded the connection
* limit set by the producer.
*/
public const CODE_ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED = 'ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED';
/**
* The Private Service Connect connection propagation failed because the NAT
* IP subnet space has been exhausted. It is equivalent to the `Needs
* attention` status of the Private Service Connect connection. See
* https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-
* endpoints#connection-statuses.
*/
public const CODE_ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED = 'ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED';
/**
* The Private Service Connect connection propagation failed because the
* `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota in the
* producer VPC network has been exceeded.
*/
public const CODE_ERROR_PRODUCER_QUOTA_EXCEEDED = 'ERROR_PRODUCER_QUOTA_EXCEEDED';
/**
* The Private Service Connect connection propagation failed because the
* `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the consumer VPC
* network has been exceeded.
*/
public const CODE_ERROR_CONSUMER_QUOTA_EXCEEDED = 'ERROR_CONSUMER_QUOTA_EXCEEDED';
/**
* The propagation status.
*
* @var string
*/
public $code;
/**
* The human-readable summary of the Private Service Connect connection
* propagation status.
*
* @var string
*/
public $message;
/**
* The name of the forwarding rule exported to the hub.
*
* @var string
*/
public $sourceForwardingRule;
/**
* The name of the group that the source spoke belongs to.
*
* @var string
*/
public $sourceGroup;
/**
* The name of the spoke that the source forwarding rule belongs to.
*
* @var string
*/
public $sourceSpoke;
/**
* The name of the group that the target spoke belongs to.
*
* @var string
*/
public $targetGroup;
/**
* The name of the spoke that the source forwarding rule propagates to.
*
* @var string
*/
public $targetSpoke;
/**
* The propagation status.
*
* Accepted values: CODE_UNSPECIFIED, READY, PROPAGATING,
* ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED,
* ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED, ERROR_PRODUCER_QUOTA_EXCEEDED,
* ERROR_CONSUMER_QUOTA_EXCEEDED
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* The human-readable summary of the Private Service Connect connection
* propagation status.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* The name of the forwarding rule exported to the hub.
*
* @param string $sourceForwardingRule
*/
public function setSourceForwardingRule($sourceForwardingRule)
{
$this->sourceForwardingRule = $sourceForwardingRule;
}
/**
* @return string
*/
public function getSourceForwardingRule()
{
return $this->sourceForwardingRule;
}
/**
* The name of the group that the source spoke belongs to.
*
* @param string $sourceGroup
*/
public function setSourceGroup($sourceGroup)
{
$this->sourceGroup = $sourceGroup;
}
/**
* @return string
*/
public function getSourceGroup()
{
return $this->sourceGroup;
}
/**
* The name of the spoke that the source forwarding rule belongs to.
*
* @param string $sourceSpoke
*/
public function setSourceSpoke($sourceSpoke)
{
$this->sourceSpoke = $sourceSpoke;
}
/**
* @return string
*/
public function getSourceSpoke()
{
return $this->sourceSpoke;
}
/**
* The name of the group that the target spoke belongs to.
*
* @param string $targetGroup
*/
public function setTargetGroup($targetGroup)
{
$this->targetGroup = $targetGroup;
}
/**
* @return string
*/
public function getTargetGroup()
{
return $this->targetGroup;
}
/**
* The name of the spoke that the source forwarding rule propagates to.
*
* @param string $targetSpoke
*/
public function setTargetSpoke($targetSpoke)
{
$this->targetSpoke = $targetSpoke;
}
/**
* @return string
*/
public function getTargetSpoke()
{
return $this->targetSpoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PscPropagationStatus::class, 'Google_Service_Networkconnectivity_PscPropagationStatus');
@@ -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\Networkconnectivity;
class QueryHubStatusResponse extends \Google\Collection
{
protected $collection_key = 'hubStatusEntries';
protected $hubStatusEntriesType = HubStatusEntry::class;
protected $hubStatusEntriesDataType = 'array';
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of hub status.
*
* @param HubStatusEntry[] $hubStatusEntries
*/
public function setHubStatusEntries($hubStatusEntries)
{
$this->hubStatusEntries = $hubStatusEntries;
}
/**
* @return HubStatusEntry[]
*/
public function getHubStatusEntries()
{
return $this->hubStatusEntries;
}
/**
* The token for the next page of the response. To see more results, use this
* value as the page_token for your next request. If this value is empty,
* there are no more results.
*
* @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(QueryHubStatusResponse::class, 'Google_Service_Networkconnectivity_QueryHubStatusResponse');
@@ -0,0 +1,35 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Networkconnectivity;
class QuotaProperties extends \Google\Model
{
public $quotaMode;
public function setQuotaMode($quotaMode)
{
$this->quotaMode = $quotaMode;
}
public function getQuotaMode()
{
return $this->quotaMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QuotaProperties::class, 'Google_Service_Networkconnectivity_QuotaProperties');
@@ -0,0 +1,338 @@
<?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\Networkconnectivity;
class RegionalEndpoint extends \Google\Model
{
/**
* An invalid type as the default case.
*/
public const ACCESS_TYPE_ACCESS_TYPE_UNSPECIFIED = 'ACCESS_TYPE_UNSPECIFIED';
/**
* This regional endpoint is accessible from all regions.
*/
public const ACCESS_TYPE_GLOBAL = 'GLOBAL';
/**
* This regional endpoint is only accessible from the same region where it
* resides.
*/
public const ACCESS_TYPE_REGIONAL = 'REGIONAL';
/**
* Required. The access type of this regional endpoint. This field is
* reflected in the PSC Forwarding Rule configuration to enable global access.
*
* @var string
*/
public $accessType;
/**
* Optional. The IP Address of the Regional Endpoint. When no address is
* provided, an IP from the subnetwork is allocated. Use one of the following
* formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in
* `projects/{project}/regions/{region}/addresses/{address_name}` for an IPv4
* or IPv6 address.
*
* @var string
*/
public $address;
/**
* Output only. Time when the RegionalEndpoint was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A description of this resource.
*
* @var string
*/
public $description;
/**
* Output only. The literal IP address of the PSC Forwarding Rule created on
* behalf of the customer. This field is deprecated. Use address instead.
*
* @deprecated
* @var string
*/
public $ipAddress;
/**
* User-defined labels.
*
* @var string[]
*/
public $labels;
/**
* Output only. The name of a RegionalEndpoint. Pattern: `projects/{project}/l
* ocations/{location}/regionalEndpoints/^[-a-z0-9](?:[-a-z0-9]{0,44})[a-z0-
* 9]$`.
*
* @var string
*/
public $name;
/**
* Optional. The name of the VPC network for this private regional endpoint.
* Format: `projects/{project}/global/networks/{network}`
*
* @var string
*/
public $network;
/**
* Output only. The resource reference of the PSC Forwarding Rule created on
* behalf of the customer. Format: `//compute.googleapis.com/projects/{project
* }/regions/{region}/forwardingRules/{forwarding_rule_name}`
*
* @var string
*/
public $pscForwardingRule;
/**
* Optional. The name of the subnetwork from which the IP address will be
* allocated. Format:
* `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
*
* @var string
*/
public $subnetwork;
/**
* Required. The service endpoint this private regional endpoint connects to.
* Format: `{apiname}.{region}.p.rep.googleapis.com` Example: "cloudkms.us-
* central1.p.rep.googleapis.com".
*
* @var string
*/
public $targetGoogleApi;
/**
* Output only. Time when the RegionalEndpoint was updated.
*
* @var string
*/
public $updateTime;
/**
* Required. The access type of this regional endpoint. This field is
* reflected in the PSC Forwarding Rule configuration to enable global access.
*
* Accepted values: ACCESS_TYPE_UNSPECIFIED, GLOBAL, REGIONAL
*
* @param self::ACCESS_TYPE_* $accessType
*/
public function setAccessType($accessType)
{
$this->accessType = $accessType;
}
/**
* @return self::ACCESS_TYPE_*
*/
public function getAccessType()
{
return $this->accessType;
}
/**
* Optional. The IP Address of the Regional Endpoint. When no address is
* provided, an IP from the subnetwork is allocated. Use one of the following
* formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in
* `projects/{project}/regions/{region}/addresses/{address_name}` for an IPv4
* or IPv6 address.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Output only. Time when the RegionalEndpoint was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A description of this resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The literal IP address of the PSC Forwarding Rule created on
* behalf of the customer. This field is deprecated. Use address instead.
*
* @deprecated
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @deprecated
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* User-defined labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The name of a RegionalEndpoint. Pattern: `projects/{project}/l
* ocations/{location}/regionalEndpoints/^[-a-z0-9](?:[-a-z0-9]{0,44})[a-z0-
* 9]$`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The name of the VPC network for this private regional endpoint.
* Format: `projects/{project}/global/networks/{network}`
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Output only. The resource reference of the PSC Forwarding Rule created on
* behalf of the customer. Format: `//compute.googleapis.com/projects/{project
* }/regions/{region}/forwardingRules/{forwarding_rule_name}`
*
* @param string $pscForwardingRule
*/
public function setPscForwardingRule($pscForwardingRule)
{
$this->pscForwardingRule = $pscForwardingRule;
}
/**
* @return string
*/
public function getPscForwardingRule()
{
return $this->pscForwardingRule;
}
/**
* Optional. The name of the subnetwork from which the IP address will be
* allocated. Format:
* `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* Required. The service endpoint this private regional endpoint connects to.
* Format: `{apiname}.{region}.p.rep.googleapis.com` Example: "cloudkms.us-
* central1.p.rep.googleapis.com".
*
* @param string $targetGoogleApi
*/
public function setTargetGoogleApi($targetGoogleApi)
{
$this->targetGoogleApi = $targetGoogleApi;
}
/**
* @return string
*/
public function getTargetGoogleApi()
{
return $this->targetGoogleApi;
}
/**
* Output only. Time when the RegionalEndpoint was updated.
*
* @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(RegionalEndpoint::class, 'Google_Service_Networkconnectivity_RegionalEndpoint');
@@ -0,0 +1,112 @@
<?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\Networkconnectivity;
class RejectHubSpokeRequest extends \Google\Model
{
/**
* Optional. Additional information provided by the hub administrator.
*
* @var string
*/
public $details;
/**
* Optional. A request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server knows to ignore the request
* if it has already been completed. The server guarantees that a request
* doesn't result in creation of duplicate commitments for at least 60
* minutes. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the
* same request ID, the server can check to see whether the original operation
* was received. If it was, the server ignores the second request. This
* behavior prevents clients from mistakenly creating duplicate commitments.
* The request ID must be a valid UUID, with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Required. The URI of the spoke to reject from the hub.
*
* @var string
*/
public $spokeUri;
/**
* Optional. Additional information provided by the hub administrator.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* Optional. A request ID to identify requests. Specify a unique request ID so
* that if you must retry your request, the server knows to ignore the request
* if it has already been completed. The server guarantees that a request
* doesn't result in creation of duplicate commitments for at least 60
* minutes. For example, consider a situation where you make an initial
* request and the request times out. If you make the request again with the
* same request ID, the server can check to see whether the original operation
* was received. If it was, the server ignores the second request. This
* behavior prevents clients from mistakenly creating duplicate commitments.
* The request ID must be a valid UUID, with the exception that zero UUID is
* not supported (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Required. The URI of the spoke to reject from the hub.
*
* @param string $spokeUri
*/
public function setSpokeUri($spokeUri)
{
$this->spokeUri = $spokeUri;
}
/**
* @return string
*/
public function getSpokeUri()
{
return $this->spokeUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectHubSpokeRequest::class, 'Google_Service_Networkconnectivity_RejectHubSpokeRequest');
@@ -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\Networkconnectivity;
class RejectHubSpokeResponse extends \Google\Model
{
protected $spokeType = Spoke::class;
protected $spokeDataType = '';
/**
* The spoke that was operated on.
*
* @param Spoke $spoke
*/
public function setSpoke(Spoke $spoke)
{
$this->spoke = $spoke;
}
/**
* @return Spoke
*/
public function getSpoke()
{
return $this->spoke;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectHubSpokeResponse::class, 'Google_Service_Networkconnectivity_RejectHubSpokeResponse');

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