Skip to content

Commit 403000d

Browse files
1 parent 7491ffd commit 403000d

9 files changed

Lines changed: 492 additions & 0 deletions

src/DeveloperConnect.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
385385
'type' => 'string',
386386
],
387387
],
388+
],'processBitbucketCloudWebhook' => [
389+
'path' => 'v1/{+name}:processBitbucketCloudWebhook',
390+
'httpMethod' => 'POST',
391+
'parameters' => [
392+
'name' => [
393+
'location' => 'path',
394+
'type' => 'string',
395+
'required' => true,
396+
],
397+
],
398+
],'processBitbucketDataCenterWebhook' => [
399+
'path' => 'v1/{+name}:processBitbucketDataCenterWebhook',
400+
'httpMethod' => 'POST',
401+
'parameters' => [
402+
'name' => [
403+
'location' => 'path',
404+
'type' => 'string',
405+
'required' => true,
406+
],
407+
],
388408
],'processGitLabEnterpriseWebhook' => [
389409
'path' => 'v1/{+name}:processGitLabEnterpriseWebhook',
390410
'httpMethod' => 'POST',
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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\DeveloperConnect;
19+
20+
class BitbucketCloudConfig extends \Google\Model
21+
{
22+
protected $authorizerCredentialType = UserCredential::class;
23+
protected $authorizerCredentialDataType = '';
24+
protected $readAuthorizerCredentialType = UserCredential::class;
25+
protected $readAuthorizerCredentialDataType = '';
26+
/**
27+
* @var string
28+
*/
29+
public $webhookSecretSecretVersion;
30+
/**
31+
* @var string
32+
*/
33+
public $workspace;
34+
35+
/**
36+
* @param UserCredential
37+
*/
38+
public function setAuthorizerCredential(UserCredential $authorizerCredential)
39+
{
40+
$this->authorizerCredential = $authorizerCredential;
41+
}
42+
/**
43+
* @return UserCredential
44+
*/
45+
public function getAuthorizerCredential()
46+
{
47+
return $this->authorizerCredential;
48+
}
49+
/**
50+
* @param UserCredential
51+
*/
52+
public function setReadAuthorizerCredential(UserCredential $readAuthorizerCredential)
53+
{
54+
$this->readAuthorizerCredential = $readAuthorizerCredential;
55+
}
56+
/**
57+
* @return UserCredential
58+
*/
59+
public function getReadAuthorizerCredential()
60+
{
61+
return $this->readAuthorizerCredential;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
67+
{
68+
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getWebhookSecretSecretVersion()
74+
{
75+
return $this->webhookSecretSecretVersion;
76+
}
77+
/**
78+
* @param string
79+
*/
80+
public function setWorkspace($workspace)
81+
{
82+
$this->workspace = $workspace;
83+
}
84+
/**
85+
* @return string
86+
*/
87+
public function getWorkspace()
88+
{
89+
return $this->workspace;
90+
}
91+
}
92+
93+
// Adding a class alias for backwards compatibility with the previous class name.
94+
class_alias(BitbucketCloudConfig::class, 'Google_Service_DeveloperConnect_BitbucketCloudConfig');
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
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\DeveloperConnect;
19+
20+
class BitbucketDataCenterConfig extends \Google\Model
21+
{
22+
protected $authorizerCredentialType = UserCredential::class;
23+
protected $authorizerCredentialDataType = '';
24+
/**
25+
* @var string
26+
*/
27+
public $hostUri;
28+
protected $readAuthorizerCredentialType = UserCredential::class;
29+
protected $readAuthorizerCredentialDataType = '';
30+
/**
31+
* @var string
32+
*/
33+
public $serverVersion;
34+
protected $serviceDirectoryConfigType = ServiceDirectoryConfig::class;
35+
protected $serviceDirectoryConfigDataType = '';
36+
/**
37+
* @var string
38+
*/
39+
public $sslCaCertificate;
40+
/**
41+
* @var string
42+
*/
43+
public $webhookSecretSecretVersion;
44+
45+
/**
46+
* @param UserCredential
47+
*/
48+
public function setAuthorizerCredential(UserCredential $authorizerCredential)
49+
{
50+
$this->authorizerCredential = $authorizerCredential;
51+
}
52+
/**
53+
* @return UserCredential
54+
*/
55+
public function getAuthorizerCredential()
56+
{
57+
return $this->authorizerCredential;
58+
}
59+
/**
60+
* @param string
61+
*/
62+
public function setHostUri($hostUri)
63+
{
64+
$this->hostUri = $hostUri;
65+
}
66+
/**
67+
* @return string
68+
*/
69+
public function getHostUri()
70+
{
71+
return $this->hostUri;
72+
}
73+
/**
74+
* @param UserCredential
75+
*/
76+
public function setReadAuthorizerCredential(UserCredential $readAuthorizerCredential)
77+
{
78+
$this->readAuthorizerCredential = $readAuthorizerCredential;
79+
}
80+
/**
81+
* @return UserCredential
82+
*/
83+
public function getReadAuthorizerCredential()
84+
{
85+
return $this->readAuthorizerCredential;
86+
}
87+
/**
88+
* @param string
89+
*/
90+
public function setServerVersion($serverVersion)
91+
{
92+
$this->serverVersion = $serverVersion;
93+
}
94+
/**
95+
* @return string
96+
*/
97+
public function getServerVersion()
98+
{
99+
return $this->serverVersion;
100+
}
101+
/**
102+
* @param ServiceDirectoryConfig
103+
*/
104+
public function setServiceDirectoryConfig(ServiceDirectoryConfig $serviceDirectoryConfig)
105+
{
106+
$this->serviceDirectoryConfig = $serviceDirectoryConfig;
107+
}
108+
/**
109+
* @return ServiceDirectoryConfig
110+
*/
111+
public function getServiceDirectoryConfig()
112+
{
113+
return $this->serviceDirectoryConfig;
114+
}
115+
/**
116+
* @param string
117+
*/
118+
public function setSslCaCertificate($sslCaCertificate)
119+
{
120+
$this->sslCaCertificate = $sslCaCertificate;
121+
}
122+
/**
123+
* @return string
124+
*/
125+
public function getSslCaCertificate()
126+
{
127+
return $this->sslCaCertificate;
128+
}
129+
/**
130+
* @param string
131+
*/
132+
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
133+
{
134+
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
135+
}
136+
/**
137+
* @return string
138+
*/
139+
public function getWebhookSecretSecretVersion()
140+
{
141+
return $this->webhookSecretSecretVersion;
142+
}
143+
}
144+
145+
// Adding a class alias for backwards compatibility with the previous class name.
146+
class_alias(BitbucketDataCenterConfig::class, 'Google_Service_DeveloperConnect_BitbucketDataCenterConfig');

src/DeveloperConnect/Connection.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class Connection extends \Google\Model
2323
* @var string[]
2424
*/
2525
public $annotations;
26+
protected $bitbucketCloudConfigType = BitbucketCloudConfig::class;
27+
protected $bitbucketCloudConfigDataType = '';
28+
protected $bitbucketDataCenterConfigType = BitbucketDataCenterConfig::class;
29+
protected $bitbucketDataCenterConfigDataType = '';
2630
/**
2731
* @var string
2832
*/
@@ -41,6 +45,8 @@ class Connection extends \Google\Model
4145
* @var string
4246
*/
4347
public $etag;
48+
protected $gitProxyConfigType = GitProxyConfig::class;
49+
protected $gitProxyConfigDataType = '';
4450
protected $githubConfigType = GitHubConfig::class;
4551
protected $githubConfigDataType = '';
4652
protected $githubEnterpriseConfigType = GitHubEnterpriseConfig::class;
@@ -86,6 +92,34 @@ public function getAnnotations()
8692
{
8793
return $this->annotations;
8894
}
95+
/**
96+
* @param BitbucketCloudConfig
97+
*/
98+
public function setBitbucketCloudConfig(BitbucketCloudConfig $bitbucketCloudConfig)
99+
{
100+
$this->bitbucketCloudConfig = $bitbucketCloudConfig;
101+
}
102+
/**
103+
* @return BitbucketCloudConfig
104+
*/
105+
public function getBitbucketCloudConfig()
106+
{
107+
return $this->bitbucketCloudConfig;
108+
}
109+
/**
110+
* @param BitbucketDataCenterConfig
111+
*/
112+
public function setBitbucketDataCenterConfig(BitbucketDataCenterConfig $bitbucketDataCenterConfig)
113+
{
114+
$this->bitbucketDataCenterConfig = $bitbucketDataCenterConfig;
115+
}
116+
/**
117+
* @return BitbucketDataCenterConfig
118+
*/
119+
public function getBitbucketDataCenterConfig()
120+
{
121+
return $this->bitbucketDataCenterConfig;
122+
}
89123
/**
90124
* @param string
91125
*/
@@ -156,6 +190,20 @@ public function getEtag()
156190
{
157191
return $this->etag;
158192
}
193+
/**
194+
* @param GitProxyConfig
195+
*/
196+
public function setGitProxyConfig(GitProxyConfig $gitProxyConfig)
197+
{
198+
$this->gitProxyConfig = $gitProxyConfig;
199+
}
200+
/**
201+
* @return GitProxyConfig
202+
*/
203+
public function getGitProxyConfig()
204+
{
205+
return $this->gitProxyConfig;
206+
}
159207
/**
160208
* @param GitHubConfig
161209
*/
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\DeveloperConnect;
19+
20+
class GitProxyConfig extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $enabled;
26+
27+
/**
28+
* @param bool
29+
*/
30+
public function setEnabled($enabled)
31+
{
32+
$this->enabled = $enabled;
33+
}
34+
/**
35+
* @return bool
36+
*/
37+
public function getEnabled()
38+
{
39+
return $this->enabled;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GitProxyConfig::class, 'Google_Service_DeveloperConnect_GitProxyConfig');

0 commit comments

Comments
 (0)