Skip to content

Commit abf0907

Browse files
1 parent b131a7b commit abf0907

2 files changed

Lines changed: 168 additions & 3 deletions

File tree

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\NetworkManagement;
19+
20+
class GoogleManagedServiceInfo extends \Google\Model
21+
{
22+
/**
23+
* Service type is unspecified.
24+
*/
25+
public const SERVICE_TYPE_SERVICE_TYPE_UNSPECIFIED = 'SERVICE_TYPE_UNSPECIFIED';
26+
/**
27+
* Unsupported Google-managed service.
28+
*/
29+
public const SERVICE_TYPE_UNSUPPORTED = 'UNSUPPORTED';
30+
/**
31+
* Cloud SQL Instance.
32+
*/
33+
public const SERVICE_TYPE_CLOUD_SQL = 'CLOUD_SQL';
34+
/**
35+
* GKE Cluster control plane.
36+
*/
37+
public const SERVICE_TYPE_GKE_CLUSTER_CONTROL_PLANE = 'GKE_CLUSTER_CONTROL_PLANE';
38+
/**
39+
* Redis Cluster.
40+
*/
41+
public const SERVICE_TYPE_REDIS_CLUSTER = 'REDIS_CLUSTER';
42+
/**
43+
* Redis Instance.
44+
*/
45+
public const SERVICE_TYPE_REDIS_INSTANCE = 'REDIS_INSTANCE';
46+
/**
47+
* IP address of the Google-managed service endpoint.
48+
*
49+
* @var string
50+
*/
51+
public $ipAddress;
52+
/**
53+
* URI of the Google-managed service endpoint network, it is empty if the IP
54+
* address is a public IP address.
55+
*
56+
* @var string
57+
*/
58+
public $networkUri;
59+
/**
60+
* Type of a Google-managed service.
61+
*
62+
* @var string
63+
*/
64+
public $serviceType;
65+
/**
66+
* URI of the Google-managed service.
67+
*
68+
* @var string
69+
*/
70+
public $serviceUri;
71+
72+
/**
73+
* IP address of the Google-managed service endpoint.
74+
*
75+
* @param string $ipAddress
76+
*/
77+
public function setIpAddress($ipAddress)
78+
{
79+
$this->ipAddress = $ipAddress;
80+
}
81+
/**
82+
* @return string
83+
*/
84+
public function getIpAddress()
85+
{
86+
return $this->ipAddress;
87+
}
88+
/**
89+
* URI of the Google-managed service endpoint network, it is empty if the IP
90+
* address is a public IP address.
91+
*
92+
* @param string $networkUri
93+
*/
94+
public function setNetworkUri($networkUri)
95+
{
96+
$this->networkUri = $networkUri;
97+
}
98+
/**
99+
* @return string
100+
*/
101+
public function getNetworkUri()
102+
{
103+
return $this->networkUri;
104+
}
105+
/**
106+
* Type of a Google-managed service.
107+
*
108+
* Accepted values: SERVICE_TYPE_UNSPECIFIED, UNSUPPORTED, CLOUD_SQL,
109+
* GKE_CLUSTER_CONTROL_PLANE, REDIS_CLUSTER, REDIS_INSTANCE
110+
*
111+
* @param self::SERVICE_TYPE_* $serviceType
112+
*/
113+
public function setServiceType($serviceType)
114+
{
115+
$this->serviceType = $serviceType;
116+
}
117+
/**
118+
* @return self::SERVICE_TYPE_*
119+
*/
120+
public function getServiceType()
121+
{
122+
return $this->serviceType;
123+
}
124+
/**
125+
* URI of the Google-managed service.
126+
*
127+
* @param string $serviceUri
128+
*/
129+
public function setServiceUri($serviceUri)
130+
{
131+
$this->serviceUri = $serviceUri;
132+
}
133+
/**
134+
* @return string
135+
*/
136+
public function getServiceUri()
137+
{
138+
return $this->serviceUri;
139+
}
140+
}
141+
142+
// Adding a class alias for backwards compatibility with the previous class name.
143+
class_alias(GoogleManagedServiceInfo::class, 'Google_Service_NetworkManagement_GoogleManagedServiceInfo');

src/NetworkManagement/Step.php

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ class Step extends \Google\Model
172172
* forwarded through public (external) connectivity.
173173
*/
174174
public const STATE_SERVERLESS_EXTERNAL_CONNECTION = 'SERVERLESS_EXTERNAL_CONNECTION';
175+
/**
176+
* Forwarding state: arriving at a Google-managed service endpoint.
177+
*/
178+
public const STATE_ARRIVE_AT_GOOGLE_MANAGED_SERVICE = 'ARRIVE_AT_GOOGLE_MANAGED_SERVICE';
175179
/**
176180
* Transition state: packet header translated. The `nat` field is populated
177181
* with the translation information.
@@ -249,6 +253,8 @@ class Step extends \Google\Model
249253
protected $gkeMasterDataType = '';
250254
protected $gkePodType = GkePodInfo::class;
251255
protected $gkePodDataType = '';
256+
protected $googleManagedServiceType = GoogleManagedServiceInfo::class;
257+
protected $googleManagedServiceDataType = '';
252258
protected $googleServiceType = GoogleServiceInfo::class;
253259
protected $googleServiceDataType = '';
254260
protected $hybridSubnetType = HybridSubnetInfo::class;
@@ -558,6 +564,22 @@ public function getGkePod()
558564
{
559565
return $this->gkePod;
560566
}
567+
/**
568+
* Display information of a Google-managed service.
569+
*
570+
* @param GoogleManagedServiceInfo $googleManagedService
571+
*/
572+
public function setGoogleManagedService(GoogleManagedServiceInfo $googleManagedService)
573+
{
574+
$this->googleManagedService = $googleManagedService;
575+
}
576+
/**
577+
* @return GoogleManagedServiceInfo
578+
*/
579+
public function getGoogleManagedService()
580+
{
581+
return $this->googleManagedService;
582+
}
561583
/**
562584
* Display information of a Google service
563585
*
@@ -834,9 +856,9 @@ public function getServerlessNeg()
834856
* ARRIVE_AT_EXTERNAL_LOAD_BALANCER, ARRIVE_AT_HYBRID_SUBNET,
835857
* ARRIVE_AT_VPN_GATEWAY, ARRIVE_AT_VPN_TUNNEL,
836858
* ARRIVE_AT_INTERCONNECT_ATTACHMENT, ARRIVE_AT_VPC_CONNECTOR,
837-
* DIRECT_VPC_EGRESS_CONNECTION, SERVERLESS_EXTERNAL_CONNECTION, NAT,
838-
* SKIP_GKE_POD_IP_MASQUERADING, PROXY_CONNECTION, DELIVER, DROP, FORWARD,
839-
* ABORT, VIEWER_PERMISSION_MISSING
859+
* DIRECT_VPC_EGRESS_CONNECTION, SERVERLESS_EXTERNAL_CONNECTION,
860+
* ARRIVE_AT_GOOGLE_MANAGED_SERVICE, NAT, SKIP_GKE_POD_IP_MASQUERADING,
861+
* PROXY_CONNECTION, DELIVER, DROP, FORWARD, ABORT, VIEWER_PERMISSION_MISSING
840862
*
841863
* @param self::STATE_* $state
842864
*/

0 commit comments

Comments
 (0)