diff --git a/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1Hub.php b/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1Hub.php index 30cda58856..c2ad77d98c 100644 --- a/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1Hub.php +++ b/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1Hub.php @@ -19,22 +19,22 @@ class GoogleCloudBeyondcorpSecuritygatewaysV1Hub extends \Google\Model { - protected $natGatewayConfigType = GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig::class; - protected $natGatewayConfigDataType = ''; + protected $internetGatewayType = GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway::class; + protected $internetGatewayDataType = ''; /** - * @param GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig + * @param GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway */ - public function setNatGatewayConfig(GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig $natGatewayConfig) + public function setInternetGateway(GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway $internetGateway) { - $this->natGatewayConfig = $natGatewayConfig; + $this->internetGateway = $internetGateway; } /** - * @return GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig + * @return GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway */ - public function getNatGatewayConfig() + public function getInternetGateway() { - return $this->natGatewayConfig; + return $this->internetGateway; } } diff --git a/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway.php b/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway.php new file mode 100644 index 0000000000..6ff6110c7e --- /dev/null +++ b/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway.php @@ -0,0 +1,45 @@ +assignedIps = $assignedIps; + } + /** + * @return string[] + */ + public function getAssignedIps() + { + return $this->assignedIps; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway::class, 'Google_Service_BeyondCorp_GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway'); diff --git a/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest.php b/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest.php index 6b35455422..a28e0a13f3 100644 --- a/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest.php +++ b/src/BeyondCorp/GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest.php @@ -19,7 +19,9 @@ class GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest extends \Google\Collection { - protected $collection_key = 'vpcPeerings'; + protected $collection_key = 'peerings'; + protected $peeringsType = GoogleCloudBeyondcorpSecuritygatewaysV1Peering::class; + protected $peeringsDataType = 'array'; /** * @var string */ @@ -28,9 +30,21 @@ class GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest extends \Google\C * @var bool */ public $validateOnly; - protected $vpcPeeringsType = GoogleCloudBeyondcorpSecuritygatewaysV1Peering::class; - protected $vpcPeeringsDataType = 'array'; + /** + * @param GoogleCloudBeyondcorpSecuritygatewaysV1Peering[] + */ + public function setPeerings($peerings) + { + $this->peerings = $peerings; + } + /** + * @return GoogleCloudBeyondcorpSecuritygatewaysV1Peering[] + */ + public function getPeerings() + { + return $this->peerings; + } /** * @param string */ @@ -59,20 +73,6 @@ public function getValidateOnly() { return $this->validateOnly; } - /** - * @param GoogleCloudBeyondcorpSecuritygatewaysV1Peering[] - */ - public function setVpcPeerings($vpcPeerings) - { - $this->vpcPeerings = $vpcPeerings; - } - /** - * @return GoogleCloudBeyondcorpSecuritygatewaysV1Peering[] - */ - public function getVpcPeerings() - { - return $this->vpcPeerings; - } } // Adding a class alias for backwards compatibility with the previous class name.