Skip to content

Commit 2c97ef6

Browse files
1 parent 342f32c commit 2c97ef6

13 files changed

Lines changed: 379 additions & 19 deletions

src/DeveloperConnect/AccountConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function getOauthStartUri()
169169
return $this->oauthStartUri;
170170
}
171171
/**
172-
* Provider OAuth config.
172+
* Optional. Provider OAuth config.
173173
*
174174
* @param ProviderOAuthConfig $providerOauthConfig
175175
*/
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 BasicAuthentication extends \Google\Model
21+
{
22+
/**
23+
* The password SecretManager secret version to authenticate as.
24+
*
25+
* @var string
26+
*/
27+
public $passwordSecretVersion;
28+
/**
29+
* Required. The username to authenticate as.
30+
*
31+
* @var string
32+
*/
33+
public $username;
34+
35+
/**
36+
* The password SecretManager secret version to authenticate as.
37+
*
38+
* @param string $passwordSecretVersion
39+
*/
40+
public function setPasswordSecretVersion($passwordSecretVersion)
41+
{
42+
$this->passwordSecretVersion = $passwordSecretVersion;
43+
}
44+
/**
45+
* @return string
46+
*/
47+
public function getPasswordSecretVersion()
48+
{
49+
return $this->passwordSecretVersion;
50+
}
51+
/**
52+
* Required. The username to authenticate as.
53+
*
54+
* @param string $username
55+
*/
56+
public function setUsername($username)
57+
{
58+
$this->username = $username;
59+
}
60+
/**
61+
* @return string
62+
*/
63+
public function getUsername()
64+
{
65+
return $this->username;
66+
}
67+
}
68+
69+
// Adding a class alias for backwards compatibility with the previous class name.
70+
class_alias(BasicAuthentication::class, 'Google_Service_DeveloperConnect_BasicAuthentication');
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 BearerTokenAuthentication extends \Google\Model
21+
{
22+
/**
23+
* Optional. The token SecretManager secret version to authenticate as.
24+
*
25+
* @var string
26+
*/
27+
public $tokenSecretVersion;
28+
29+
/**
30+
* Optional. The token SecretManager secret version to authenticate as.
31+
*
32+
* @param string $tokenSecretVersion
33+
*/
34+
public function setTokenSecretVersion($tokenSecretVersion)
35+
{
36+
$this->tokenSecretVersion = $tokenSecretVersion;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getTokenSecretVersion()
42+
{
43+
return $this->tokenSecretVersion;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(BearerTokenAuthentication::class, 'Google_Service_DeveloperConnect_BearerTokenAuthentication');

src/DeveloperConnect/Connection.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class Connection extends \Google\Model
6969
protected $gitlabConfigDataType = '';
7070
protected $gitlabEnterpriseConfigType = GitLabEnterpriseConfig::class;
7171
protected $gitlabEnterpriseConfigDataType = '';
72+
protected $httpConfigType = GenericHTTPEndpointConfig::class;
73+
protected $httpConfigDataType = '';
7274
protected $installationStateType = InstallationState::class;
7375
protected $installationStateDataType = '';
7476
/**
@@ -91,6 +93,8 @@ class Connection extends \Google\Model
9193
* @var bool
9294
*/
9395
public $reconciling;
96+
protected $secureSourceManagerInstanceConfigType = SecureSourceManagerInstanceConfig::class;
97+
protected $secureSourceManagerInstanceConfigDataType = '';
9498
/**
9599
* Output only. A system-assigned unique identifier for the Connection.
96100
*
@@ -319,6 +323,22 @@ public function getGitlabEnterpriseConfig()
319323
{
320324
return $this->gitlabEnterpriseConfig;
321325
}
326+
/**
327+
* Optional. Configuration for connections to an HTTP service provider.
328+
*
329+
* @param GenericHTTPEndpointConfig $httpConfig
330+
*/
331+
public function setHttpConfig(GenericHTTPEndpointConfig $httpConfig)
332+
{
333+
$this->httpConfig = $httpConfig;
334+
}
335+
/**
336+
* @return GenericHTTPEndpointConfig
337+
*/
338+
public function getHttpConfig()
339+
{
340+
return $this->httpConfig;
341+
}
322342
/**
323343
* Output only. Installation state of the Connection.
324344
*
@@ -385,6 +405,22 @@ public function getReconciling()
385405
{
386406
return $this->reconciling;
387407
}
408+
/**
409+
* Configuration for connections to an instance of Secure Source Manager.
410+
*
411+
* @param SecureSourceManagerInstanceConfig $secureSourceManagerInstanceConfig
412+
*/
413+
public function setSecureSourceManagerInstanceConfig(SecureSourceManagerInstanceConfig $secureSourceManagerInstanceConfig)
414+
{
415+
$this->secureSourceManagerInstanceConfig = $secureSourceManagerInstanceConfig;
416+
}
417+
/**
418+
* @return SecureSourceManagerInstanceConfig
419+
*/
420+
public function getSecureSourceManagerInstanceConfig()
421+
{
422+
return $this->secureSourceManagerInstanceConfig;
423+
}
388424
/**
389425
* Output only. A system-assigned unique identifier for the Connection.
390426
*

src/DeveloperConnect/DeploymentEvent.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ class DeploymentEvent extends \Google\Collection
4848
*/
4949
public $deployTime;
5050
/**
51-
* Identifier. The name of the DeploymentEvent. This name is provided by DCI.
52-
* Format: projects/{project}/locations/{location}/insightsConfigs/{insights_c
53-
* onfig}/deploymentEvents/{uuid}
51+
* Identifier. The name of the DeploymentEvent. This name is provided by
52+
* Developer Connect insights. Format: projects/{project}/locations/{location}
53+
* /insightsConfigs/{insights_config}/deploymentEvents/{uuid}
5454
*
5555
* @var string
5656
*/
@@ -142,9 +142,9 @@ public function getDeployTime()
142142
return $this->deployTime;
143143
}
144144
/**
145-
* Identifier. The name of the DeploymentEvent. This name is provided by DCI.
146-
* Format: projects/{project}/locations/{location}/insightsConfigs/{insights_c
147-
* onfig}/deploymentEvents/{uuid}
145+
* Identifier. The name of the DeploymentEvent. This name is provided by
146+
* Developer Connect insights. Format: projects/{project}/locations/{location}
147+
* /insightsConfigs/{insights_config}/deploymentEvents/{uuid}
148148
*
149149
* @param string $name
150150
*/
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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 GenericHTTPEndpointConfig extends \Google\Model
21+
{
22+
protected $basicAuthenticationType = BasicAuthentication::class;
23+
protected $basicAuthenticationDataType = '';
24+
protected $bearerTokenAuthenticationType = BearerTokenAuthentication::class;
25+
protected $bearerTokenAuthenticationDataType = '';
26+
/**
27+
* Required. Immutable. The service provider's https endpoint.
28+
*
29+
* @var string
30+
*/
31+
public $hostUri;
32+
protected $serviceDirectoryConfigType = ServiceDirectoryConfig::class;
33+
protected $serviceDirectoryConfigDataType = '';
34+
/**
35+
* Optional. The SSL certificate to use for requests to the HTTP service
36+
* provider.
37+
*
38+
* @var string
39+
*/
40+
public $sslCaCertificate;
41+
42+
/**
43+
* Optional. Basic authentication with username and password.
44+
*
45+
* @param BasicAuthentication $basicAuthentication
46+
*/
47+
public function setBasicAuthentication(BasicAuthentication $basicAuthentication)
48+
{
49+
$this->basicAuthentication = $basicAuthentication;
50+
}
51+
/**
52+
* @return BasicAuthentication
53+
*/
54+
public function getBasicAuthentication()
55+
{
56+
return $this->basicAuthentication;
57+
}
58+
/**
59+
* Optional. Bearer token authentication with a token.
60+
*
61+
* @param BearerTokenAuthentication $bearerTokenAuthentication
62+
*/
63+
public function setBearerTokenAuthentication(BearerTokenAuthentication $bearerTokenAuthentication)
64+
{
65+
$this->bearerTokenAuthentication = $bearerTokenAuthentication;
66+
}
67+
/**
68+
* @return BearerTokenAuthentication
69+
*/
70+
public function getBearerTokenAuthentication()
71+
{
72+
return $this->bearerTokenAuthentication;
73+
}
74+
/**
75+
* Required. Immutable. The service provider's https endpoint.
76+
*
77+
* @param string $hostUri
78+
*/
79+
public function setHostUri($hostUri)
80+
{
81+
$this->hostUri = $hostUri;
82+
}
83+
/**
84+
* @return string
85+
*/
86+
public function getHostUri()
87+
{
88+
return $this->hostUri;
89+
}
90+
/**
91+
* Optional. Configuration for using Service Directory to privately connect to
92+
* a HTTP service provider. This should only be set if the Http service
93+
* provider is hosted on-premises and not reachable by public internet. If
94+
* this field is left empty, calls to the HTTP service provider will be made
95+
* over the public internet.
96+
*
97+
* @param ServiceDirectoryConfig $serviceDirectoryConfig
98+
*/
99+
public function setServiceDirectoryConfig(ServiceDirectoryConfig $serviceDirectoryConfig)
100+
{
101+
$this->serviceDirectoryConfig = $serviceDirectoryConfig;
102+
}
103+
/**
104+
* @return ServiceDirectoryConfig
105+
*/
106+
public function getServiceDirectoryConfig()
107+
{
108+
return $this->serviceDirectoryConfig;
109+
}
110+
/**
111+
* Optional. The SSL certificate to use for requests to the HTTP service
112+
* provider.
113+
*
114+
* @param string $sslCaCertificate
115+
*/
116+
public function setSslCaCertificate($sslCaCertificate)
117+
{
118+
$this->sslCaCertificate = $sslCaCertificate;
119+
}
120+
/**
121+
* @return string
122+
*/
123+
public function getSslCaCertificate()
124+
{
125+
return $this->sslCaCertificate;
126+
}
127+
}
128+
129+
// Adding a class alias for backwards compatibility with the previous class name.
130+
class_alias(GenericHTTPEndpointConfig::class, 'Google_Service_DeveloperConnect_GenericHTTPEndpointConfig');

src/DeveloperConnect/GitHubEnterpriseConfig.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ class GitHubEnterpriseConfig extends \Google\Model
5050
* @var string
5151
*/
5252
public $installationUri;
53+
/**
54+
* Optional. Immutable. GitHub Enterprise organization in which the GitHub App
55+
* is created.
56+
*
57+
* @var string
58+
*/
59+
public $organization;
5360
/**
5461
* Optional. SecretManager resource containing the private key of the GitHub
5562
* App, formatted as `projects/secrets/versions` or
@@ -164,6 +171,23 @@ public function getInstallationUri()
164171
{
165172
return $this->installationUri;
166173
}
174+
/**
175+
* Optional. Immutable. GitHub Enterprise organization in which the GitHub App
176+
* is created.
177+
*
178+
* @param string $organization
179+
*/
180+
public function setOrganization($organization)
181+
{
182+
$this->organization = $organization;
183+
}
184+
/**
185+
* @return string
186+
*/
187+
public function getOrganization()
188+
{
189+
return $this->organization;
190+
}
167191
/**
168192
* Optional. SecretManager resource containing the private key of the GitHub
169193
* App, formatted as `projects/secrets/versions` or

src/DeveloperConnect/InsightsConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function getName()
221221
return $this->name;
222222
}
223223
/**
224-
* Optional. The GCP projects to track with the InsightsConfig.
224+
* Optional. The projects to track with the InsightsConfig.
225225
*
226226
* @param Projects $projects
227227
*/

0 commit comments

Comments
 (0)