Skip to content

Commit 40dc66a

Browse files
1 parent a31145f commit 40dc66a

File tree

4 files changed

+198
-0
lines changed

4 files changed

+198
-0
lines changed

src/Datastream/PostgresqlProfile.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class PostgresqlProfile extends \Google\Model
3535
* @var int
3636
*/
3737
public $port;
38+
protected $sslConfigType = PostgresqlSslConfig::class;
39+
protected $sslConfigDataType = '';
3840
/**
3941
* @var string
4042
*/
@@ -96,6 +98,20 @@ public function getPort()
9698
{
9799
return $this->port;
98100
}
101+
/**
102+
* @param PostgresqlSslConfig
103+
*/
104+
public function setSslConfig(PostgresqlSslConfig $sslConfig)
105+
{
106+
$this->sslConfig = $sslConfig;
107+
}
108+
/**
109+
* @return PostgresqlSslConfig
110+
*/
111+
public function getSslConfig()
112+
{
113+
return $this->sslConfig;
114+
}
99115
/**
100116
* @param string
101117
*/
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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\Datastream;
19+
20+
class PostgresqlSslConfig extends \Google\Model
21+
{
22+
protected $serverAndClientVerificationType = ServerAndClientVerification::class;
23+
protected $serverAndClientVerificationDataType = '';
24+
protected $serverVerificationType = ServerVerification::class;
25+
protected $serverVerificationDataType = '';
26+
27+
/**
28+
* @param ServerAndClientVerification
29+
*/
30+
public function setServerAndClientVerification(ServerAndClientVerification $serverAndClientVerification)
31+
{
32+
$this->serverAndClientVerification = $serverAndClientVerification;
33+
}
34+
/**
35+
* @return ServerAndClientVerification
36+
*/
37+
public function getServerAndClientVerification()
38+
{
39+
return $this->serverAndClientVerification;
40+
}
41+
/**
42+
* @param ServerVerification
43+
*/
44+
public function setServerVerification(ServerVerification $serverVerification)
45+
{
46+
$this->serverVerification = $serverVerification;
47+
}
48+
/**
49+
* @return ServerVerification
50+
*/
51+
public function getServerVerification()
52+
{
53+
return $this->serverVerification;
54+
}
55+
}
56+
57+
// Adding a class alias for backwards compatibility with the previous class name.
58+
class_alias(PostgresqlSslConfig::class, 'Google_Service_Datastream_PostgresqlSslConfig');
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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\Datastream;
19+
20+
class ServerAndClientVerification extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $caCertificate;
26+
/**
27+
* @var string
28+
*/
29+
public $clientCertificate;
30+
/**
31+
* @var string
32+
*/
33+
public $clientKey;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setCaCertificate($caCertificate)
39+
{
40+
$this->caCertificate = $caCertificate;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getCaCertificate()
46+
{
47+
return $this->caCertificate;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setClientCertificate($clientCertificate)
53+
{
54+
$this->clientCertificate = $clientCertificate;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getClientCertificate()
60+
{
61+
return $this->clientCertificate;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setClientKey($clientKey)
67+
{
68+
$this->clientKey = $clientKey;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getClientKey()
74+
{
75+
return $this->clientKey;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(ServerAndClientVerification::class, 'Google_Service_Datastream_ServerAndClientVerification');
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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\Datastream;
19+
20+
class ServerVerification extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $caCertificate;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setCaCertificate($caCertificate)
31+
{
32+
$this->caCertificate = $caCertificate;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getCaCertificate()
38+
{
39+
return $this->caCertificate;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(ServerVerification::class, 'Google_Service_Datastream_ServerVerification');

0 commit comments

Comments
 (0)