createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * Optional. An optional description of the spoke. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Optional. This checksum is computed by the server based on the value of * other fields, and may be sent on update and delete requests to ensure the * client has an up-to-date value before proceeding. * * @param string $etag */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * Optional. The list of fields waiting for hub administrator's approval. * * @param string[] $fieldPathsPendingUpdate */ public function setFieldPathsPendingUpdate($fieldPathsPendingUpdate) { $this->fieldPathsPendingUpdate = $fieldPathsPendingUpdate; } /** * @return string[] */ public function getFieldPathsPendingUpdate() { return $this->fieldPathsPendingUpdate; } /** * Optional. This is a gateway that can apply specialized processing to * traffic going through it. * * @param Gateway $gateway */ public function setGateway(Gateway $gateway) { $this->gateway = $gateway; } /** * @return Gateway */ public function getGateway() { return $this->gateway; } /** * Optional. The name of the group that this spoke is associated with. * * @param string $group */ public function setGroup($group) { $this->group = $group; } /** * @return string */ public function getGroup() { return $this->group; } /** * Immutable. The name of the hub that this spoke is attached to. * * @param string $hub */ public function setHub($hub) { $this->hub = $hub; } /** * @return string */ public function getHub() { return $this->hub; } /** * 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; } /** * Optional. VLAN attachments that are associated with the spoke. * * @param LinkedInterconnectAttachments $linkedInterconnectAttachments */ public function setLinkedInterconnectAttachments(LinkedInterconnectAttachments $linkedInterconnectAttachments) { $this->linkedInterconnectAttachments = $linkedInterconnectAttachments; } /** * @return LinkedInterconnectAttachments */ public function getLinkedInterconnectAttachments() { return $this->linkedInterconnectAttachments; } /** * Optional. The linked producer VPC that is associated with the spoke. * * @param LinkedProducerVpcNetwork $linkedProducerVpcNetwork */ public function setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork $linkedProducerVpcNetwork) { $this->linkedProducerVpcNetwork = $linkedProducerVpcNetwork; } /** * @return LinkedProducerVpcNetwork */ public function getLinkedProducerVpcNetwork() { return $this->linkedProducerVpcNetwork; } /** * Optional. Router appliance instances that are associated with the spoke. * * @param LinkedRouterApplianceInstances $linkedRouterApplianceInstances */ public function setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances $linkedRouterApplianceInstances) { $this->linkedRouterApplianceInstances = $linkedRouterApplianceInstances; } /** * @return LinkedRouterApplianceInstances */ public function getLinkedRouterApplianceInstances() { return $this->linkedRouterApplianceInstances; } /** * Optional. VPC network that is associated with the spoke. * * @param LinkedVpcNetwork $linkedVpcNetwork */ public function setLinkedVpcNetwork(LinkedVpcNetwork $linkedVpcNetwork) { $this->linkedVpcNetwork = $linkedVpcNetwork; } /** * @return LinkedVpcNetwork */ public function getLinkedVpcNetwork() { return $this->linkedVpcNetwork; } /** * Optional. VPN tunnels that are associated with the spoke. * * @param LinkedVpnTunnels $linkedVpnTunnels */ public function setLinkedVpnTunnels(LinkedVpnTunnels $linkedVpnTunnels) { $this->linkedVpnTunnels = $linkedVpnTunnels; } /** * @return LinkedVpnTunnels */ public function getLinkedVpnTunnels() { return $this->linkedVpnTunnels; } /** * Immutable. The name of the spoke. Spoke names must be unique. They use the * following form: * `projects/{project_number}/locations/{region}/spokes/{spoke_id}` * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Output only. The reasons for current state of the spoke. * * @param StateReason[] $reasons */ public function setReasons($reasons) { $this->reasons = $reasons; } /** * @return StateReason[] */ public function getReasons() { return $this->reasons; } /** * Output only. The type of resource associated with the spoke. * * Accepted values: SPOKE_TYPE_UNSPECIFIED, VPN_TUNNEL, * INTERCONNECT_ATTACHMENT, ROUTER_APPLIANCE, VPC_NETWORK, GATEWAY, * PRODUCER_VPC_NETWORK * * @param self::SPOKE_TYPE_* $spokeType */ public function setSpokeType($spokeType) { $this->spokeType = $spokeType; } /** * @return self::SPOKE_TYPE_* */ public function getSpokeType() { return $this->spokeType; } /** * Output only. The current lifecycle state of this spoke. * * 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 spoke. This value is unique * across all spoke resources. If a spoke is deleted and another with the same * name is created, the new spoke 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 spoke 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(Spoke::class, 'Google_Service_Networkconnectivity_Spoke');