Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class AccountConnector extends \Google\Model
{
/**
* Optional. Allows users to store small amounts of arbitrary data.
*
* @var string[]
*/
public $annotations;
/**
* Output only. The timestamp when the accountConnector was created.
*
* @var string
*/
public $createTime;
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Optional. Labels as key value pairs
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the accountConnector, in the format `proje
* cts/{project}/locations/{location}/accountConnectors/{account_connector_id}
* `.
*
* @var string
*/
public $name;
/**
* Output only. Start OAuth flow by clicking on this URL.
*
* @var string
*/
public $oauthStartUri;
protected $providerOauthConfigType = ProviderOAuthConfig::class;
protected $providerOauthConfigDataType = '';
/**
* Output only. The timestamp when the accountConnector was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. Allows users to store small amounts of arbitrary data.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The timestamp when the accountConnector was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the accountConnector, in the format `proje
* cts/{project}/locations/{location}/accountConnectors/{account_connector_id}
* `.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Start OAuth flow by clicking on this URL.
*
* @param string $oauthStartUri
*/
public function setOauthStartUri($oauthStartUri)
{
$this->oauthStartUri = $oauthStartUri;
}
/**
* @return string
*/
public function getOauthStartUri()
{
return $this->oauthStartUri;
}
/**
* Provider OAuth config.
*
* @param ProviderOAuthConfig $providerOauthConfig
*/
public function setProviderOauthConfig(ProviderOAuthConfig $providerOauthConfig)
{
$this->providerOauthConfig = $providerOauthConfig;
}
/**
* @return ProviderOAuthConfig
*/
public function getProviderOauthConfig()
{
return $this->providerOauthConfig;
}
/**
* Output only. The timestamp when the accountConnector was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountConnector::class, 'Google_Service_DeveloperConnect_AccountConnector');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class AppHubService extends \Google\Model
{
/**
* Required. Output only. Immutable. The name of the App Hub Service. Format:
* `projects/{project}/locations/{location}/applications/{application}/service
* s/{service}`.
*
* @var string
*/
public $apphubService;
/**
* Output only. The criticality of the App Hub Service.
*
* @var string
*/
public $criticality;
/**
* Output only. The environment of the App Hub Service.
*
* @var string
*/
public $environment;
/**
* Required. Output only. Immutable. The name of the App Hub Service. Format:
* `projects/{project}/locations/{location}/applications/{application}/service
* s/{service}`.
*
* @param string $apphubService
*/
public function setApphubService($apphubService)
{
$this->apphubService = $apphubService;
}
/**
* @return string
*/
public function getApphubService()
{
return $this->apphubService;
}
/**
* Output only. The criticality of the App Hub Service.
*
* @param string $criticality
*/
public function setCriticality($criticality)
{
$this->criticality = $criticality;
}
/**
* @return string
*/
public function getCriticality()
{
return $this->criticality;
}
/**
* Output only. The environment of the App Hub Service.
*
* @param string $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return string
*/
public function getEnvironment()
{
return $this->environment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppHubService::class, 'Google_Service_DeveloperConnect_AppHubService');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class AppHubWorkload extends \Google\Model
{
/**
* Output only. The criticality of the App Hub Workload.
*
* @var string
*/
public $criticality;
/**
* Output only. The environment of the App Hub Workload.
*
* @var string
*/
public $environment;
/**
* Required. Output only. Immutable. The name of the App Hub Workload. Format:
* `projects/{project}/locations/{location}/applications/{application}/workloa
* ds/{workload}`.
*
* @var string
*/
public $workload;
/**
* Output only. The criticality of the App Hub Workload.
*
* @param string $criticality
*/
public function setCriticality($criticality)
{
$this->criticality = $criticality;
}
/**
* @return string
*/
public function getCriticality()
{
return $this->criticality;
}
/**
* Output only. The environment of the App Hub Workload.
*
* @param string $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return string
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* Required. Output only. Immutable. The name of the App Hub Workload. Format:
* `projects/{project}/locations/{location}/applications/{application}/workloa
* ds/{workload}`.
*
* @param string $workload
*/
public function setWorkload($workload)
{
$this->workload = $workload;
}
/**
* @return string
*/
public function getWorkload()
{
return $this->workload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppHubWorkload::class, 'Google_Service_DeveloperConnect_AppHubWorkload');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ArtifactConfig extends \Google\Model
{
protected $googleArtifactAnalysisType = GoogleArtifactAnalysis::class;
protected $googleArtifactAnalysisDataType = '';
protected $googleArtifactRegistryType = GoogleArtifactRegistry::class;
protected $googleArtifactRegistryDataType = '';
/**
* Required. Immutable. The URI of the artifact that is deployed. e.g. `us-
* docker.pkg.dev/my-project/my-repo/image`. The URI does not include the tag
* / digest because it captures a lineage of artifacts.
*
* @var string
*/
public $uri;
/**
* Optional. Set if the artifact metadata is stored in Artifact analysis.
*
* @param GoogleArtifactAnalysis $googleArtifactAnalysis
*/
public function setGoogleArtifactAnalysis(GoogleArtifactAnalysis $googleArtifactAnalysis)
{
$this->googleArtifactAnalysis = $googleArtifactAnalysis;
}
/**
* @return GoogleArtifactAnalysis
*/
public function getGoogleArtifactAnalysis()
{
return $this->googleArtifactAnalysis;
}
/**
* Optional. Set if the artifact is stored in Artifact registry.
*
* @param GoogleArtifactRegistry $googleArtifactRegistry
*/
public function setGoogleArtifactRegistry(GoogleArtifactRegistry $googleArtifactRegistry)
{
$this->googleArtifactRegistry = $googleArtifactRegistry;
}
/**
* @return GoogleArtifactRegistry
*/
public function getGoogleArtifactRegistry()
{
return $this->googleArtifactRegistry;
}
/**
* Required. Immutable. The URI of the artifact that is deployed. e.g. `us-
* docker.pkg.dev/my-project/my-repo/image`. The URI does not include the tag
* / digest because it captures a lineage of artifacts.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactConfig::class, 'Google_Service_DeveloperConnect_ArtifactConfig');

View File

@@ -0,0 +1,191 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ArtifactDeployment extends \Google\Collection
{
protected $collection_key = 'sourceCommitUris';
/**
* Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g.
* us-docker.pkg.dev/my-project/my-repo/image:1.0.0
*
* @var string
*/
public $artifactAlias;
/**
* Output only. The artifact that is deployed.
*
* @var string
*/
public $artifactReference;
/**
* Output only. The summary of container status of the artifact deployment.
* Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-
* ImagePullBackOff : 3"
*
* @var string
*/
public $containerStatusSummary;
/**
* Output only. The time at which the deployment was deployed.
*
* @var string
*/
public $deployTime;
/**
* Output only. Unique identifier of `ArtifactDeployment`.
*
* @var string
*/
public $id;
/**
* Output only. The source commits at which this artifact was built. Extracted
* from provenance.
*
* @var string[]
*/
public $sourceCommitUris;
/**
* Output only. The time at which the deployment was undeployed, all artifacts
* are considered undeployed once this time is set.
*
* @var string
*/
public $undeployTime;
/**
* Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g.
* us-docker.pkg.dev/my-project/my-repo/image:1.0.0
*
* @param string $artifactAlias
*/
public function setArtifactAlias($artifactAlias)
{
$this->artifactAlias = $artifactAlias;
}
/**
* @return string
*/
public function getArtifactAlias()
{
return $this->artifactAlias;
}
/**
* Output only. The artifact that is deployed.
*
* @param string $artifactReference
*/
public function setArtifactReference($artifactReference)
{
$this->artifactReference = $artifactReference;
}
/**
* @return string
*/
public function getArtifactReference()
{
return $this->artifactReference;
}
/**
* Output only. The summary of container status of the artifact deployment.
* Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-
* ImagePullBackOff : 3"
*
* @param string $containerStatusSummary
*/
public function setContainerStatusSummary($containerStatusSummary)
{
$this->containerStatusSummary = $containerStatusSummary;
}
/**
* @return string
*/
public function getContainerStatusSummary()
{
return $this->containerStatusSummary;
}
/**
* Output only. The time at which the deployment was deployed.
*
* @param string $deployTime
*/
public function setDeployTime($deployTime)
{
$this->deployTime = $deployTime;
}
/**
* @return string
*/
public function getDeployTime()
{
return $this->deployTime;
}
/**
* Output only. Unique identifier of `ArtifactDeployment`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. The source commits at which this artifact was built. Extracted
* from provenance.
*
* @param string[] $sourceCommitUris
*/
public function setSourceCommitUris($sourceCommitUris)
{
$this->sourceCommitUris = $sourceCommitUris;
}
/**
* @return string[]
*/
public function getSourceCommitUris()
{
return $this->sourceCommitUris;
}
/**
* Output only. The time at which the deployment was undeployed, all artifacts
* are considered undeployed once this time is set.
*
* @param string $undeployTime
*/
public function setUndeployTime($undeployTime)
{
$this->undeployTime = $undeployTime;
}
/**
* @return string
*/
public function getUndeployTime()
{
return $this->undeployTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactDeployment::class, 'Google_Service_DeveloperConnect_ArtifactDeployment');

View File

@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class BitbucketCloudConfig extends \Google\Model
{
protected $authorizerCredentialType = UserCredential::class;
protected $authorizerCredentialDataType = '';
protected $readAuthorizerCredentialType = UserCredential::class;
protected $readAuthorizerCredentialDataType = '';
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* used to verify webhook events, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate and create webhooks.
*
* @var string
*/
public $webhookSecretSecretVersion;
/**
* Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
* Platform.
*
* @var string
*/
public $workspace;
/**
* Required. An access token with the minimum `repository`, `pullrequest` and
* `webhook` scope access. It can either be a workspace, project or repository
* access token. This is needed to create webhooks. It's recommended to use a
* system account to generate these credentials.
*
* @param UserCredential $authorizerCredential
*/
public function setAuthorizerCredential(UserCredential $authorizerCredential)
{
$this->authorizerCredential = $authorizerCredential;
}
/**
* @return UserCredential
*/
public function getAuthorizerCredential()
{
return $this->authorizerCredential;
}
/**
* Required. An access token with the minimum `repository` access. It can
* either be a workspace, project or repository access token. It's recommended
* to use a system account to generate the credentials.
*
* @param UserCredential $readAuthorizerCredential
*/
public function setReadAuthorizerCredential(UserCredential $readAuthorizerCredential)
{
$this->readAuthorizerCredential = $readAuthorizerCredential;
}
/**
* @return UserCredential
*/
public function getReadAuthorizerCredential()
{
return $this->readAuthorizerCredential;
}
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* used to verify webhook events, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate and create webhooks.
*
* @param string $webhookSecretSecretVersion
*/
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
{
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
}
/**
* @return string
*/
public function getWebhookSecretSecretVersion()
{
return $this->webhookSecretSecretVersion;
}
/**
* Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
* Platform.
*
* @param string $workspace
*/
public function setWorkspace($workspace)
{
$this->workspace = $workspace;
}
/**
* @return string
*/
public function getWorkspace()
{
return $this->workspace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BitbucketCloudConfig::class, 'Google_Service_DeveloperConnect_BitbucketCloudConfig');

View File

@@ -0,0 +1,185 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class BitbucketDataCenterConfig extends \Google\Model
{
protected $authorizerCredentialType = UserCredential::class;
protected $authorizerCredentialDataType = '';
/**
* Required. The URI of the Bitbucket Data Center host this connection is for.
*
* @var string
*/
public $hostUri;
protected $readAuthorizerCredentialType = UserCredential::class;
protected $readAuthorizerCredentialDataType = '';
/**
* Output only. Version of the Bitbucket Data Center server running on the
* `host_uri`.
*
* @var string
*/
public $serverVersion;
protected $serviceDirectoryConfigType = ServiceDirectoryConfig::class;
protected $serviceDirectoryConfigDataType = '';
/**
* Optional. SSL certificate authority to trust when making requests to
* Bitbucket Data Center.
*
* @var string
*/
public $sslCaCertificate;
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* used to verify webhook events, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate webhooks.
*
* @var string
*/
public $webhookSecretSecretVersion;
/**
* Required. An http access token with the minimum `Repository admin` scope
* access. This is needed to create webhooks. It's recommended to use a system
* account to generate these credentials.
*
* @param UserCredential $authorizerCredential
*/
public function setAuthorizerCredential(UserCredential $authorizerCredential)
{
$this->authorizerCredential = $authorizerCredential;
}
/**
* @return UserCredential
*/
public function getAuthorizerCredential()
{
return $this->authorizerCredential;
}
/**
* Required. The URI of the Bitbucket Data Center host this connection is for.
*
* @param string $hostUri
*/
public function setHostUri($hostUri)
{
$this->hostUri = $hostUri;
}
/**
* @return string
*/
public function getHostUri()
{
return $this->hostUri;
}
/**
* Required. An http access token with the minimum `Repository read` access.
* It's recommended to use a system account to generate the credentials.
*
* @param UserCredential $readAuthorizerCredential
*/
public function setReadAuthorizerCredential(UserCredential $readAuthorizerCredential)
{
$this->readAuthorizerCredential = $readAuthorizerCredential;
}
/**
* @return UserCredential
*/
public function getReadAuthorizerCredential()
{
return $this->readAuthorizerCredential;
}
/**
* Output only. Version of the Bitbucket Data Center server running on the
* `host_uri`.
*
* @param string $serverVersion
*/
public function setServerVersion($serverVersion)
{
$this->serverVersion = $serverVersion;
}
/**
* @return string
*/
public function getServerVersion()
{
return $this->serverVersion;
}
/**
* Optional. Configuration for using Service Directory to privately connect to
* a Bitbucket Data Center instance. This should only be set if the Bitbucket
* Data Center is hosted on-premises and not reachable by public internet. If
* this field is left empty, calls to the Bitbucket Data Center will be made
* over the public internet.
*
* @param ServiceDirectoryConfig $serviceDirectoryConfig
*/
public function setServiceDirectoryConfig(ServiceDirectoryConfig $serviceDirectoryConfig)
{
$this->serviceDirectoryConfig = $serviceDirectoryConfig;
}
/**
* @return ServiceDirectoryConfig
*/
public function getServiceDirectoryConfig()
{
return $this->serviceDirectoryConfig;
}
/**
* Optional. SSL certificate authority to trust when making requests to
* Bitbucket Data Center.
*
* @param string $sslCaCertificate
*/
public function setSslCaCertificate($sslCaCertificate)
{
$this->sslCaCertificate = $sslCaCertificate;
}
/**
* @return string
*/
public function getSslCaCertificate()
{
return $this->sslCaCertificate;
}
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* used to verify webhook events, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate webhooks.
*
* @param string $webhookSecretSecretVersion
*/
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
{
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
}
/**
* @return string
*/
public function getWebhookSecretSecretVersion()
{
return $this->webhookSecretSecretVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BitbucketDataCenterConfig::class, 'Google_Service_DeveloperConnect_BitbucketDataCenterConfig');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_DeveloperConnect_CancelOperationRequest');

View File

@@ -0,0 +1,423 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class Connection extends \Google\Model
{
/**
* Optional. Allows clients to store small amounts of arbitrary data.
*
* @var string[]
*/
public $annotations;
protected $bitbucketCloudConfigType = BitbucketCloudConfig::class;
protected $bitbucketCloudConfigDataType = '';
protected $bitbucketDataCenterConfigType = BitbucketDataCenterConfig::class;
protected $bitbucketDataCenterConfigDataType = '';
/**
* Output only. [Output only] Create timestamp
*
* @var string
*/
public $createTime;
protected $cryptoKeyConfigType = CryptoKeyConfig::class;
protected $cryptoKeyConfigDataType = '';
/**
* Output only. [Output only] Delete timestamp
*
* @var string
*/
public $deleteTime;
/**
* Optional. If disabled is set to true, functionality is disabled for this
* connection. Repository based API methods and webhooks processing for
* repositories in this connection will be disabled.
*
* @var bool
*/
public $disabled;
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
protected $gitProxyConfigType = GitProxyConfig::class;
protected $gitProxyConfigDataType = '';
protected $githubConfigType = GitHubConfig::class;
protected $githubConfigDataType = '';
protected $githubEnterpriseConfigType = GitHubEnterpriseConfig::class;
protected $githubEnterpriseConfigDataType = '';
protected $gitlabConfigType = GitLabConfig::class;
protected $gitlabConfigDataType = '';
protected $gitlabEnterpriseConfigType = GitLabEnterpriseConfig::class;
protected $gitlabEnterpriseConfigDataType = '';
protected $installationStateType = InstallationState::class;
protected $installationStateDataType = '';
/**
* Optional. Labels as key value pairs
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the connection, in the format
* `projects/{project}/locations/{location}/connections/{connection_id}`.
*
* @var string
*/
public $name;
/**
* Output only. Set to true when the connection is being set up or updated in
* the background.
*
* @var bool
*/
public $reconciling;
/**
* Output only. A system-assigned unique identifier for the Connection.
*
* @var string
*/
public $uid;
/**
* Output only. [Output only] Update timestamp
*
* @var string
*/
public $updateTime;
/**
* Optional. Allows clients to store small amounts of arbitrary data.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Configuration for connections to an instance of Bitbucket Clouds.
*
* @param BitbucketCloudConfig $bitbucketCloudConfig
*/
public function setBitbucketCloudConfig(BitbucketCloudConfig $bitbucketCloudConfig)
{
$this->bitbucketCloudConfig = $bitbucketCloudConfig;
}
/**
* @return BitbucketCloudConfig
*/
public function getBitbucketCloudConfig()
{
return $this->bitbucketCloudConfig;
}
/**
* Configuration for connections to an instance of Bitbucket Data Center.
*
* @param BitbucketDataCenterConfig $bitbucketDataCenterConfig
*/
public function setBitbucketDataCenterConfig(BitbucketDataCenterConfig $bitbucketDataCenterConfig)
{
$this->bitbucketDataCenterConfig = $bitbucketDataCenterConfig;
}
/**
* @return BitbucketDataCenterConfig
*/
public function getBitbucketDataCenterConfig()
{
return $this->bitbucketDataCenterConfig;
}
/**
* Output only. [Output only] Create timestamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The crypto key configuration. This field is used by the Customer-
* Managed Encryption Keys (CMEK) feature.
*
* @param CryptoKeyConfig $cryptoKeyConfig
*/
public function setCryptoKeyConfig(CryptoKeyConfig $cryptoKeyConfig)
{
$this->cryptoKeyConfig = $cryptoKeyConfig;
}
/**
* @return CryptoKeyConfig
*/
public function getCryptoKeyConfig()
{
return $this->cryptoKeyConfig;
}
/**
* Output only. [Output only] Delete timestamp
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Optional. If disabled is set to true, functionality is disabled for this
* connection. Repository based API methods and webhooks processing for
* repositories in this connection will be disabled.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Configuration for the git proxy feature. Enabling the git proxy
* allows clients to perform git operations on the repositories linked in the
* connection.
*
* @param GitProxyConfig $gitProxyConfig
*/
public function setGitProxyConfig(GitProxyConfig $gitProxyConfig)
{
$this->gitProxyConfig = $gitProxyConfig;
}
/**
* @return GitProxyConfig
*/
public function getGitProxyConfig()
{
return $this->gitProxyConfig;
}
/**
* Configuration for connections to github.com.
*
* @param GitHubConfig $githubConfig
*/
public function setGithubConfig(GitHubConfig $githubConfig)
{
$this->githubConfig = $githubConfig;
}
/**
* @return GitHubConfig
*/
public function getGithubConfig()
{
return $this->githubConfig;
}
/**
* Configuration for connections to an instance of GitHub Enterprise.
*
* @param GitHubEnterpriseConfig $githubEnterpriseConfig
*/
public function setGithubEnterpriseConfig(GitHubEnterpriseConfig $githubEnterpriseConfig)
{
$this->githubEnterpriseConfig = $githubEnterpriseConfig;
}
/**
* @return GitHubEnterpriseConfig
*/
public function getGithubEnterpriseConfig()
{
return $this->githubEnterpriseConfig;
}
/**
* Configuration for connections to gitlab.com.
*
* @param GitLabConfig $gitlabConfig
*/
public function setGitlabConfig(GitLabConfig $gitlabConfig)
{
$this->gitlabConfig = $gitlabConfig;
}
/**
* @return GitLabConfig
*/
public function getGitlabConfig()
{
return $this->gitlabConfig;
}
/**
* Configuration for connections to an instance of GitLab Enterprise.
*
* @param GitLabEnterpriseConfig $gitlabEnterpriseConfig
*/
public function setGitlabEnterpriseConfig(GitLabEnterpriseConfig $gitlabEnterpriseConfig)
{
$this->gitlabEnterpriseConfig = $gitlabEnterpriseConfig;
}
/**
* @return GitLabEnterpriseConfig
*/
public function getGitlabEnterpriseConfig()
{
return $this->gitlabEnterpriseConfig;
}
/**
* Output only. Installation state of the Connection.
*
* @param InstallationState $installationState
*/
public function setInstallationState(InstallationState $installationState)
{
$this->installationState = $installationState;
}
/**
* @return InstallationState
*/
public function getInstallationState()
{
return $this->installationState;
}
/**
* Optional. Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the connection, in the format
* `projects/{project}/locations/{location}/connections/{connection_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Set to true when the connection is being set up or updated in
* the background.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. A system-assigned unique identifier for the Connection.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. [Output only] Update timestamp
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connection::class, 'Google_Service_DeveloperConnect_Connection');

View File

@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class CryptoKeyConfig extends \Google\Model
{
/**
* Required. The name of the key which is used to encrypt/decrypt customer
* data. For key in Cloud KMS, the key should be in the format of
* `projects/locations/keyRings/cryptoKeys`.
*
* @var string
*/
public $keyReference;
/**
* Required. The name of the key which is used to encrypt/decrypt customer
* data. For key in Cloud KMS, the key should be in the format of
* `projects/locations/keyRings/cryptoKeys`.
*
* @param string $keyReference
*/
public function setKeyReference($keyReference)
{
$this->keyReference = $keyReference;
}
/**
* @return string
*/
public function getKeyReference()
{
return $this->keyReference;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CryptoKeyConfig::class, 'Google_Service_DeveloperConnect_CryptoKeyConfig');

View File

@@ -0,0 +1,255 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class DeploymentEvent extends \Google\Collection
{
/**
* No state specified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The deployment is active in the runtime.
*/
public const STATE_STATE_ACTIVE = 'STATE_ACTIVE';
/**
* The deployment is not in the runtime.
*/
public const STATE_STATE_INACTIVE = 'STATE_INACTIVE';
protected $collection_key = 'artifactDeployments';
protected $artifactDeploymentsType = ArtifactDeployment::class;
protected $artifactDeploymentsDataType = 'array';
/**
* Output only. The create time of the DeploymentEvent.
*
* @var string
*/
public $createTime;
/**
* Output only. The time at which the DeploymentEvent was deployed. This would
* be the min of all ArtifactDeployment deploy_times.
*
* @var string
*/
public $deployTime;
/**
* Identifier. The name of the DeploymentEvent. This name is provided by DCI.
* Format: projects/{project}/locations/{location}/insightsConfigs/{insights_c
* onfig}/deploymentEvents/{uuid}
*
* @var string
*/
public $name;
protected $runtimeConfigType = RuntimeConfig::class;
protected $runtimeConfigDataType = '';
/**
* Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this
* is the fully qualified replica set uri. e.g. container.googleapis.com/proje
* cts/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{names
* pace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision
* name.
*
* @var string
*/
public $runtimeDeploymentUri;
/**
* Output only. The state of the DeploymentEvent.
*
* @var string
*/
public $state;
/**
* Output only. The time at which the DeploymentEvent was undeployed, all
* artifacts are considered undeployed once this time is set. This would be
* the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment
* is still active (i.e. does not have an undeploy_time), this field will be
* empty.
*
* @var string
*/
public $undeployTime;
/**
* Output only. The update time of the DeploymentEvent.
*
* @var string
*/
public $updateTime;
/**
* Output only. The artifact deployments of the DeploymentEvent. Each artifact
* deployment contains the artifact uri and the runtime configuration uri. For
* GKE, this would be all the containers images that are deployed in the pod.
*
* @param ArtifactDeployment[] $artifactDeployments
*/
public function setArtifactDeployments($artifactDeployments)
{
$this->artifactDeployments = $artifactDeployments;
}
/**
* @return ArtifactDeployment[]
*/
public function getArtifactDeployments()
{
return $this->artifactDeployments;
}
/**
* Output only. The create time of the DeploymentEvent.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time at which the DeploymentEvent was deployed. This would
* be the min of all ArtifactDeployment deploy_times.
*
* @param string $deployTime
*/
public function setDeployTime($deployTime)
{
$this->deployTime = $deployTime;
}
/**
* @return string
*/
public function getDeployTime()
{
return $this->deployTime;
}
/**
* Identifier. The name of the DeploymentEvent. This name is provided by DCI.
* Format: projects/{project}/locations/{location}/insightsConfigs/{insights_c
* onfig}/deploymentEvents/{uuid}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The runtime configurations where the DeploymentEvent happened.
*
* @param RuntimeConfig $runtimeConfig
*/
public function setRuntimeConfig(RuntimeConfig $runtimeConfig)
{
$this->runtimeConfig = $runtimeConfig;
}
/**
* @return RuntimeConfig
*/
public function getRuntimeConfig()
{
return $this->runtimeConfig;
}
/**
* Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this
* is the fully qualified replica set uri. e.g. container.googleapis.com/proje
* cts/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{names
* pace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision
* name.
*
* @param string $runtimeDeploymentUri
*/
public function setRuntimeDeploymentUri($runtimeDeploymentUri)
{
$this->runtimeDeploymentUri = $runtimeDeploymentUri;
}
/**
* @return string
*/
public function getRuntimeDeploymentUri()
{
return $this->runtimeDeploymentUri;
}
/**
* Output only. The state of the DeploymentEvent.
*
* Accepted values: STATE_UNSPECIFIED, STATE_ACTIVE, STATE_INACTIVE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The time at which the DeploymentEvent was undeployed, all
* artifacts are considered undeployed once this time is set. This would be
* the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment
* is still active (i.e. does not have an undeploy_time), this field will be
* empty.
*
* @param string $undeployTime
*/
public function setUndeployTime($undeployTime)
{
$this->undeployTime = $undeployTime;
}
/**
* @return string
*/
public function getUndeployTime()
{
return $this->undeployTime;
}
/**
* Output only. The update time of the DeploymentEvent.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentEvent::class, 'Google_Service_DeveloperConnect_DeploymentEvent');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class DeveloperconnectEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeveloperconnectEmpty::class, 'Google_Service_DeveloperConnect_DeveloperconnectEmpty');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ExchangeError extends \Google\Model
{
/**
* https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error
*
* @var string
*/
public $code;
/**
* https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 -
* error_description
*
* @var string
*/
public $description;
/**
* https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 -
* error_description
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExchangeError::class, 'Google_Service_DeveloperConnect_ExchangeError');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchAccessTokenRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchAccessTokenRequest::class, 'Google_Service_DeveloperConnect_FetchAccessTokenRequest');

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchAccessTokenResponse extends \Google\Collection
{
protected $collection_key = 'scopes';
protected $exchangeErrorType = ExchangeError::class;
protected $exchangeErrorDataType = '';
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* @var string
*/
public $expirationTime;
/**
* The scopes of the access token.
*
* @var string[]
*/
public $scopes;
/**
* The token content.
*
* @var string
*/
public $token;
/**
* The error resulted from exchanging OAuth tokens from the service provider.
*
* @param ExchangeError $exchangeError
*/
public function setExchangeError(ExchangeError $exchangeError)
{
$this->exchangeError = $exchangeError;
}
/**
* @return ExchangeError
*/
public function getExchangeError()
{
return $this->exchangeError;
}
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* @param string $expirationTime
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* The scopes of the access token.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* The token content.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchAccessTokenResponse::class, 'Google_Service_DeveloperConnect_FetchAccessTokenResponse');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchGitHubInstallationsResponse extends \Google\Collection
{
protected $collection_key = 'installations';
protected $installationsType = Installation::class;
protected $installationsDataType = 'array';
/**
* List of installations available to the OAuth user (for github.com) or all
* the installations (for GitHub enterprise).
*
* @param Installation[] $installations
*/
public function setInstallations($installations)
{
$this->installations = $installations;
}
/**
* @return Installation[]
*/
public function getInstallations()
{
return $this->installations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchGitHubInstallationsResponse::class, 'Google_Service_DeveloperConnect_FetchGitHubInstallationsResponse');

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchGitRefsResponse extends \Google\Collection
{
protected $collection_key = 'refNames';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Name of the refs fetched.
*
* @var string[]
*/
public $refNames;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Name of the refs fetched.
*
* @param string[] $refNames
*/
public function setRefNames($refNames)
{
$this->refNames = $refNames;
}
/**
* @return string[]
*/
public function getRefNames()
{
return $this->refNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchGitRefsResponse::class, 'Google_Service_DeveloperConnect_FetchGitRefsResponse');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchLinkableGitRepositoriesResponse extends \Google\Collection
{
protected $collection_key = 'linkableGitRepositories';
protected $linkableGitRepositoriesType = LinkableGitRepository::class;
protected $linkableGitRepositoriesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* The git repositories that can be linked to the connection.
*
* @param LinkableGitRepository[] $linkableGitRepositories
*/
public function setLinkableGitRepositories($linkableGitRepositories)
{
$this->linkableGitRepositories = $linkableGitRepositories;
}
/**
* @return LinkableGitRepository[]
*/
public function getLinkableGitRepositories()
{
return $this->linkableGitRepositories;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchLinkableGitRepositoriesResponse::class, 'Google_Service_DeveloperConnect_FetchLinkableGitRepositoriesResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchReadTokenRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchReadTokenRequest::class, 'Google_Service_DeveloperConnect_FetchReadTokenRequest');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchReadTokenResponse extends \Google\Model
{
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* @var string
*/
public $expirationTime;
/**
* The git_username to specify when making a git clone with the token. For
* example, for GitHub GitRepositoryLinks, this would be "x-access-token"
*
* @var string
*/
public $gitUsername;
/**
* The token content.
*
* @var string
*/
public $token;
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* @param string $expirationTime
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* The git_username to specify when making a git clone with the token. For
* example, for GitHub GitRepositoryLinks, this would be "x-access-token"
*
* @param string $gitUsername
*/
public function setGitUsername($gitUsername)
{
$this->gitUsername = $gitUsername;
}
/**
* @return string
*/
public function getGitUsername()
{
return $this->gitUsername;
}
/**
* The token content.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchReadTokenResponse::class, 'Google_Service_DeveloperConnect_FetchReadTokenResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchReadWriteTokenRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchReadWriteTokenRequest::class, 'Google_Service_DeveloperConnect_FetchReadWriteTokenRequest');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FetchReadWriteTokenResponse extends \Google\Model
{
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* @var string
*/
public $expirationTime;
/**
* The git_username to specify when making a git clone with the token. For
* example, for GitHub GitRepositoryLinks, this would be "x-access-token"
*
* @var string
*/
public $gitUsername;
/**
* The token content.
*
* @var string
*/
public $token;
/**
* Expiration timestamp. Can be empty if unknown or non-expiring.
*
* @param string $expirationTime
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* The git_username to specify when making a git clone with the token. For
* example, for GitHub GitRepositoryLinks, this would be "x-access-token"
*
* @param string $gitUsername
*/
public function setGitUsername($gitUsername)
{
$this->gitUsername = $gitUsername;
}
/**
* @return string
*/
public function getGitUsername()
{
return $this->gitUsername;
}
/**
* The token content.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchReadWriteTokenResponse::class, 'Google_Service_DeveloperConnect_FetchReadWriteTokenResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class FinishOAuthResponse extends \Google\Model
{
protected $exchangeErrorType = ExchangeError::class;
protected $exchangeErrorDataType = '';
/**
* The error resulted from exchanging OAuth tokens from the service provider.
*
* @param ExchangeError $exchangeError
*/
public function setExchangeError(ExchangeError $exchangeError)
{
$this->exchangeError = $exchangeError;
}
/**
* @return ExchangeError
*/
public function getExchangeError()
{
return $this->exchangeError;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FinishOAuthResponse::class, 'Google_Service_DeveloperConnect_FinishOAuthResponse');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GKEWorkload extends \Google\Model
{
/**
* Required. Immutable. The name of the GKE cluster. Format:
* `projects/{project}/locations/{location}/clusters/{cluster}`.
*
* @var string
*/
public $cluster;
/**
* Output only. The name of the GKE deployment. Format: `projects/{project}/lo
* cations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{d
* eployment}`.
*
* @var string
*/
public $deployment;
/**
* Required. Immutable. The name of the GKE cluster. Format:
* `projects/{project}/locations/{location}/clusters/{cluster}`.
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Output only. The name of the GKE deployment. Format: `projects/{project}/lo
* cations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{d
* eployment}`.
*
* @param string $deployment
*/
public function setDeployment($deployment)
{
$this->deployment = $deployment;
}
/**
* @return string
*/
public function getDeployment()
{
return $this->deployment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GKEWorkload::class, 'Google_Service_DeveloperConnect_GKEWorkload');

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GitHubConfig extends \Google\Model
{
/**
* GitHub App not specified.
*/
public const GITHUB_APP_GIT_HUB_APP_UNSPECIFIED = 'GIT_HUB_APP_UNSPECIFIED';
/**
* The Developer Connect GitHub Application.
*/
public const GITHUB_APP_DEVELOPER_CONNECT = 'DEVELOPER_CONNECT';
/**
* The Firebase GitHub Application.
*/
public const GITHUB_APP_FIREBASE = 'FIREBASE';
/**
* The Gemini Code Assist Application.
*/
public const GITHUB_APP_GEMINI_CODE_ASSIST = 'GEMINI_CODE_ASSIST';
/**
* Optional. GitHub App installation id.
*
* @var string
*/
public $appInstallationId;
protected $authorizerCredentialType = OAuthCredential::class;
protected $authorizerCredentialDataType = '';
/**
* Required. Immutable. The GitHub Application that was installed to the
* GitHub user or organization.
*
* @var string
*/
public $githubApp;
/**
* Output only. The URI to navigate to in order to manage the installation
* associated with this GitHubConfig.
*
* @var string
*/
public $installationUri;
/**
* Optional. GitHub App installation id.
*
* @param string $appInstallationId
*/
public function setAppInstallationId($appInstallationId)
{
$this->appInstallationId = $appInstallationId;
}
/**
* @return string
*/
public function getAppInstallationId()
{
return $this->appInstallationId;
}
/**
* Optional. OAuth credential of the account that authorized the GitHub App.
* It is recommended to use a robot account instead of a human user account.
* The OAuth token must be tied to the GitHub App of this config.
*
* @param OAuthCredential $authorizerCredential
*/
public function setAuthorizerCredential(OAuthCredential $authorizerCredential)
{
$this->authorizerCredential = $authorizerCredential;
}
/**
* @return OAuthCredential
*/
public function getAuthorizerCredential()
{
return $this->authorizerCredential;
}
/**
* Required. Immutable. The GitHub Application that was installed to the
* GitHub user or organization.
*
* Accepted values: GIT_HUB_APP_UNSPECIFIED, DEVELOPER_CONNECT, FIREBASE,
* GEMINI_CODE_ASSIST
*
* @param self::GITHUB_APP_* $githubApp
*/
public function setGithubApp($githubApp)
{
$this->githubApp = $githubApp;
}
/**
* @return self::GITHUB_APP_*
*/
public function getGithubApp()
{
return $this->githubApp;
}
/**
* Output only. The URI to navigate to in order to manage the installation
* associated with this GitHubConfig.
*
* @param string $installationUri
*/
public function setInstallationUri($installationUri)
{
$this->installationUri = $installationUri;
}
/**
* @return string
*/
public function getInstallationUri()
{
return $this->installationUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GitHubConfig::class, 'Google_Service_DeveloperConnect_GitHubConfig');

View File

@@ -0,0 +1,260 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GitHubEnterpriseConfig extends \Google\Model
{
/**
* Optional. ID of the GitHub App created from the manifest.
*
* @var string
*/
public $appId;
/**
* Optional. ID of the installation of the GitHub App.
*
* @var string
*/
public $appInstallationId;
/**
* Output only. The URL-friendly name of the GitHub App.
*
* @var string
*/
public $appSlug;
/**
* Required. The URI of the GitHub Enterprise host this connection is for.
*
* @var string
*/
public $hostUri;
/**
* Output only. The URI to navigate to in order to manage the installation
* associated with this GitHubEnterpriseConfig.
*
* @var string
*/
public $installationUri;
/**
* Optional. SecretManager resource containing the private key of the GitHub
* App, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location).
*
* @var string
*/
public $privateKeySecretVersion;
/**
* Output only. GitHub Enterprise version installed at the host_uri.
*
* @var string
*/
public $serverVersion;
protected $serviceDirectoryConfigType = ServiceDirectoryConfig::class;
protected $serviceDirectoryConfigDataType = '';
/**
* Optional. SSL certificate to use for requests to GitHub Enterprise.
*
* @var string
*/
public $sslCaCertificate;
/**
* Optional. SecretManager resource containing the webhook secret of the
* GitHub App, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location).
*
* @var string
*/
public $webhookSecretSecretVersion;
/**
* Optional. ID of the GitHub App created from the manifest.
*
* @param string $appId
*/
public function setAppId($appId)
{
$this->appId = $appId;
}
/**
* @return string
*/
public function getAppId()
{
return $this->appId;
}
/**
* Optional. ID of the installation of the GitHub App.
*
* @param string $appInstallationId
*/
public function setAppInstallationId($appInstallationId)
{
$this->appInstallationId = $appInstallationId;
}
/**
* @return string
*/
public function getAppInstallationId()
{
return $this->appInstallationId;
}
/**
* Output only. The URL-friendly name of the GitHub App.
*
* @param string $appSlug
*/
public function setAppSlug($appSlug)
{
$this->appSlug = $appSlug;
}
/**
* @return string
*/
public function getAppSlug()
{
return $this->appSlug;
}
/**
* Required. The URI of the GitHub Enterprise host this connection is for.
*
* @param string $hostUri
*/
public function setHostUri($hostUri)
{
$this->hostUri = $hostUri;
}
/**
* @return string
*/
public function getHostUri()
{
return $this->hostUri;
}
/**
* Output only. The URI to navigate to in order to manage the installation
* associated with this GitHubEnterpriseConfig.
*
* @param string $installationUri
*/
public function setInstallationUri($installationUri)
{
$this->installationUri = $installationUri;
}
/**
* @return string
*/
public function getInstallationUri()
{
return $this->installationUri;
}
/**
* Optional. SecretManager resource containing the private key of the GitHub
* App, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location).
*
* @param string $privateKeySecretVersion
*/
public function setPrivateKeySecretVersion($privateKeySecretVersion)
{
$this->privateKeySecretVersion = $privateKeySecretVersion;
}
/**
* @return string
*/
public function getPrivateKeySecretVersion()
{
return $this->privateKeySecretVersion;
}
/**
* Output only. GitHub Enterprise version installed at the host_uri.
*
* @param string $serverVersion
*/
public function setServerVersion($serverVersion)
{
$this->serverVersion = $serverVersion;
}
/**
* @return string
*/
public function getServerVersion()
{
return $this->serverVersion;
}
/**
* Optional. Configuration for using Service Directory to privately connect to
* a GitHub Enterprise server. This should only be set if the GitHub
* Enterprise server is hosted on-premises and not reachable by public
* internet. If this field is left empty, calls to the GitHub Enterprise
* server will be made over the public internet.
*
* @param ServiceDirectoryConfig $serviceDirectoryConfig
*/
public function setServiceDirectoryConfig(ServiceDirectoryConfig $serviceDirectoryConfig)
{
$this->serviceDirectoryConfig = $serviceDirectoryConfig;
}
/**
* @return ServiceDirectoryConfig
*/
public function getServiceDirectoryConfig()
{
return $this->serviceDirectoryConfig;
}
/**
* Optional. SSL certificate to use for requests to GitHub Enterprise.
*
* @param string $sslCaCertificate
*/
public function setSslCaCertificate($sslCaCertificate)
{
$this->sslCaCertificate = $sslCaCertificate;
}
/**
* @return string
*/
public function getSslCaCertificate()
{
return $this->sslCaCertificate;
}
/**
* Optional. SecretManager resource containing the webhook secret of the
* GitHub App, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location).
*
* @param string $webhookSecretSecretVersion
*/
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
{
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
}
/**
* @return string
*/
public function getWebhookSecretSecretVersion()
{
return $this->webhookSecretSecretVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GitHubEnterpriseConfig::class, 'Google_Service_DeveloperConnect_GitHubEnterpriseConfig');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GitLabConfig extends \Google\Model
{
protected $authorizerCredentialType = UserCredential::class;
protected $authorizerCredentialDataType = '';
protected $readAuthorizerCredentialType = UserCredential::class;
protected $readAuthorizerCredentialDataType = '';
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* of a GitLab project, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate webhooks.
*
* @var string
*/
public $webhookSecretSecretVersion;
/**
* Required. A GitLab personal access token with the minimum `api` scope
* access and a minimum role of `maintainer`. The GitLab Projects visible to
* this Personal Access Token will control which Projects Developer Connect
* has access to.
*
* @param UserCredential $authorizerCredential
*/
public function setAuthorizerCredential(UserCredential $authorizerCredential)
{
$this->authorizerCredential = $authorizerCredential;
}
/**
* @return UserCredential
*/
public function getAuthorizerCredential()
{
return $this->authorizerCredential;
}
/**
* Required. A GitLab personal access token with the minimum `read_api` scope
* access and a minimum role of `reporter`. The GitLab Projects visible to
* this Personal Access Token will control which Projects Developer Connect
* has access to.
*
* @param UserCredential $readAuthorizerCredential
*/
public function setReadAuthorizerCredential(UserCredential $readAuthorizerCredential)
{
$this->readAuthorizerCredential = $readAuthorizerCredential;
}
/**
* @return UserCredential
*/
public function getReadAuthorizerCredential()
{
return $this->readAuthorizerCredential;
}
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* of a GitLab project, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate webhooks.
*
* @param string $webhookSecretSecretVersion
*/
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
{
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
}
/**
* @return string
*/
public function getWebhookSecretSecretVersion()
{
return $this->webhookSecretSecretVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GitLabConfig::class, 'Google_Service_DeveloperConnect_GitLabConfig');

View File

@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GitLabEnterpriseConfig extends \Google\Model
{
protected $authorizerCredentialType = UserCredential::class;
protected $authorizerCredentialDataType = '';
/**
* Required. The URI of the GitLab Enterprise host this connection is for.
*
* @var string
*/
public $hostUri;
protected $readAuthorizerCredentialType = UserCredential::class;
protected $readAuthorizerCredentialDataType = '';
/**
* Output only. Version of the GitLab Enterprise server running on the
* `host_uri`.
*
* @var string
*/
public $serverVersion;
protected $serviceDirectoryConfigType = ServiceDirectoryConfig::class;
protected $serviceDirectoryConfigDataType = '';
/**
* Optional. SSL Certificate Authority certificate to use for requests to
* GitLab Enterprise instance.
*
* @var string
*/
public $sslCaCertificate;
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* of a GitLab project, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate webhooks.
*
* @var string
*/
public $webhookSecretSecretVersion;
/**
* Required. A GitLab personal access token with the minimum `api` scope
* access and a minimum role of `maintainer`. The GitLab Projects visible to
* this Personal Access Token will control which Projects Developer Connect
* has access to.
*
* @param UserCredential $authorizerCredential
*/
public function setAuthorizerCredential(UserCredential $authorizerCredential)
{
$this->authorizerCredential = $authorizerCredential;
}
/**
* @return UserCredential
*/
public function getAuthorizerCredential()
{
return $this->authorizerCredential;
}
/**
* Required. The URI of the GitLab Enterprise host this connection is for.
*
* @param string $hostUri
*/
public function setHostUri($hostUri)
{
$this->hostUri = $hostUri;
}
/**
* @return string
*/
public function getHostUri()
{
return $this->hostUri;
}
/**
* Required. A GitLab personal access token with the minimum `read_api` scope
* access and a minimum role of `reporter`. The GitLab Projects visible to
* this Personal Access Token will control which Projects Developer Connect
* has access to.
*
* @param UserCredential $readAuthorizerCredential
*/
public function setReadAuthorizerCredential(UserCredential $readAuthorizerCredential)
{
$this->readAuthorizerCredential = $readAuthorizerCredential;
}
/**
* @return UserCredential
*/
public function getReadAuthorizerCredential()
{
return $this->readAuthorizerCredential;
}
/**
* Output only. Version of the GitLab Enterprise server running on the
* `host_uri`.
*
* @param string $serverVersion
*/
public function setServerVersion($serverVersion)
{
$this->serverVersion = $serverVersion;
}
/**
* @return string
*/
public function getServerVersion()
{
return $this->serverVersion;
}
/**
* Optional. Configuration for using Service Directory to privately connect to
* a GitLab Enterprise instance. This should only be set if the GitLab
* Enterprise server is hosted on-premises and not reachable by public
* internet. If this field is left empty, calls to the GitLab Enterprise
* server will be made over the public internet.
*
* @param ServiceDirectoryConfig $serviceDirectoryConfig
*/
public function setServiceDirectoryConfig(ServiceDirectoryConfig $serviceDirectoryConfig)
{
$this->serviceDirectoryConfig = $serviceDirectoryConfig;
}
/**
* @return ServiceDirectoryConfig
*/
public function getServiceDirectoryConfig()
{
return $this->serviceDirectoryConfig;
}
/**
* Optional. SSL Certificate Authority certificate to use for requests to
* GitLab Enterprise instance.
*
* @param string $sslCaCertificate
*/
public function setSslCaCertificate($sslCaCertificate)
{
$this->sslCaCertificate = $sslCaCertificate;
}
/**
* @return string
*/
public function getSslCaCertificate()
{
return $this->sslCaCertificate;
}
/**
* Required. Immutable. SecretManager resource containing the webhook secret
* of a GitLab project, formatted as `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location). This is used to validate webhooks.
*
* @param string $webhookSecretSecretVersion
*/
public function setWebhookSecretSecretVersion($webhookSecretSecretVersion)
{
$this->webhookSecretSecretVersion = $webhookSecretSecretVersion;
}
/**
* @return string
*/
public function getWebhookSecretSecretVersion()
{
return $this->webhookSecretSecretVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GitLabEnterpriseConfig::class, 'Google_Service_DeveloperConnect_GitLabEnterpriseConfig');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GitProxyConfig extends \Google\Model
{
/**
* Optional. Setting this to true allows the git proxy to be used for
* performing git operations on the repositories linked in the connection.
*
* @var bool
*/
public $enabled;
/**
* Output only. The base URI for the HTTP proxy endpoint. Has the format
* `https://{generatedID}-c-h-{shortRegion}.developerconnect.dev` Populated
* only when enabled is set to true. This endpoint is used by other Google
* services that integrate with Developer Connect.
*
* @var string
*/
public $httpProxyBaseUri;
/**
* Optional. Setting this to true allows the git proxy to be used for
* performing git operations on the repositories linked in the connection.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Output only. The base URI for the HTTP proxy endpoint. Has the format
* `https://{generatedID}-c-h-{shortRegion}.developerconnect.dev` Populated
* only when enabled is set to true. This endpoint is used by other Google
* services that integrate with Developer Connect.
*
* @param string $httpProxyBaseUri
*/
public function setHttpProxyBaseUri($httpProxyBaseUri)
{
$this->httpProxyBaseUri = $httpProxyBaseUri;
}
/**
* @return string
*/
public function getHttpProxyBaseUri()
{
return $this->httpProxyBaseUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GitProxyConfig::class, 'Google_Service_DeveloperConnect_GitProxyConfig');

View File

@@ -0,0 +1,302 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GitRepositoryLink extends \Google\Model
{
/**
* Optional. Allows clients to store small amounts of arbitrary data.
*
* @var string[]
*/
public $annotations;
/**
* Required. Git Clone URI.
*
* @var string
*/
public $cloneUri;
/**
* Output only. [Output only] Create timestamp
*
* @var string
*/
public $createTime;
/**
* Output only. [Output only] Delete timestamp
*
* @var string
*/
public $deleteTime;
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Output only. URI to access the linked repository through the Git Proxy.
* This field is only populated if the git proxy is enabled for the
* connection.
*
* @var string
*/
public $gitProxyUri;
/**
* Optional. Labels as key value pairs
*
* @var string[]
*/
public $labels;
/**
* Identifier. Resource name of the repository, in the format
* `projects/locations/connections/gitRepositoryLinks`.
*
* @var string
*/
public $name;
/**
* Output only. Set to true when the connection is being set up or updated in
* the background.
*
* @var bool
*/
public $reconciling;
/**
* Output only. A system-assigned unique identifier for the GitRepositoryLink.
*
* @var string
*/
public $uid;
/**
* Output only. [Output only] Update timestamp
*
* @var string
*/
public $updateTime;
/**
* Output only. External ID of the webhook created for the repository.
*
* @var string
*/
public $webhookId;
/**
* Optional. Allows clients to store small amounts of arbitrary data.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Required. Git Clone URI.
*
* @param string $cloneUri
*/
public function setCloneUri($cloneUri)
{
$this->cloneUri = $cloneUri;
}
/**
* @return string
*/
public function getCloneUri()
{
return $this->cloneUri;
}
/**
* Output only. [Output only] Create timestamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. [Output only] Delete timestamp
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. URI to access the linked repository through the Git Proxy.
* This field is only populated if the git proxy is enabled for the
* connection.
*
* @param string $gitProxyUri
*/
public function setGitProxyUri($gitProxyUri)
{
$this->gitProxyUri = $gitProxyUri;
}
/**
* @return string
*/
public function getGitProxyUri()
{
return $this->gitProxyUri;
}
/**
* Optional. Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Resource name of the repository, in the format
* `projects/locations/connections/gitRepositoryLinks`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Set to true when the connection is being set up or updated in
* the background.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. A system-assigned unique identifier for the GitRepositoryLink.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. [Output only] Update timestamp
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. External ID of the webhook created for the repository.
*
* @param string $webhookId
*/
public function setWebhookId($webhookId)
{
$this->webhookId = $webhookId;
}
/**
* @return string
*/
public function getWebhookId()
{
return $this->webhookId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GitRepositoryLink::class, 'Google_Service_DeveloperConnect_GitRepositoryLink');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GoogleArtifactAnalysis extends \Google\Model
{
/**
* Required. The project id of the project where the provenance is stored.
*
* @var string
*/
public $projectId;
/**
* Required. The project id of the project where the provenance is stored.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleArtifactAnalysis::class, 'Google_Service_DeveloperConnect_GoogleArtifactAnalysis');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GoogleArtifactRegistry extends \Google\Model
{
/**
* Required. Immutable. The name of the artifact registry package.
*
* @var string
*/
public $artifactRegistryPackage;
/**
* Required. The host project of Artifact Registry.
*
* @var string
*/
public $projectId;
/**
* Required. Immutable. The name of the artifact registry package.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Required. The host project of Artifact Registry.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleArtifactRegistry::class, 'Google_Service_DeveloperConnect_GoogleArtifactRegistry');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class GoogleCloudRun extends \Google\Model
{
/**
* Required. Immutable. The name of the Cloud Run service. Format:
* `projects/{project}/locations/{location}/services/{service}`.
*
* @var string
*/
public $serviceUri;
/**
* Required. Immutable. The name of the Cloud Run service. Format:
* `projects/{project}/locations/{location}/services/{service}`.
*
* @param string $serviceUri
*/
public function setServiceUri($serviceUri)
{
$this->serviceUri = $serviceUri;
}
/**
* @return string
*/
public function getServiceUri()
{
return $this->serviceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRun::class, 'Google_Service_DeveloperConnect_GoogleCloudRun');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class HttpBody extends \Google\Collection
{
protected $collection_key = 'extensions';
/**
* The HTTP Content-Type header value specifying the content type of the body.
*
* @var string
*/
public $contentType;
/**
* The HTTP request/response body as raw binary.
*
* @var string
*/
public $data;
/**
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
*
* @var array[]
*/
public $extensions;
/**
* The HTTP Content-Type header value specifying the content type of the body.
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* The HTTP request/response body as raw binary.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
*
* @param array[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return array[]
*/
public function getExtensions()
{
return $this->extensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpBody::class, 'Google_Service_DeveloperConnect_HttpBody');

View File

@@ -0,0 +1,312 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class InsightsConfig extends \Google\Collection
{
/**
* No state specified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The InsightsConfig is pending application discovery/runtime discovery.
*/
public const STATE_PENDING = 'PENDING';
/**
* The initial discovery process is complete.
*/
public const STATE_COMPLETE = 'COMPLETE';
/**
* The InsightsConfig is in an error state.
*/
public const STATE_ERROR = 'ERROR';
protected $collection_key = 'runtimeConfigs';
/**
* Optional. User specified annotations. See
* https://google.aip.dev/148#annotations for more details such as format and
* size limitations.
*
* @var string[]
*/
public $annotations;
/**
* Optional. The name of the App Hub Application. Format:
* projects/{project}/locations/{location}/applications/{application}
*
* @var string
*/
public $appHubApplication;
protected $artifactConfigsType = ArtifactConfig::class;
protected $artifactConfigsDataType = 'array';
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
protected $errorsType = Status::class;
protected $errorsDataType = 'array';
/**
* Optional. Set of labels associated with an InsightsConfig.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The name of the InsightsConfig. Format:
* projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
*
* @var string
*/
public $name;
protected $projectsType = Projects::class;
protected $projectsDataType = '';
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set
* to true if the current state of InsightsConfig does not match the user's
* intended state, and the service is actively updating the resource to
* reconcile them. This can happen due to user-triggered updates or system
* actions like failover or maintenance.
*
* @var bool
*/
public $reconciling;
protected $runtimeConfigsType = RuntimeConfig::class;
protected $runtimeConfigsDataType = 'array';
/**
* Optional. Output only. The state of the InsightsConfig.
*
* @var string
*/
public $state;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
/**
* Optional. User specified annotations. See
* https://google.aip.dev/148#annotations for more details such as format and
* size limitations.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Optional. The name of the App Hub Application. Format:
* projects/{project}/locations/{location}/applications/{application}
*
* @param string $appHubApplication
*/
public function setAppHubApplication($appHubApplication)
{
$this->appHubApplication = $appHubApplication;
}
/**
* @return string
*/
public function getAppHubApplication()
{
return $this->appHubApplication;
}
/**
* Optional. The artifact configurations of the artifacts that are deployed.
*
* @param ArtifactConfig[] $artifactConfigs
*/
public function setArtifactConfigs($artifactConfigs)
{
$this->artifactConfigs = $artifactConfigs;
}
/**
* @return ArtifactConfig[]
*/
public function getArtifactConfigs()
{
return $this->artifactConfigs;
}
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Any errors that occurred while setting up the InsightsConfig.
* Each error will be in the format: `field_name: error_message`, e.g.
* GetAppHubApplication: Permission denied while getting App Hub application.
* Please grant permissions to the P4SA.
*
* @param Status[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return Status[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* Optional. Set of labels associated with an InsightsConfig.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The name of the InsightsConfig. Format:
* projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The GCP projects to track with the InsightsConfig.
*
* @param Projects $projects
*/
public function setProjects(Projects $projects)
{
$this->projects = $projects;
}
/**
* @return Projects
*/
public function getProjects()
{
return $this->projects;
}
/**
* Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set
* to true if the current state of InsightsConfig does not match the user's
* intended state, and the service is actively updating the resource to
* reconcile them. This can happen due to user-triggered updates or system
* actions like failover or maintenance.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. The runtime configurations where the application is deployed.
*
* @param RuntimeConfig[] $runtimeConfigs
*/
public function setRuntimeConfigs($runtimeConfigs)
{
$this->runtimeConfigs = $runtimeConfigs;
}
/**
* @return RuntimeConfig[]
*/
public function getRuntimeConfigs()
{
return $this->runtimeConfigs;
}
/**
* Optional. Output only. The state of the InsightsConfig.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, COMPLETE, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InsightsConfig::class, 'Google_Service_DeveloperConnect_InsightsConfig');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class Installation extends \Google\Model
{
/**
* ID of the installation in GitHub.
*
* @var string
*/
public $id;
/**
* Name of the GitHub user or organization that owns this installation.
*
* @var string
*/
public $name;
/**
* Either "user" or "organization".
*
* @var string
*/
public $type;
/**
* ID of the installation in GitHub.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Name of the GitHub user or organization that owns this installation.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Either "user" or "organization".
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Installation::class, 'Google_Service_DeveloperConnect_Installation');

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class InstallationState extends \Google\Model
{
/**
* No stage specified.
*/
public const STAGE_STAGE_UNSPECIFIED = 'STAGE_UNSPECIFIED';
/**
* Only for GitHub Enterprise. An App creation has been requested. The user
* needs to confirm the creation in their GitHub enterprise host.
*/
public const STAGE_PENDING_CREATE_APP = 'PENDING_CREATE_APP';
/**
* User needs to authorize the GitHub (or Enterprise) App via OAuth.
*/
public const STAGE_PENDING_USER_OAUTH = 'PENDING_USER_OAUTH';
/**
* User needs to follow the link to install the GitHub (or Enterprise) App.
*/
public const STAGE_PENDING_INSTALL_APP = 'PENDING_INSTALL_APP';
/**
* Installation process has been completed.
*/
public const STAGE_COMPLETE = 'COMPLETE';
/**
* Output only. Link to follow for next action. Empty string if the
* installation is already complete.
*
* @var string
*/
public $actionUri;
/**
* Output only. Message of what the user should do next to continue the
* installation. Empty string if the installation is already complete.
*
* @var string
*/
public $message;
/**
* Output only. Current step of the installation process.
*
* @var string
*/
public $stage;
/**
* Output only. Link to follow for next action. Empty string if the
* installation is already complete.
*
* @param string $actionUri
*/
public function setActionUri($actionUri)
{
$this->actionUri = $actionUri;
}
/**
* @return string
*/
public function getActionUri()
{
return $this->actionUri;
}
/**
* Output only. Message of what the user should do next to continue the
* installation. Empty string if the installation is already complete.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Output only. Current step of the installation process.
*
* Accepted values: STAGE_UNSPECIFIED, PENDING_CREATE_APP, PENDING_USER_OAUTH,
* PENDING_INSTALL_APP, COMPLETE
*
* @param self::STAGE_* $stage
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return self::STAGE_*
*/
public function getStage()
{
return $this->stage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstallationState::class, 'Google_Service_DeveloperConnect_InstallationState');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class LinkableGitRepository extends \Google\Model
{
/**
* The clone uri of the repository.
*
* @var string
*/
public $cloneUri;
/**
* The clone uri of the repository.
*
* @param string $cloneUri
*/
public function setCloneUri($cloneUri)
{
$this->cloneUri = $cloneUri;
}
/**
* @return string
*/
public function getCloneUri()
{
return $this->cloneUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkableGitRepository::class, 'Google_Service_DeveloperConnect_LinkableGitRepository');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListAccountConnectorsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $accountConnectorsType = AccountConnector::class;
protected $accountConnectorsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of AccountConnectors
*
* @param AccountConnector[] $accountConnectors
*/
public function setAccountConnectors($accountConnectors)
{
$this->accountConnectors = $accountConnectors;
}
/**
* @return AccountConnector[]
*/
public function getAccountConnectors()
{
return $this->accountConnectors;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAccountConnectorsResponse::class, 'Google_Service_DeveloperConnect_ListAccountConnectorsResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListConnectionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $connectionsType = Connection::class;
protected $connectionsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Connection
*
* @param Connection[] $connections
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return Connection[]
*/
public function getConnections()
{
return $this->connections;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListConnectionsResponse::class, 'Google_Service_DeveloperConnect_ListConnectionsResponse');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListDeploymentEventsResponse extends \Google\Collection
{
protected $collection_key = 'deploymentEvents';
protected $deploymentEventsType = DeploymentEvent::class;
protected $deploymentEventsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The list of DeploymentEvents.
*
* @param DeploymentEvent[] $deploymentEvents
*/
public function setDeploymentEvents($deploymentEvents)
{
$this->deploymentEvents = $deploymentEvents;
}
/**
* @return DeploymentEvent[]
*/
public function getDeploymentEvents()
{
return $this->deploymentEvents;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeploymentEventsResponse::class, 'Google_Service_DeveloperConnect_ListDeploymentEventsResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListGitRepositoryLinksResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gitRepositoryLinksType = GitRepositoryLink::class;
protected $gitRepositoryLinksDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of GitRepositoryLinks
*
* @param GitRepositoryLink[] $gitRepositoryLinks
*/
public function setGitRepositoryLinks($gitRepositoryLinks)
{
$this->gitRepositoryLinks = $gitRepositoryLinks;
}
/**
* @return GitRepositoryLink[]
*/
public function getGitRepositoryLinks()
{
return $this->gitRepositoryLinks;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGitRepositoryLinksResponse::class, 'Google_Service_DeveloperConnect_ListGitRepositoryLinksResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListInsightsConfigsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $insightsConfigsType = InsightsConfig::class;
protected $insightsConfigsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of InsightsConfigs.
*
* @param InsightsConfig[] $insightsConfigs
*/
public function setInsightsConfigs($insightsConfigs)
{
$this->insightsConfigs = $insightsConfigs;
}
/**
* @return InsightsConfig[]
*/
public function getInsightsConfigs()
{
return $this->insightsConfigs;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListInsightsConfigsResponse::class, 'Google_Service_DeveloperConnect_ListInsightsConfigsResponse');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_DeveloperConnect_ListLocationsResponse');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_DeveloperConnect_ListOperationsResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ListUsersResponse extends \Google\Collection
{
protected $collection_key = 'users';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $usersType = User::class;
protected $usersDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The list of Users
*
* @param User[] $users
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return User[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUsersResponse::class, 'Google_Service_DeveloperConnect_ListUsersResponse');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_DeveloperConnect_Location');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class OAuthCredential extends \Google\Model
{
/**
* Required. A SecretManager resource containing the OAuth token that
* authorizes the connection. Format: `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location).
*
* @var string
*/
public $oauthTokenSecretVersion;
/**
* Output only. The username associated with this token.
*
* @var string
*/
public $username;
/**
* Required. A SecretManager resource containing the OAuth token that
* authorizes the connection. Format: `projects/secrets/versions` or
* `projects/locations/secrets/versions` (if regional secrets are supported in
* that location).
*
* @param string $oauthTokenSecretVersion
*/
public function setOauthTokenSecretVersion($oauthTokenSecretVersion)
{
$this->oauthTokenSecretVersion = $oauthTokenSecretVersion;
}
/**
* @return string
*/
public function getOauthTokenSecretVersion()
{
return $this->oauthTokenSecretVersion;
}
/**
* Output only. The username associated with this token.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OAuthCredential::class, 'Google_Service_DeveloperConnect_OAuthCredential');

View File

@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_DeveloperConnect_Operation');

View File

@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_DeveloperConnect_OperationMetadata');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ProcessBitbucketCloudWebhookRequest extends \Google\Model
{
protected $bodyType = HttpBody::class;
protected $bodyDataType = '';
/**
* Required. HTTP request body.
*
* @param HttpBody $body
*/
public function setBody(HttpBody $body)
{
$this->body = $body;
}
/**
* @return HttpBody
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProcessBitbucketCloudWebhookRequest::class, 'Google_Service_DeveloperConnect_ProcessBitbucketCloudWebhookRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ProcessBitbucketDataCenterWebhookRequest extends \Google\Model
{
protected $bodyType = HttpBody::class;
protected $bodyDataType = '';
/**
* Required. HTTP request body.
*
* @param HttpBody $body
*/
public function setBody(HttpBody $body)
{
$this->body = $body;
}
/**
* @return HttpBody
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProcessBitbucketDataCenterWebhookRequest::class, 'Google_Service_DeveloperConnect_ProcessBitbucketDataCenterWebhookRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ProcessGitHubEnterpriseWebhookRequest extends \Google\Model
{
protected $bodyType = HttpBody::class;
protected $bodyDataType = '';
/**
* Required. HTTP request body.
*
* @param HttpBody $body
*/
public function setBody(HttpBody $body)
{
$this->body = $body;
}
/**
* @return HttpBody
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProcessGitHubEnterpriseWebhookRequest::class, 'Google_Service_DeveloperConnect_ProcessGitHubEnterpriseWebhookRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ProcessGitLabEnterpriseWebhookRequest extends \Google\Model
{
protected $bodyType = HttpBody::class;
protected $bodyDataType = '';
/**
* Required. HTTP request body.
*
* @param HttpBody $body
*/
public function setBody(HttpBody $body)
{
$this->body = $body;
}
/**
* @return HttpBody
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProcessGitLabEnterpriseWebhookRequest::class, 'Google_Service_DeveloperConnect_ProcessGitLabEnterpriseWebhookRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ProcessGitLabWebhookRequest extends \Google\Model
{
protected $bodyType = HttpBody::class;
protected $bodyDataType = '';
/**
* Required. HTTP request body.
*
* @param HttpBody $body
*/
public function setBody(HttpBody $body)
{
$this->body = $body;
}
/**
* @return HttpBody
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProcessGitLabWebhookRequest::class, 'Google_Service_DeveloperConnect_ProcessGitLabWebhookRequest');

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class Projects extends \Google\Collection
{
protected $collection_key = 'projectIds';
/**
* Optional. The GCP Project IDs. Format: projects/{project}
*
* @var string[]
*/
public $projectIds;
/**
* Optional. The GCP Project IDs. Format: projects/{project}
*
* @param string[] $projectIds
*/
public function setProjectIds($projectIds)
{
$this->projectIds = $projectIds;
}
/**
* @return string[]
*/
public function getProjectIds()
{
return $this->projectIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_DeveloperConnect_Projects');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ProviderOAuthConfig extends \Google\Collection
{
/**
* No system provider specified.
*/
public const SYSTEM_PROVIDER_ID_SYSTEM_PROVIDER_UNSPECIFIED = 'SYSTEM_PROVIDER_UNSPECIFIED';
/**
* GitHub provider. Scopes can be found at
* https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-
* oauth-apps#available-scopes
*/
public const SYSTEM_PROVIDER_ID_GITHUB = 'GITHUB';
/**
* GitLab provider. Scopes can be found at
* https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-
* access-token-scopes
*/
public const SYSTEM_PROVIDER_ID_GITLAB = 'GITLAB';
/**
* Deprecated: This provider is no longer supported. Google provider.
* Recommended scopes: "https://www.googleapis.com/auth/drive.readonly",
* "https://www.googleapis.com/auth/documents.readonly"
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_GOOGLE = 'GOOGLE';
/**
* Deprecated: This provider is no longer supported. Sentry provider. Scopes
* can be found at https://docs.sentry.io/api/permissions/
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_SENTRY = 'SENTRY';
/**
* Deprecated: This provider is no longer supported. Rovo provider. Must
* select the "rovo" scope.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_ROVO = 'ROVO';
/**
* Deprecated: This provider is no longer supported. New Relic provider. No
* scopes are allowed.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_NEW_RELIC = 'NEW_RELIC';
/**
* Deprecated: This provider is no longer supported. Datastax provider. No
* scopes are allowed.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_DATASTAX = 'DATASTAX';
/**
* Deprecated: This provider is no longer supported. Dynatrace provider.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_DYNATRACE = 'DYNATRACE';
protected $collection_key = 'scopes';
/**
* Required. User selected scopes to apply to the Oauth config In the event of
* changing scopes, user records under AccountConnector will be deleted and
* users will re-auth again.
*
* @var string[]
*/
public $scopes;
/**
* Immutable. Developer Connect provided OAuth.
*
* @var string
*/
public $systemProviderId;
/**
* Required. User selected scopes to apply to the Oauth config In the event of
* changing scopes, user records under AccountConnector will be deleted and
* users will re-auth again.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* Immutable. Developer Connect provided OAuth.
*
* Accepted values: SYSTEM_PROVIDER_UNSPECIFIED, GITHUB, GITLAB, GOOGLE,
* SENTRY, ROVO, NEW_RELIC, DATASTAX, DYNATRACE
*
* @param self::SYSTEM_PROVIDER_ID_* $systemProviderId
*/
public function setSystemProviderId($systemProviderId)
{
$this->systemProviderId = $systemProviderId;
}
/**
* @return self::SYSTEM_PROVIDER_ID_*
*/
public function getSystemProviderId()
{
return $this->systemProviderId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProviderOAuthConfig::class, 'Google_Service_DeveloperConnect_ProviderOAuthConfig');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $projects = $developerconnectService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_DeveloperConnect_Resource_Projects');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\ListLocationsResponse;
use Google\Service\DeveloperConnect\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $locations = $developerconnectService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocations');

View File

@@ -0,0 +1,182 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\AccountConnector;
use Google\Service\DeveloperConnect\ListAccountConnectorsResponse;
use Google\Service\DeveloperConnect\Operation;
/**
* The "accountConnectors" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $accountConnectors = $developerconnectService->projects_locations_accountConnectors;
* </code>
*/
class ProjectsLocationsAccountConnectors extends \Google\Service\Resource
{
/**
* Creates a new AccountConnector in a given project and location.
* (accountConnectors.create)
*
* @param string $parent Required. Location resource name as the
* account_connectors parent.
* @param AccountConnector $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string accountConnectorId Required. The ID to use for the
* AccountConnector, which will become the final component of the
* AccountConnector's resource name. Its format should adhere to
* https://google.aip.dev/122#resource-id-segments Names must be unique per-
* project per-location.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AccountConnector $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single AccountConnector. (accountConnectors.delete)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the AccountConnectorn.
* If an etag is provided and does not match the current etag of the
* AccountConnector, deletion will be blocked and an ABORTED error will be
* returned.
* @opt_param bool force Optional. If set to true, any Users from this
* AccountConnector will also be deleted. (Otherwise, the request will only work
* if the AccountConnector has no Users.)
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single AccountConnector. (accountConnectors.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return AccountConnector
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AccountConnector::class);
}
/**
* Lists AccountConnectors in a given project and location.
* (accountConnectors.listProjectsLocationsAccountConnectors)
*
* @param string $parent Required. Parent value for ListAccountConnectorsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListAccountConnectorsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAccountConnectors($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccountConnectorsResponse::class);
}
/**
* Updates the parameters of a single AccountConnector.
* (accountConnectors.patch)
*
* @param string $name Identifier. The resource name of the accountConnector, in
* the format `projects/{project}/locations/{location}/accountConnectors/{accoun
* t_connector_id}`.
* @param AccountConnector $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, and the
* accountConnector is not found a new accountConnector will be created. In this
* situation `update_mask` is ignored. The creation will succeed only if the
* input accountConnector has all the necessary
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. The list of fields to be updated.
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, AccountConnector $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAccountConnectors::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsAccountConnectors');

View File

@@ -0,0 +1,181 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\FetchAccessTokenRequest;
use Google\Service\DeveloperConnect\FetchAccessTokenResponse;
use Google\Service\DeveloperConnect\FinishOAuthResponse;
use Google\Service\DeveloperConnect\ListUsersResponse;
use Google\Service\DeveloperConnect\Operation;
use Google\Service\DeveloperConnect\StartOAuthResponse;
use Google\Service\DeveloperConnect\User;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $users = $developerconnectService->projects_locations_accountConnectors_users;
* </code>
*/
class ProjectsLocationsAccountConnectorsUsers extends \Google\Service\Resource
{
/**
* Deletes a single User. (users.delete)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Delete the User based on the user credentials. (users.deleteSelf)
*
* @param string $name Required. Name of the AccountConnector resource
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function deleteSelf($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteSelf', [$params], Operation::class);
}
/**
* Fetches OAuth access token based on end user credentials.
* (users.fetchAccessToken)
*
* @param string $accountConnector Required. The resource name of the
* AccountConnector in the format `projects/locations/accountConnectors`.
* @param FetchAccessTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return FetchAccessTokenResponse
* @throws \Google\Service\Exception
*/
public function fetchAccessToken($accountConnector, FetchAccessTokenRequest $postBody, $optParams = [])
{
$params = ['accountConnector' => $accountConnector, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('fetchAccessToken', [$params], FetchAccessTokenResponse::class);
}
/**
* Fetch the User based on the user credentials. (users.fetchSelf)
*
* @param string $name Required. Name of the AccountConnector resource
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function fetchSelf($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('fetchSelf', [$params], User::class);
}
/**
* Finishes OAuth flow for an account connector. (users.finishOAuthFlow)
*
* @param string $accountConnector Required. The resource name of the
* AccountConnector in the format `projects/locations/accountConnectors`.
* @param array $optParams Optional parameters.
*
* @opt_param string googleOauthParams.scopes Required. The scopes returned by
* Google OAuth flow.
* @opt_param string googleOauthParams.ticket Required. The ticket to be used
* for post processing the callback from Google OAuth flow.
* @opt_param string googleOauthParams.versionInfo Optional. The version info
* returned by Google OAuth flow.
* @opt_param string oauthParams.code Required. The code to be used for getting
* the token from SCM provider.
* @opt_param string oauthParams.ticket Required. The ticket to be used for post
* processing the callback from SCM provider.
* @return FinishOAuthResponse
* @throws \Google\Service\Exception
*/
public function finishOAuthFlow($accountConnector, $optParams = [])
{
$params = ['accountConnector' => $accountConnector];
$params = array_merge($params, $optParams);
return $this->call('finishOAuthFlow', [$params], FinishOAuthResponse::class);
}
/**
* Lists Users in a given project, location, and account_connector.
* (users.listProjectsLocationsAccountConnectorsUsers)
*
* @param string $parent Required. Parent value for ListUsersRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListUsersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAccountConnectorsUsers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUsersResponse::class);
}
/**
* Starts OAuth flow for an account connector. (users.startOAuthFlow)
*
* @param string $accountConnector Required. The resource name of the
* AccountConnector in the format `projects/locations/accountConnectors`.
* @param array $optParams Optional parameters.
* @return StartOAuthResponse
* @throws \Google\Service\Exception
*/
public function startOAuthFlow($accountConnector, $optParams = [])
{
$params = ['accountConnector' => $accountConnector];
$params = array_merge($params, $optParams);
return $this->call('startOAuthFlow', [$params], StartOAuthResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAccountConnectorsUsers::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsAccountConnectorsUsers');

View File

@@ -0,0 +1,238 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\Connection;
use Google\Service\DeveloperConnect\DeveloperconnectEmpty;
use Google\Service\DeveloperConnect\FetchGitHubInstallationsResponse;
use Google\Service\DeveloperConnect\FetchLinkableGitRepositoriesResponse;
use Google\Service\DeveloperConnect\ListConnectionsResponse;
use Google\Service\DeveloperConnect\Operation;
use Google\Service\DeveloperConnect\ProcessGitHubEnterpriseWebhookRequest;
/**
* The "connections" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $connections = $developerconnectService->projects_locations_connections;
* </code>
*/
class ProjectsLocationsConnections extends \Google\Service\Resource
{
/**
* Creates a new Connection in a given project and location.
* (connections.create)
*
* @param string $parent Required. Value for parent.
* @param Connection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string connectionId Required. Id of the requesting object If auto-
* generating Id server-side, remove this field and connection_id from the
* method_signature of Create RPC
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Connection $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Connection. (connections.delete)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the Connection. If an
* etag is provided and does not match the current etag of the Connection,
* deletion will be blocked and an ABORTED error will be returned.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* FetchGitHubInstallations returns the list of GitHub Installations that are
* available to be added to a Connection. For github.com, only installations
* accessible to the authorizer token are returned. For GitHub Enterprise, all
* installations are returned. (connections.fetchGitHubInstallations)
*
* @param string $connection Required. The resource name of the connection in
* the format `projects/locations/connections`.
* @param array $optParams Optional parameters.
* @return FetchGitHubInstallationsResponse
* @throws \Google\Service\Exception
*/
public function fetchGitHubInstallations($connection, $optParams = [])
{
$params = ['connection' => $connection];
$params = array_merge($params, $optParams);
return $this->call('fetchGitHubInstallations', [$params], FetchGitHubInstallationsResponse::class);
}
/**
* FetchLinkableGitRepositories returns a list of git repositories from an SCM
* that are available to be added to a Connection.
* (connections.fetchLinkableGitRepositories)
*
* @param string $connection Required. The name of the Connection. Format:
* `projects/locations/connections`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Number of results to return in the list.
* Defaults to 20.
* @opt_param string pageToken Optional. Page start.
* @return FetchLinkableGitRepositoriesResponse
* @throws \Google\Service\Exception
*/
public function fetchLinkableGitRepositories($connection, $optParams = [])
{
$params = ['connection' => $connection];
$params = array_merge($params, $optParams);
return $this->call('fetchLinkableGitRepositories', [$params], FetchLinkableGitRepositoriesResponse::class);
}
/**
* Gets details of a single Connection. (connections.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return Connection
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Connection::class);
}
/**
* Lists Connections in a given project and location.
* (connections.listProjectsLocationsConnections)
*
* @param string $parent Required. Parent value for ListConnectionsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListConnectionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnections($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectionsResponse::class);
}
/**
* Updates the parameters of a single Connection. (connections.patch)
*
* @param string $name Identifier. The resource name of the connection, in the
* format `projects/{project}/locations/{location}/connections/{connection_id}`.
* @param Connection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, and the connection is
* not found a new connection will be created. In this situation `update_mask`
* is ignored. The creation will succeed only if the input connection has all
* the necessary information (e.g a github_config with both user_oauth_token and
* installation_id properties).
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Connection resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Connection $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise
* instances for notifying events. (connections.processGitHubEnterpriseWebhook)
*
* @param string $parent Required. Project and location where the webhook will
* be received. Format: `projects/locations`.
* @param ProcessGitHubEnterpriseWebhookRequest $postBody
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function processGitHubEnterpriseWebhook($parent, ProcessGitHubEnterpriseWebhookRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('processGitHubEnterpriseWebhook', [$params], DeveloperconnectEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnections::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsConnections');

View File

@@ -0,0 +1,286 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\DeveloperconnectEmpty;
use Google\Service\DeveloperConnect\FetchGitRefsResponse;
use Google\Service\DeveloperConnect\FetchReadTokenRequest;
use Google\Service\DeveloperConnect\FetchReadTokenResponse;
use Google\Service\DeveloperConnect\FetchReadWriteTokenRequest;
use Google\Service\DeveloperConnect\FetchReadWriteTokenResponse;
use Google\Service\DeveloperConnect\GitRepositoryLink;
use Google\Service\DeveloperConnect\ListGitRepositoryLinksResponse;
use Google\Service\DeveloperConnect\Operation;
use Google\Service\DeveloperConnect\ProcessBitbucketCloudWebhookRequest;
use Google\Service\DeveloperConnect\ProcessBitbucketDataCenterWebhookRequest;
use Google\Service\DeveloperConnect\ProcessGitLabEnterpriseWebhookRequest;
use Google\Service\DeveloperConnect\ProcessGitLabWebhookRequest;
/**
* The "gitRepositoryLinks" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $gitRepositoryLinks = $developerconnectService->projects_locations_connections_gitRepositoryLinks;
* </code>
*/
class ProjectsLocationsConnectionsGitRepositoryLinks extends \Google\Service\Resource
{
/**
* Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect
* will configure the Git Repository to send webhook events to Developer
* Connect. Connections that use Firebase GitHub Application will have events
* forwarded to the Firebase service. Connections that use Gemini Code Assist
* will have events forwarded to Gemini Code Assist service. All other
* Connections will have events forwarded to Cloud Build.
* (gitRepositoryLinks.create)
*
* @param string $parent Required. Value for parent.
* @param GitRepositoryLink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string gitRepositoryLinkId Required. The ID to use for the
* repository, which will become the final component of the repository's
* resource name. This ID should be unique in the connection. Allows
* alphanumeric characters and any of -._~%!$&'()*+,;=@.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, GitRepositoryLink $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single GitRepositoryLink. (gitRepositoryLinks.delete)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Fetch the list of branches or tags for a given repository.
* (gitRepositoryLinks.fetchGitRefs)
*
* @param string $gitRepositoryLink Required. The resource name of
* GitRepositoryLink in the format
* `projects/locations/connections/gitRepositoryLinks`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Number of results to return in the list.
* Default to 20.
* @opt_param string pageToken Optional. Page start.
* @opt_param string refType Required. Type of refs to fetch.
* @return FetchGitRefsResponse
* @throws \Google\Service\Exception
*/
public function fetchGitRefs($gitRepositoryLink, $optParams = [])
{
$params = ['gitRepositoryLink' => $gitRepositoryLink];
$params = array_merge($params, $optParams);
return $this->call('fetchGitRefs', [$params], FetchGitRefsResponse::class);
}
/**
* Fetches read token of a given gitRepositoryLink.
* (gitRepositoryLinks.fetchReadToken)
*
* @param string $gitRepositoryLink Required. The resource name of the
* gitRepositoryLink in the format
* `projects/locations/connections/gitRepositoryLinks`.
* @param FetchReadTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return FetchReadTokenResponse
* @throws \Google\Service\Exception
*/
public function fetchReadToken($gitRepositoryLink, FetchReadTokenRequest $postBody, $optParams = [])
{
$params = ['gitRepositoryLink' => $gitRepositoryLink, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('fetchReadToken', [$params], FetchReadTokenResponse::class);
}
/**
* Fetches read/write token of a given gitRepositoryLink.
* (gitRepositoryLinks.fetchReadWriteToken)
*
* @param string $gitRepositoryLink Required. The resource name of the
* gitRepositoryLink in the format
* `projects/locations/connections/gitRepositoryLinks`.
* @param FetchReadWriteTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return FetchReadWriteTokenResponse
* @throws \Google\Service\Exception
*/
public function fetchReadWriteToken($gitRepositoryLink, FetchReadWriteTokenRequest $postBody, $optParams = [])
{
$params = ['gitRepositoryLink' => $gitRepositoryLink, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('fetchReadWriteToken', [$params], FetchReadWriteTokenResponse::class);
}
/**
* Gets details of a single GitRepositoryLink. (gitRepositoryLinks.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return GitRepositoryLink
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GitRepositoryLink::class);
}
/**
* Lists GitRepositoryLinks in a given project, location, and connection.
* (gitRepositoryLinks.listProjectsLocationsConnectionsGitRepositoryLinks)
*
* @param string $parent Required. Parent value for
* ListGitRepositoryLinksRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListGitRepositoryLinksResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsGitRepositoryLinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGitRepositoryLinksResponse::class);
}
/**
* ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud
* instances for notifying events.
* (gitRepositoryLinks.processBitbucketCloudWebhook)
*
* @param string $name Required. The GitRepositoryLink where the webhook will be
* received. Format: `projects/locations/connections/gitRepositoryLinks`.
* @param ProcessBitbucketCloudWebhookRequest $postBody
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function processBitbucketCloudWebhook($name, ProcessBitbucketCloudWebhookRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('processBitbucketCloudWebhook', [$params], DeveloperconnectEmpty::class);
}
/**
* ProcessBitbucketDataCenterWebhook is called by the external Bitbucket Data
* Center instances for notifying events.
* (gitRepositoryLinks.processBitbucketDataCenterWebhook)
*
* @param string $name Required. The GitRepositoryLink where the webhook will be
* received. Format: `projects/locations/connections/gitRepositoryLinks`.
* @param ProcessBitbucketDataCenterWebhookRequest $postBody
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function processBitbucketDataCenterWebhook($name, ProcessBitbucketDataCenterWebhookRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('processBitbucketDataCenterWebhook', [$params], DeveloperconnectEmpty::class);
}
/**
* ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise
* instances for notifying events.
* (gitRepositoryLinks.processGitLabEnterpriseWebhook)
*
* @param string $name Required. The GitRepositoryLink resource where the
* webhook will be received. Format:
* `projects/locations/connections/gitRepositoryLinks`.
* @param ProcessGitLabEnterpriseWebhookRequest $postBody
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function processGitLabEnterpriseWebhook($name, ProcessGitLabEnterpriseWebhookRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('processGitLabEnterpriseWebhook', [$params], DeveloperconnectEmpty::class);
}
/**
* ProcessGitLabWebhook is called by the GitLab.com for notifying events.
* (gitRepositoryLinks.processGitLabWebhook)
*
* @param string $name Required. The GitRepositoryLink resource where the
* webhook will be received. Format:
* `projects/locations/connections/gitRepositoryLinks`.
* @param ProcessGitLabWebhookRequest $postBody
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function processGitLabWebhook($name, ProcessGitLabWebhookRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('processGitLabWebhook', [$params], DeveloperconnectEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsGitRepositoryLinks::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsConnectionsGitRepositoryLinks');

View File

@@ -0,0 +1,164 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\InsightsConfig;
use Google\Service\DeveloperConnect\ListInsightsConfigsResponse;
use Google\Service\DeveloperConnect\Operation;
/**
* The "insightsConfigs" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $insightsConfigs = $developerconnectService->projects_locations_insightsConfigs;
* </code>
*/
class ProjectsLocationsInsightsConfigs extends \Google\Service\Resource
{
/**
* Creates a new InsightsConfig in a given project and location.
* (insightsConfigs.create)
*
* @param string $parent Required. Value for parent.
* @param InsightsConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string insightsConfigId Required. ID of the requesting
* InsightsConfig.
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, InsightsConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Insight. (insightsConfigs.delete)
*
* @param string $name Required. Value for parent.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Insight. (insightsConfigs.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return InsightsConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], InsightsConfig::class);
}
/**
* Lists InsightsConfigs in a given project and location.
* (insightsConfigs.listProjectsLocationsInsightsConfigs)
*
* @param string $parent Required. Parent value for ListInsightsConfigsRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results. See
* https://google.aip.dev/160 for more details. Filter string, adhering to the
* rules in https://google.aip.dev/160. List only InsightsConfigs matching the
* filter. If filter is empty, all InsightsConfigs are listed.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListInsightsConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInsightsConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInsightsConfigsResponse::class);
}
/**
* Updates the parameters of a single InsightsConfig. (insightsConfigs.patch)
*
* @param string $name Identifier. The name of the InsightsConfig. Format:
* projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
* @param InsightsConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, and the insightsConfig
* is not found a new insightsConfig will be created. In this situation
* `update_mask` is ignored. The creation will succeed only if the input
* insightsConfig has all the necessary information (e.g a github_config with
* both user_oauth_token and installation_id properties).
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request, but do
* not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, InsightsConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInsightsConfigs::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsInsightsConfigs');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\DeploymentEvent;
use Google\Service\DeveloperConnect\ListDeploymentEventsResponse;
/**
* The "deploymentEvents" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $deploymentEvents = $developerconnectService->projects_locations_insightsConfigs_deploymentEvents;
* </code>
*/
class ProjectsLocationsInsightsConfigsDeploymentEvents extends \Google\Service\Resource
{
/**
* Gets a single Deployment Event. (deploymentEvents.get)
*
* @param string $name Required. The name of the deployment event to retrieve.
* Format: projects/{project}/locations/{location}/insightsConfigs/{insights_con
* fig}/deploymentEvents/{uuid}
* @param array $optParams Optional parameters.
* @return DeploymentEvent
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DeploymentEvent::class);
}
/**
* Lists Deployment Events in a given insights config.
* (deploymentEvents.listProjectsLocationsInsightsConfigsDeploymentEvents)
*
* @param string $parent Required. The parent insights config that owns this
* collection of deployment events. Format:
* projects/{project}/locations/{location}/insightsConfigs/{insights_config}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression that matches a subset of
* the DeploymentEvents. https://google.aip.dev/160.
* @opt_param int pageSize Optional. The maximum number of deployment events to
* return. The service may return fewer than this value. If unspecified, at most
* 50 deployment events will be returned. The maximum value is 1000; values
* above 1000 will be coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListDeploymentEvents` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListDeploymentEvents` must
* match the call that provided the page token.
* @return ListDeploymentEventsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInsightsConfigsDeploymentEvents($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeploymentEventsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInsightsConfigsDeploymentEvents::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsInsightsConfigsDeploymentEvents');

View File

@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect\Resource;
use Google\Service\DeveloperConnect\CancelOperationRequest;
use Google\Service\DeveloperConnect\DeveloperconnectEmpty;
use Google\Service\DeveloperConnect\ListOperationsResponse;
use Google\Service\DeveloperConnect\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $developerconnectService = new Google\Service\DeveloperConnect(...);
* $operations = $developerconnectService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], DeveloperconnectEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return DeveloperconnectEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], DeveloperconnectEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_DeveloperConnect_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class RuntimeConfig extends \Google\Model
{
/**
* No state specified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The runtime configuration has been linked to the InsightsConfig.
*/
public const STATE_LINKED = 'LINKED';
/**
* The runtime configuration has been unlinked to the InsightsConfig.
*/
public const STATE_UNLINKED = 'UNLINKED';
protected $appHubServiceType = AppHubService::class;
protected $appHubServiceDataType = '';
protected $appHubWorkloadType = AppHubWorkload::class;
protected $appHubWorkloadDataType = '';
protected $gkeWorkloadType = GKEWorkload::class;
protected $gkeWorkloadDataType = '';
protected $googleCloudRunType = GoogleCloudRun::class;
protected $googleCloudRunDataType = '';
/**
* Output only. The state of the Runtime.
*
* @var string
*/
public $state;
/**
* Required. Immutable. The URI of the runtime configuration. For GKE, this is
* the cluster name. For Cloud Run, this is the service name.
*
* @var string
*/
public $uri;
/**
* Output only. App Hub Service.
*
* @param AppHubService $appHubService
*/
public function setAppHubService(AppHubService $appHubService)
{
$this->appHubService = $appHubService;
}
/**
* @return AppHubService
*/
public function getAppHubService()
{
return $this->appHubService;
}
/**
* Output only. App Hub Workload.
*
* @param AppHubWorkload $appHubWorkload
*/
public function setAppHubWorkload(AppHubWorkload $appHubWorkload)
{
$this->appHubWorkload = $appHubWorkload;
}
/**
* @return AppHubWorkload
*/
public function getAppHubWorkload()
{
return $this->appHubWorkload;
}
/**
* Output only. Google Kubernetes Engine runtime.
*
* @param GKEWorkload $gkeWorkload
*/
public function setGkeWorkload(GKEWorkload $gkeWorkload)
{
$this->gkeWorkload = $gkeWorkload;
}
/**
* @return GKEWorkload
*/
public function getGkeWorkload()
{
return $this->gkeWorkload;
}
/**
* Output only. Cloud Run runtime.
*
* @param GoogleCloudRun $googleCloudRun
*/
public function setGoogleCloudRun(GoogleCloudRun $googleCloudRun)
{
$this->googleCloudRun = $googleCloudRun;
}
/**
* @return GoogleCloudRun
*/
public function getGoogleCloudRun()
{
return $this->googleCloudRun;
}
/**
* Output only. The state of the Runtime.
*
* Accepted values: STATE_UNSPECIFIED, LINKED, UNLINKED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Required. Immutable. The URI of the runtime configuration. For GKE, this is
* the cluster name. For Cloud Run, this is the service name.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuntimeConfig::class, 'Google_Service_DeveloperConnect_RuntimeConfig');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class ServiceDirectoryConfig extends \Google\Model
{
/**
* Required. The Service Directory service name. Format: projects/{project}/lo
* cations/{location}/namespaces/{namespace}/services/{service}.
*
* @var string
*/
public $service;
/**
* Required. The Service Directory service name. Format: projects/{project}/lo
* cations/{location}/namespaces/{namespace}/services/{service}.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceDirectoryConfig::class, 'Google_Service_DeveloperConnect_ServiceDirectoryConfig');

View File

@@ -0,0 +1,246 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class StartOAuthResponse extends \Google\Collection
{
/**
* No system provider specified.
*/
public const SYSTEM_PROVIDER_ID_SYSTEM_PROVIDER_UNSPECIFIED = 'SYSTEM_PROVIDER_UNSPECIFIED';
/**
* GitHub provider. Scopes can be found at
* https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-
* oauth-apps#available-scopes
*/
public const SYSTEM_PROVIDER_ID_GITHUB = 'GITHUB';
/**
* GitLab provider. Scopes can be found at
* https://docs.gitlab.com/user/profile/personal_access_tokens/#personal-
* access-token-scopes
*/
public const SYSTEM_PROVIDER_ID_GITLAB = 'GITLAB';
/**
* Deprecated: This provider is no longer supported. Google provider.
* Recommended scopes: "https://www.googleapis.com/auth/drive.readonly",
* "https://www.googleapis.com/auth/documents.readonly"
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_GOOGLE = 'GOOGLE';
/**
* Deprecated: This provider is no longer supported. Sentry provider. Scopes
* can be found at https://docs.sentry.io/api/permissions/
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_SENTRY = 'SENTRY';
/**
* Deprecated: This provider is no longer supported. Rovo provider. Must
* select the "rovo" scope.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_ROVO = 'ROVO';
/**
* Deprecated: This provider is no longer supported. New Relic provider. No
* scopes are allowed.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_NEW_RELIC = 'NEW_RELIC';
/**
* Deprecated: This provider is no longer supported. Datastax provider. No
* scopes are allowed.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_DATASTAX = 'DATASTAX';
/**
* Deprecated: This provider is no longer supported. Dynatrace provider.
*
* @deprecated
*/
public const SYSTEM_PROVIDER_ID_DYNATRACE = 'DYNATRACE';
protected $collection_key = 'scopes';
/**
* The authorization server URL to the OAuth flow of the service provider.
*
* @var string
*/
public $authUri;
/**
* The client ID to the OAuth App of the service provider.
*
* @var string
*/
public $clientId;
/**
* https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 Follow
* http://shortn/_WFYl6U0NyC to include it in the AutoCodeURL.
*
* @var string
*/
public $codeChallenge;
/**
* https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
*
* @var string
*/
public $codeChallengeMethod;
/**
* The list of scopes requested by the application.
*
* @var string[]
*/
public $scopes;
/**
* The ID of the system provider.
*
* @var string
*/
public $systemProviderId;
/**
* The ticket to be used for post processing the callback from the service
* provider.
*
* @var string
*/
public $ticket;
/**
* The authorization server URL to the OAuth flow of the service provider.
*
* @param string $authUri
*/
public function setAuthUri($authUri)
{
$this->authUri = $authUri;
}
/**
* @return string
*/
public function getAuthUri()
{
return $this->authUri;
}
/**
* The client ID to the OAuth App of the service provider.
*
* @param string $clientId
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 Follow
* http://shortn/_WFYl6U0NyC to include it in the AutoCodeURL.
*
* @param string $codeChallenge
*/
public function setCodeChallenge($codeChallenge)
{
$this->codeChallenge = $codeChallenge;
}
/**
* @return string
*/
public function getCodeChallenge()
{
return $this->codeChallenge;
}
/**
* https://datatracker.ietf.org/doc/html/rfc7636#section-4.2
*
* @param string $codeChallengeMethod
*/
public function setCodeChallengeMethod($codeChallengeMethod)
{
$this->codeChallengeMethod = $codeChallengeMethod;
}
/**
* @return string
*/
public function getCodeChallengeMethod()
{
return $this->codeChallengeMethod;
}
/**
* The list of scopes requested by the application.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* The ID of the system provider.
*
* Accepted values: SYSTEM_PROVIDER_UNSPECIFIED, GITHUB, GITLAB, GOOGLE,
* SENTRY, ROVO, NEW_RELIC, DATASTAX, DYNATRACE
*
* @param self::SYSTEM_PROVIDER_ID_* $systemProviderId
*/
public function setSystemProviderId($systemProviderId)
{
$this->systemProviderId = $systemProviderId;
}
/**
* @return self::SYSTEM_PROVIDER_ID_*
*/
public function getSystemProviderId()
{
return $this->systemProviderId;
}
/**
* The ticket to be used for post processing the callback from the service
* provider.
*
* @param string $ticket
*/
public function setTicket($ticket)
{
$this->ticket = $ticket;
}
/**
* @return string
*/
public function getTicket()
{
return $this->ticket;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartOAuthResponse::class, 'Google_Service_DeveloperConnect_StartOAuthResponse');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_DeveloperConnect_Status');

View File

@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class User extends \Google\Model
{
/**
* Output only. The timestamp when the user was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Developer Connect automatically converts user identity to some
* human readable description, e.g., email address.
*
* @var string
*/
public $displayName;
/**
* Output only. The timestamp when the token was last requested.
*
* @var string
*/
public $lastTokenRequestTime;
/**
* Identifier. Resource name of the user, in the format
* `projects/locations/accountConnectors/users`.
*
* @var string
*/
public $name;
/**
* Output only. The timestamp when the user was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Developer Connect automatically converts user identity to some
* human readable description, e.g., email address.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. The timestamp when the token was last requested.
*
* @param string $lastTokenRequestTime
*/
public function setLastTokenRequestTime($lastTokenRequestTime)
{
$this->lastTokenRequestTime = $lastTokenRequestTime;
}
/**
* @return string
*/
public function getLastTokenRequestTime()
{
return $this->lastTokenRequestTime;
}
/**
* Identifier. Resource name of the user, in the format
* `projects/locations/accountConnectors/users`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_DeveloperConnect_User');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DeveloperConnect;
class UserCredential extends \Google\Model
{
/**
* Required. A SecretManager resource containing the user token that
* authorizes the Developer Connect connection. Format:
* `projects/secrets/versions` or `projects/locations/secrets/versions` (if
* regional secrets are supported in that location).
*
* @var string
*/
public $userTokenSecretVersion;
/**
* Output only. The username associated with this token.
*
* @var string
*/
public $username;
/**
* Required. A SecretManager resource containing the user token that
* authorizes the Developer Connect connection. Format:
* `projects/secrets/versions` or `projects/locations/secrets/versions` (if
* regional secrets are supported in that location).
*
* @param string $userTokenSecretVersion
*/
public function setUserTokenSecretVersion($userTokenSecretVersion)
{
$this->userTokenSecretVersion = $userTokenSecretVersion;
}
/**
* @return string
*/
public function getUserTokenSecretVersion()
{
return $this->userTokenSecretVersion;
}
/**
* Output only. The username associated with this token.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserCredential::class, 'Google_Service_DeveloperConnect_UserCredential');