Skip to content

Commit 342f32c

Browse files
1 parent a534a02 commit 342f32c

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

src/NetworkManagement/DropInfo.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ class DropInfo extends \Google\Model
8383
*/
8484
public const CAUSE_ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 'ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID';
8585
/**
86-
* Packet is sent from the Internet or Google service to the private IPv6
87-
* address.
86+
* Packet is sent from the Internet to the private IPv6 address.
8887
*/
8988
public const CAUSE_NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS';
89+
/**
90+
* Packet is sent from the Internet to the private IPv4 address.
91+
*/
92+
public const CAUSE_NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS = 'NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS';
9093
/**
9194
* Packet is sent from the external IPv6 source address of an instance to the
9295
* private IPv6 address of an instance.
@@ -577,6 +580,7 @@ class DropInfo extends \Google\Model
577580
* ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED,
578581
* ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID,
579582
* NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS,
583+
* NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV4_ADDRESS,
580584
* NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS,
581585
* VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH, VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH,
582586
* PRIVATE_TRAFFIC_TO_INTERNET, PRIVATE_GOOGLE_ACCESS_DISALLOWED,

src/NetworkManagement/Endpoint.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,17 @@ class Endpoint extends \Google\Model
191191
*/
192192
public $loadBalancerType;
193193
/**
194-
* A VPC network URI. Used according to the `network_type`. Relevant only for
195-
* the source endpoints.
194+
* A VPC network URI. For source endpoints, used according to the
195+
* `network_type`. For destination endpoints, used only when the source is an
196+
* external IP address endpoint, and the destination is an internal IP address
197+
* endpoint.
196198
*
197199
* @var string
198200
*/
199201
public $network;
200202
/**
201-
* Type of the network where the endpoint is located. Relevant only for the
202-
* source endpoints.
203+
* For source endpoints, type of the network where the endpoint is located.
204+
* Not relevant for destination endpoints.
203205
*
204206
* @var string
205207
*/
@@ -212,8 +214,8 @@ class Endpoint extends \Google\Model
212214
*/
213215
public $port;
214216
/**
215-
* Endpoint project ID. Used according to the `network_type`. Relevant only
216-
* for the source endpoints.
217+
* For source endpoints, endpoint project ID. Used according to the
218+
* `network_type`. Not relevant for destination endpoints.
217219
*
218220
* @var string
219221
*/
@@ -472,8 +474,10 @@ public function getLoadBalancerType()
472474
return $this->loadBalancerType;
473475
}
474476
/**
475-
* A VPC network URI. Used according to the `network_type`. Relevant only for
476-
* the source endpoints.
477+
* A VPC network URI. For source endpoints, used according to the
478+
* `network_type`. For destination endpoints, used only when the source is an
479+
* external IP address endpoint, and the destination is an internal IP address
480+
* endpoint.
477481
*
478482
* @param string $network
479483
*/
@@ -489,8 +493,8 @@ public function getNetwork()
489493
return $this->network;
490494
}
491495
/**
492-
* Type of the network where the endpoint is located. Relevant only for the
493-
* source endpoints.
496+
* For source endpoints, type of the network where the endpoint is located.
497+
* Not relevant for destination endpoints.
494498
*
495499
* Accepted values: NETWORK_TYPE_UNSPECIFIED, GCP_NETWORK, NON_GCP_NETWORK,
496500
* INTERNET
@@ -526,8 +530,8 @@ public function getPort()
526530
return $this->port;
527531
}
528532
/**
529-
* Endpoint project ID. Used according to the `network_type`. Relevant only
530-
* for the source endpoints.
533+
* For source endpoints, endpoint project ID. Used according to the
534+
* `network_type`. Not relevant for destination endpoints.
531535
*
532536
* @param string $projectId
533537
*/

0 commit comments

Comments
 (0)