📂 File Browser

AgentAI/vendor/google/apiclient-services/src/Networkconnectivity
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AcceptHubSpokeRequest.php
▶ Open 📄 View Source
🐘 AcceptHubSpokeResponse.php
▶ Open 📄 View Source
🐘 AcceptSpokeRequest.php
▶ Open 📄 View Source
🐘 AcceptSpokeUpdateRequest.php
▶ Open 📄 View Source
🐘 AllocationOptions.php
▶ Open 📄 View Source
🐘 AttributeValue.php
▶ Open 📄 View Source
🐘 Attributes.php
▶ Open 📄 View Source
🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 AutoAccept.php
▶ Open 📄 View Source
🐘 AutoCreatedSubnetworkInfo.php
▶ Open 📄 View Source
🐘 AutomatedDnsCreationSpec.php
▶ Open 📄 View Source
🐘 AutomatedDnsRecord.php
▶ Open 📄 View Source
🐘 BillingView.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 CheckConsumerConfigRequest.php
▶ Open 📄 View Source
🐘 CheckConsumerConfigResponse.php
▶ Open 📄 View Source
🐘 Config.php
▶ Open 📄 View Source
🐘 ConsumerPscConfig.php
▶ Open 📄 View Source
🐘 ConsumerPscConnection.php
▶ Open 📄 View Source
🐘 Destination.php
▶ Open 📄 View Source
🐘 DestinationEndpoint.php
▶ Open 📄 View Source
🐘 Distribution.php
▶ Open 📄 View Source
🐘 DnsAutomationStatus.php
▶ Open 📄 View Source
🐘 Exemplar.php
▶ Open 📄 View Source
🐘 ExplicitBuckets.php
▶ Open 📄 View Source
🐘 ExponentialBuckets.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 Filter.php
▶ Open 📄 View Source
🐘 GoogleLongrunningCancelOperationRequest.php
▶ Open 📄 View Source
🐘 GoogleLongrunningListOperationsResponse.php
▶ Open 📄 View Source
🐘 GoogleLongrunningOperation.php
▶ Open 📄 View Source
🐘 GoogleRpcErrorInfo.php
▶ Open 📄 View Source
🐘 GoogleRpcStatus.php
▶ Open 📄 View Source
🐘 Group.php
▶ Open 📄 View Source
🐘 HttpRequest.php
▶ Open 📄 View Source
🐘 Hub.php
▶ Open 📄 View Source
🐘 HubStatusEntry.php
▶ Open 📄 View Source
🐘 InterconnectAttachment.php
▶ Open 📄 View Source
🐘 InternalRange.php
▶ Open 📄 View Source
🐘 LinearBuckets.php
▶ Open 📄 View Source
🐘 LinkedInterconnectAttachments.php
▶ Open 📄 View Source
🐘 LinkedProducerVpcNetwork.php
▶ Open 📄 View Source
🐘 LinkedRouterApplianceInstances.php
▶ Open 📄 View Source
🐘 LinkedVpcNetwork.php
▶ Open 📄 View Source
🐘 LinkedVpnTunnels.php
▶ Open 📄 View Source
🐘 ListAutomatedDnsRecordsResponse.php
▶ Open 📄 View Source
🐘 ListDestinationsResponse.php
▶ Open 📄 View Source
🐘 ListGroupsResponse.php
▶ Open 📄 View Source
🐘 ListHubSpokesResponse.php
▶ Open 📄 View Source
🐘 ListHubsResponse.php
▶ Open 📄 View Source
🐘 ListInternalRangesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListMulticloudDataTransferConfigsResponse.php
▶ Open 📄 View Source
🐘 ListMulticloudDataTransferSupportedServicesResponse.php
▶ Open 📄 View Source
🐘 ListPolicyBasedRoutesResponse.php
▶ Open 📄 View Source
🐘 ListRegionalEndpointsResponse.php
▶ Open 📄 View Source
🐘 ListRemoteTransportProfilesResponse.php
▶ Open 📄 View Source
🐘 ListRouteTablesResponse.php
▶ Open 📄 View Source
🐘 ListRoutesResponse.php
▶ Open 📄 View Source
🐘 ListServiceClassesResponse.php
▶ Open 📄 View Source
🐘 ListServiceConnectionMapsResponse.php
▶ Open 📄 View Source
🐘 ListServiceConnectionPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListServiceConnectionTokensResponse.php
▶ Open 📄 View Source
🐘 ListSpokesResponse.php
▶ Open 📄 View Source
🐘 ListTransportsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LocationMetadata.php
▶ Open 📄 View Source
🐘 LogEntry.php
▶ Open 📄 View Source
🐘 LogEntryOperation.php
▶ Open 📄 View Source
🐘 LogEntrySourceLocation.php
▶ Open 📄 View Source
🐘 MetricValue.php
▶ Open 📄 View Source
🐘 MetricValueSet.php
▶ Open 📄 View Source
🐘 Migration.php
▶ Open 📄 View Source
🐘 Money.php
▶ Open 📄 View Source
🐘 MulticloudDataTransferConfig.php
▶ Open 📄 View Source
🐘 MulticloudDataTransferSupportedService.php
▶ Open 📄 View Source
🐘 NetworkconnectivityEmpty.php
▶ Open 📄 View Source
🐘 NextHopInterconnectAttachment.php
▶ Open 📄 View Source
🐘 NextHopRouterApplianceInstance.php
▶ Open 📄 View Source
🐘 NextHopSpoke.php
▶ Open 📄 View Source
🐘 NextHopVPNTunnel.php
▶ Open 📄 View Source
🐘 NextHopVpcNetwork.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 PolicyBasedRoute.php
▶ Open 📄 View Source
🐘 ProducerPscConfig.php
▶ Open 📄 View Source
🐘 PscConfig.php
▶ Open 📄 View Source
🐘 PscConnection.php
▶ Open 📄 View Source
🐘 PscPropagationStatus.php
▶ Open 📄 View Source
🐘 QueryHubStatusResponse.php
▶ Open 📄 View Source
🐘 QuotaProperties.php
▶ Open 📄 View Source
🐘 RegionalEndpoint.php
▶ Open 📄 View Source
🐘 RejectHubSpokeRequest.php
▶ Open 📄 View Source
🐘 RejectHubSpokeResponse.php
▶ Open 📄 View Source
🐘 RejectSpokeRequest.php
▶ Open 📄 View Source
🐘 RejectSpokeUpdateRequest.php
▶ Open 📄 View Source
🐘 RemoteTransportProfile.php
▶ Open 📄 View Source
🐘 ReportRequest.php
▶ Open 📄 View Source
🐘 ResourceInfo.php
▶ Open 📄 View Source
🐘 Route.php
▶ Open 📄 View Source
🐘 RouteTable.php
▶ Open 📄 View Source
🐘 RouterApplianceInstance.php
▶ Open 📄 View Source
🐘 RoutingVPC.php
▶ Open 📄 View Source
🐘 ServiceClass.php
▶ Open 📄 View Source
🐘 ServiceConfig.php
▶ Open 📄 View Source
🐘 ServiceConnectionMap.php
▶ Open 📄 View Source
🐘 ServiceConnectionPolicy.php
▶ Open 📄 View Source
🐘 ServiceConnectionToken.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 Spoke.php
▶ Open 📄 View Source
🐘 SpokeStateCount.php
▶ Open 📄 View Source
🐘 SpokeStateReasonCount.php
▶ Open 📄 View Source
🐘 SpokeSummary.php
▶ Open 📄 View Source
🐘 SpokeTypeCount.php
▶ Open 📄 View Source
🐘 StateMetadata.php
▶ Open 📄 View Source
🐘 StateReason.php
▶ Open 📄 View Source
🐘 StateTimeline.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TraceSpan.php
▶ Open 📄 View Source
🐘 Transport.php
▶ Open 📄 View Source
🐘 TruncatableString.php
▶ Open 📄 View Source
🐘 VirtualMachine.php
▶ Open 📄 View Source
🐘 Warnings.php
▶ Open 📄 View Source

📄 Source: ConsumerPscConnection.php

<?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');
← Back