diff --git a/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/__init__.py b/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/__init__.py deleted file mode 100644 index 1dc089bbf700..000000000000 --- a/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You 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. -# - -"""Common imports for generated cloudbuild client library.""" -# pylint:disable=wildcard-import -# mypy: ignore-errors - -import pkgutil - -# Protect against environments where apitools library is not available. -# pylint: disable=wrong-import-order, wrong-import-position -try: - from apitools.base.py import * - - from apache_beam.runners.dataflow.internal.clients.cloudbuild.cloudbuild_v1_client import * - from apache_beam.runners.dataflow.internal.clients.cloudbuild.cloudbuild_v1_messages import * -except ImportError: - pass - -__path__ = pkgutil.extend_path(__path__, __name__) diff --git a/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/cloudbuild_v1_client.py b/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/cloudbuild_v1_client.py deleted file mode 100644 index 52941bfe0b4b..000000000000 --- a/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/cloudbuild_v1_client.py +++ /dev/null @@ -1,1703 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You 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. -# - -"""Generated client library for cloudbuild version v1.""" -# NOTE: This file is autogenerated and should not be edited by hand. -# mypy: ignore-errors -# To regenerate the client: -# pip install google-apitools[cli] -# gen_client --discovery_url=cloudbuild.v1 --overwrite \ -# --outdir=apache_beam/runners/dataflow/internal/clients/cloudbuild \ -# --root_package=. client - -from apitools.base.py import base_api - -from . import cloudbuild_v1_messages as messages - - -class CloudbuildV1(base_api.BaseApiClient): - """Generated client library for service cloudbuild version v1.""" - - MESSAGES_MODULE = messages - BASE_URL = 'https://cloudbuild.googleapis.com/' - MTLS_BASE_URL = 'https://cloudbuild.mtls.googleapis.com/' - - _PACKAGE = 'cloudbuild' - _SCOPES = ['https://www.googleapis.com/auth/cloud-platform'] - _VERSION = 'v1' - _CLIENT_ID = '1042881264118.apps.googleusercontent.com' - _CLIENT_SECRET = 'x_Tw5K8nnjoRAqULM9PFAC2b' - _USER_AGENT = 'x_Tw5K8nnjoRAqULM9PFAC2b' - _CLIENT_CLASS_NAME = 'CloudbuildV1' - _URL_VERSION = 'v1' - _API_KEY = None - - def __init__( - self, - url='', - credentials=None, - get_credentials=True, - http=None, - model=None, - log_request=False, - log_response=False, - credentials_args=None, - default_global_params=None, - additional_http_headers=None, - response_encoding=None): - """Create a new cloudbuild handle.""" - url = url or self.BASE_URL - super(CloudbuildV1, self).__init__( - url, - credentials=credentials, - get_credentials=get_credentials, - http=http, - model=model, - log_request=log_request, - log_response=log_response, - credentials_args=credentials_args, - default_global_params=default_global_params, - additional_http_headers=additional_http_headers, - response_encoding=response_encoding) - self.locations = self.LocationsService(self) - self.operations = self.OperationsService(self) - self.projects_builds = self.ProjectsBuildsService(self) - self.projects_githubEnterpriseConfigs = self.ProjectsGithubEnterpriseConfigsService( - self) - self.projects_locations_bitbucketServerConfigs_connectedRepositories = self.ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService( - self) - self.projects_locations_bitbucketServerConfigs_repos = self.ProjectsLocationsBitbucketServerConfigsReposService( - self) - self.projects_locations_bitbucketServerConfigs = self.ProjectsLocationsBitbucketServerConfigsService( - self) - self.projects_locations_builds = self.ProjectsLocationsBuildsService(self) - self.projects_locations_githubEnterpriseConfigs = self.ProjectsLocationsGithubEnterpriseConfigsService( - self) - self.projects_locations_operations = self.ProjectsLocationsOperationsService( - self) - self.projects_locations_triggers = self.ProjectsLocationsTriggersService( - self) - self.projects_locations_workerPools = self.ProjectsLocationsWorkerPoolsService( - self) - self.projects_locations = self.ProjectsLocationsService(self) - self.projects_triggers = self.ProjectsTriggersService(self) - self.projects = self.ProjectsService(self) - self.v1 = self.V1Service(self) - - class LocationsService(base_api.BaseApiService): - """Service class for the locations resource.""" - - _NAME = 'locations' - - def __init__(self, client): - super(CloudbuildV1.LocationsService, self).__init__(client) - self._upload_configs = {} - - def RegionalWebhook(self, request, global_params=None): - r"""ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. - - Args: - request: (CloudbuildLocationsRegionalWebhookRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('RegionalWebhook') - return self._RunMethod(config, request, global_params=global_params) - - RegionalWebhook.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/locations/{locationsId}/regionalWebhook', - http_method='POST', - method_id='cloudbuild.locations.regionalWebhook', - ordered_params=['location'], - path_params=['location'], - query_params=['webhookKey'], - relative_path='v1/{+location}/regionalWebhook', - request_field='httpBody', - request_type_name='CloudbuildLocationsRegionalWebhookRequest', - response_type_name='Empty', - supports_download=False, ) - - class OperationsService(base_api.BaseApiService): - """Service class for the operations resource.""" - - _NAME = 'operations' - - def __init__(self, client): - super(CloudbuildV1.OperationsService, self).__init__(client) - self._upload_configs = {} - - def Cancel(self, request, global_params=None): - r"""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`. - - Args: - request: (CloudbuildOperationsCancelRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('Cancel') - return self._RunMethod(config, request, global_params=global_params) - - Cancel.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/operations/{operationsId}:cancel', - http_method='POST', - method_id='cloudbuild.operations.cancel', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:cancel', - request_field='cancelOperationRequest', - request_type_name='CloudbuildOperationsCancelRequest', - response_type_name='Empty', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""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. - - Args: - request: (CloudbuildOperationsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/operations/{operationsId}', - http_method='GET', - method_id='cloudbuild.operations.get', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildOperationsGetRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsBuildsService(base_api.BaseApiService): - """Service class for the projects_builds resource.""" - - _NAME = 'projects_builds' - - def __init__(self, client): - super(CloudbuildV1.ProjectsBuildsService, self).__init__(client) - self._upload_configs = {} - - def Approve(self, request, global_params=None): - r"""Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. - - Args: - request: (CloudbuildProjectsBuildsApproveRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Approve') - return self._RunMethod(config, request, global_params=global_params) - - Approve.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/builds/{buildsId}:approve', - http_method='POST', - method_id='cloudbuild.projects.builds.approve', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:approve', - request_field='approveBuildRequest', - request_type_name='CloudbuildProjectsBuildsApproveRequest', - response_type_name='Operation', - supports_download=False, ) - - def Cancel(self, request, global_params=None): - r"""Cancels a build in progress. - - Args: - request: (CancelBuildRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Build) The response message. - """ - config = self.GetMethodConfig('Cancel') - return self._RunMethod(config, request, global_params=global_params) - - Cancel.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.projects.builds.cancel', - ordered_params=['projectId', 'id'], - path_params=['id', 'projectId'], - query_params=[], - relative_path='v1/projects/{projectId}/builds/{id}:cancel', - request_field='', - request_type_name='CancelBuildRequest', - response_type_name='Build', - supports_download=False, ) - - def Create(self, request, global_params=None): - r"""Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`). - - Args: - request: (CloudbuildProjectsBuildsCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.projects.builds.create', - ordered_params=['projectId'], - path_params=['projectId'], - query_params=['parent'], - relative_path='v1/projects/{projectId}/builds', - request_field='build', - request_type_name='CloudbuildProjectsBuildsCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information. - - Args: - request: (CloudbuildProjectsBuildsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Build) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - http_method='GET', - method_id='cloudbuild.projects.builds.get', - ordered_params=['projectId', 'id'], - path_params=['id', 'projectId'], - query_params=['name'], - relative_path='v1/projects/{projectId}/builds/{id}', - request_field='', - request_type_name='CloudbuildProjectsBuildsGetRequest', - response_type_name='Build', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully. - - Args: - request: (CloudbuildProjectsBuildsListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListBuildsResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - http_method='GET', - method_id='cloudbuild.projects.builds.list', - ordered_params=['projectId'], - path_params=['projectId'], - query_params=['filter', 'pageSize', 'pageToken', 'parent'], - relative_path='v1/projects/{projectId}/builds', - request_field='', - request_type_name='CloudbuildProjectsBuildsListRequest', - response_type_name='ListBuildsResponse', - supports_download=False, ) - - def Retry(self, request, global_params=None): - r"""Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings. - - Args: - request: (RetryBuildRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Retry') - return self._RunMethod(config, request, global_params=global_params) - - Retry.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.projects.builds.retry', - ordered_params=['projectId', 'id'], - path_params=['id', 'projectId'], - query_params=[], - relative_path='v1/projects/{projectId}/builds/{id}:retry', - request_field='', - request_type_name='RetryBuildRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsGithubEnterpriseConfigsService(base_api.BaseApiService): - """Service class for the projects_githubEnterpriseConfigs resource.""" - - _NAME = 'projects_githubEnterpriseConfigs' - - def __init__(self, client): - super(CloudbuildV1.ProjectsGithubEnterpriseConfigsService, - self).__init__(client) - self._upload_configs = {} - - def Create(self, request, global_params=None): - r"""Create an association between a GCP project and a GitHub Enterprise server. - - Args: - request: (CloudbuildProjectsGithubEnterpriseConfigsCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/githubEnterpriseConfigs', - http_method='POST', - method_id='cloudbuild.projects.githubEnterpriseConfigs.create', - ordered_params=['parent'], - path_params=['parent'], - query_params=['gheConfigId', 'projectId'], - relative_path='v1/{+parent}/githubEnterpriseConfigs', - request_field='gitHubEnterpriseConfig', - request_type_name= - 'CloudbuildProjectsGithubEnterpriseConfigsCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - def Delete(self, request, global_params=None): - r"""Delete an association between a GCP project and a GitHub Enterprise server. - - Args: - request: (CloudbuildProjectsGithubEnterpriseConfigsDeleteRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Delete') - return self._RunMethod(config, request, global_params=global_params) - - Delete.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/githubEnterpriseConfigs/{githubEnterpriseConfigsId}', - http_method='DELETE', - method_id='cloudbuild.projects.githubEnterpriseConfigs.delete', - ordered_params=['name'], - path_params=['name'], - query_params=['configId', 'projectId'], - relative_path='v1/{+name}', - request_field='', - request_type_name= - 'CloudbuildProjectsGithubEnterpriseConfigsDeleteRequest', - response_type_name='Operation', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Retrieve a GitHubEnterpriseConfig. - - Args: - request: (CloudbuildProjectsGithubEnterpriseConfigsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (GitHubEnterpriseConfig) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/githubEnterpriseConfigs/{githubEnterpriseConfigsId}', - http_method='GET', - method_id='cloudbuild.projects.githubEnterpriseConfigs.get', - ordered_params=['name'], - path_params=['name'], - query_params=['configId', 'projectId'], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsGithubEnterpriseConfigsGetRequest', - response_type_name='GitHubEnterpriseConfig', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""List all GitHubEnterpriseConfigs for a given project. - - Args: - request: (CloudbuildProjectsGithubEnterpriseConfigsListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListGithubEnterpriseConfigsResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/githubEnterpriseConfigs', - http_method='GET', - method_id='cloudbuild.projects.githubEnterpriseConfigs.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['projectId'], - relative_path='v1/{+parent}/githubEnterpriseConfigs', - request_field='', - request_type_name= - 'CloudbuildProjectsGithubEnterpriseConfigsListRequest', - response_type_name='ListGithubEnterpriseConfigsResponse', - supports_download=False, ) - - def Patch(self, request, global_params=None): - r"""Update an association between a GCP project and a GitHub Enterprise server. - - Args: - request: (CloudbuildProjectsGithubEnterpriseConfigsPatchRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Patch') - return self._RunMethod(config, request, global_params=global_params) - - Patch.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/githubEnterpriseConfigs/{githubEnterpriseConfigsId}', - http_method='PATCH', - method_id='cloudbuild.projects.githubEnterpriseConfigs.patch', - ordered_params=['name'], - path_params=['name'], - query_params=['updateMask'], - relative_path='v1/{+name}', - request_field='gitHubEnterpriseConfig', - request_type_name= - 'CloudbuildProjectsGithubEnterpriseConfigsPatchRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService( - base_api.BaseApiService): - """Service class for the projects_locations_bitbucketServerConfigs_connectedRepositories resource.""" - - _NAME = 'projects_locations_bitbucketServerConfigs_connectedRepositories' - - def __init__(self, client): - super( - CloudbuildV1. - ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService, - self).__init__(client) - self._upload_configs = {} - - def BatchCreate(self, request, global_params=None): - r"""Batch connecting Bitbucket Server repositories to Cloud Build. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('BatchCreate') - return self._RunMethod(config, request, global_params=global_params) - - BatchCreate.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}/connectedRepositories:batchCreate', - http_method='POST', - method_id= - 'cloudbuild.projects.locations.bitbucketServerConfigs.connectedRepositories.batchCreate', - ordered_params=['parent'], - path_params=['parent'], - query_params=[], - relative_path='v1/{+parent}/connectedRepositories:batchCreate', - request_field='batchCreateBitbucketServerConnectedRepositoriesRequest', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsLocationsBitbucketServerConfigsReposService( - base_api.BaseApiService): - """Service class for the projects_locations_bitbucketServerConfigs_repos resource.""" - - _NAME = 'projects_locations_bitbucketServerConfigs_repos' - - def __init__(self, client): - super( - CloudbuildV1.ProjectsLocationsBitbucketServerConfigsReposService, - self).__init__(client) - self._upload_configs = {} - - def List(self, request, global_params=None): - r"""List all repositories for a given `BitbucketServerConfig`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsReposListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListBitbucketServerRepositoriesResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}/repos', - http_method='GET', - method_id= - 'cloudbuild.projects.locations.bitbucketServerConfigs.repos.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['pageSize', 'pageToken'], - relative_path='v1/{+parent}/repos', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsReposListRequest', - response_type_name='ListBitbucketServerRepositoriesResponse', - supports_download=False, ) - - class ProjectsLocationsBitbucketServerConfigsService(base_api.BaseApiService): - """Service class for the projects_locations_bitbucketServerConfigs resource.""" - - _NAME = 'projects_locations_bitbucketServerConfigs' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsBitbucketServerConfigsService, - self).__init__(client) - self._upload_configs = {} - - def AddBitbucketServerConnectedRepository( - self, request, global_params=None): - r"""Add a Bitbucket Server repository to a given BitbucketServerConfig's connected repositories. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (AddBitbucketServerConnectedRepositoryResponse) The response message. - """ - config = self.GetMethodConfig('AddBitbucketServerConnectedRepository') - return self._RunMethod(config, request, global_params=global_params) - - AddBitbucketServerConnectedRepository.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}:addBitbucketServerConnectedRepository', - http_method='POST', - method_id= - 'cloudbuild.projects.locations.bitbucketServerConfigs.addBitbucketServerConnectedRepository', - ordered_params=['config'], - path_params=['config'], - query_params=[], - relative_path='v1/{+config}:addBitbucketServerConnectedRepository', - request_field='addBitbucketServerConnectedRepositoryRequest', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryRequest', - response_type_name='AddBitbucketServerConnectedRepositoryResponse', - supports_download=False, ) - - def Create(self, request, global_params=None): - r"""Creates a new `BitbucketServerConfig`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs', - http_method='POST', - method_id='cloudbuild.projects.locations.bitbucketServerConfigs.create', - ordered_params=['parent'], - path_params=['parent'], - query_params=['bitbucketServerConfigId'], - relative_path='v1/{+parent}/bitbucketServerConfigs', - request_field='bitbucketServerConfig', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - def Delete(self, request, global_params=None): - r"""Delete a `BitbucketServerConfig`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsDeleteRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Delete') - return self._RunMethod(config, request, global_params=global_params) - - Delete.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}', - http_method='DELETE', - method_id='cloudbuild.projects.locations.bitbucketServerConfigs.delete', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsDeleteRequest', - response_type_name='Operation', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Retrieve a `BitbucketServerConfig`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BitbucketServerConfig) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}', - http_method='GET', - method_id='cloudbuild.projects.locations.bitbucketServerConfigs.get', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsGetRequest', - response_type_name='BitbucketServerConfig', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""List all `BitbucketServerConfigs` for a given project. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListBitbucketServerConfigsResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs', - http_method='GET', - method_id='cloudbuild.projects.locations.bitbucketServerConfigs.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['pageSize', 'pageToken'], - relative_path='v1/{+parent}/bitbucketServerConfigs', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsListRequest', - response_type_name='ListBitbucketServerConfigsResponse', - supports_download=False, ) - - def Patch(self, request, global_params=None): - r"""Updates an existing `BitbucketServerConfig`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsPatchRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Patch') - return self._RunMethod(config, request, global_params=global_params) - - Patch.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}', - http_method='PATCH', - method_id='cloudbuild.projects.locations.bitbucketServerConfigs.patch', - ordered_params=['name'], - path_params=['name'], - query_params=['updateMask'], - relative_path='v1/{+name}', - request_field='bitbucketServerConfig', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsPatchRequest', - response_type_name='Operation', - supports_download=False, ) - - def RemoveBitbucketServerConnectedRepository( - self, request, global_params=None): - r"""Remove a Bitbucket Server repository from an given BitbucketServerConfig's connected repositories. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('RemoveBitbucketServerConnectedRepository') - return self._RunMethod(config, request, global_params=global_params) - - RemoveBitbucketServerConnectedRepository.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}:removeBitbucketServerConnectedRepository', - http_method='POST', - method_id= - 'cloudbuild.projects.locations.bitbucketServerConfigs.removeBitbucketServerConnectedRepository', - ordered_params=['config'], - path_params=['config'], - query_params=[], - relative_path='v1/{+config}:removeBitbucketServerConnectedRepository', - request_field='removeBitbucketServerConnectedRepositoryRequest', - request_type_name= - 'CloudbuildProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryRequest', - response_type_name='Empty', - supports_download=False, ) - - class ProjectsLocationsBuildsService(base_api.BaseApiService): - """Service class for the projects_locations_builds resource.""" - - _NAME = 'projects_locations_builds' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsBuildsService, self).__init__(client) - self._upload_configs = {} - - def Approve(self, request, global_params=None): - r"""Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. - - Args: - request: (CloudbuildProjectsLocationsBuildsApproveRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Approve') - return self._RunMethod(config, request, global_params=global_params) - - Approve.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/builds/{buildsId}:approve', - http_method='POST', - method_id='cloudbuild.projects.locations.builds.approve', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:approve', - request_field='approveBuildRequest', - request_type_name='CloudbuildProjectsLocationsBuildsApproveRequest', - response_type_name='Operation', - supports_download=False, ) - - def Cancel(self, request, global_params=None): - r"""Cancels a build in progress. - - Args: - request: (CancelBuildRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Build) The response message. - """ - config = self.GetMethodConfig('Cancel') - return self._RunMethod(config, request, global_params=global_params) - - Cancel.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/builds/{buildsId}:cancel', - http_method='POST', - method_id='cloudbuild.projects.locations.builds.cancel', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:cancel', - request_field='', - request_type_name='CancelBuildRequest', - response_type_name='Build', - supports_download=False, ) - - def Create(self, request, global_params=None): - r"""Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`). - - Args: - request: (CloudbuildProjectsLocationsBuildsCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/locations/{locationsId}/builds', - http_method='POST', - method_id='cloudbuild.projects.locations.builds.create', - ordered_params=['parent'], - path_params=['parent'], - query_params=['projectId'], - relative_path='v1/{+parent}/builds', - request_field='build', - request_type_name='CloudbuildProjectsLocationsBuildsCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information. - - Args: - request: (CloudbuildProjectsLocationsBuildsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Build) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/builds/{buildsId}', - http_method='GET', - method_id='cloudbuild.projects.locations.builds.get', - ordered_params=['name'], - path_params=['name'], - query_params=['id', 'projectId'], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsLocationsBuildsGetRequest', - response_type_name='Build', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully. - - Args: - request: (CloudbuildProjectsLocationsBuildsListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListBuildsResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/locations/{locationsId}/builds', - http_method='GET', - method_id='cloudbuild.projects.locations.builds.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['filter', 'pageSize', 'pageToken', 'projectId'], - relative_path='v1/{+parent}/builds', - request_field='', - request_type_name='CloudbuildProjectsLocationsBuildsListRequest', - response_type_name='ListBuildsResponse', - supports_download=False, ) - - def Retry(self, request, global_params=None): - r"""Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings. - - Args: - request: (RetryBuildRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Retry') - return self._RunMethod(config, request, global_params=global_params) - - Retry.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/builds/{buildsId}:retry', - http_method='POST', - method_id='cloudbuild.projects.locations.builds.retry', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:retry', - request_field='', - request_type_name='RetryBuildRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsLocationsGithubEnterpriseConfigsService(base_api.BaseApiService - ): - """Service class for the projects_locations_githubEnterpriseConfigs resource.""" - - _NAME = 'projects_locations_githubEnterpriseConfigs' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsGithubEnterpriseConfigsService, - self).__init__(client) - self._upload_configs = {} - - def Create(self, request, global_params=None): - r"""Create an association between a GCP project and a GitHub Enterprise server. - - Args: - request: (CloudbuildProjectsLocationsGithubEnterpriseConfigsCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/githubEnterpriseConfigs', - http_method='POST', - method_id= - 'cloudbuild.projects.locations.githubEnterpriseConfigs.create', - ordered_params=['parent'], - path_params=['parent'], - query_params=['gheConfigId', 'projectId'], - relative_path='v1/{+parent}/githubEnterpriseConfigs', - request_field='gitHubEnterpriseConfig', - request_type_name= - 'CloudbuildProjectsLocationsGithubEnterpriseConfigsCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - def Delete(self, request, global_params=None): - r"""Delete an association between a GCP project and a GitHub Enterprise server. - - Args: - request: (CloudbuildProjectsLocationsGithubEnterpriseConfigsDeleteRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Delete') - return self._RunMethod(config, request, global_params=global_params) - - Delete.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/githubEnterpriseConfigs/{githubEnterpriseConfigsId}', - http_method='DELETE', - method_id= - 'cloudbuild.projects.locations.githubEnterpriseConfigs.delete', - ordered_params=['name'], - path_params=['name'], - query_params=['configId', 'projectId'], - relative_path='v1/{+name}', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsGithubEnterpriseConfigsDeleteRequest', - response_type_name='Operation', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Retrieve a GitHubEnterpriseConfig. - - Args: - request: (CloudbuildProjectsLocationsGithubEnterpriseConfigsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (GitHubEnterpriseConfig) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/githubEnterpriseConfigs/{githubEnterpriseConfigsId}', - http_method='GET', - method_id='cloudbuild.projects.locations.githubEnterpriseConfigs.get', - ordered_params=['name'], - path_params=['name'], - query_params=['configId', 'projectId'], - relative_path='v1/{+name}', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsGithubEnterpriseConfigsGetRequest', - response_type_name='GitHubEnterpriseConfig', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""List all GitHubEnterpriseConfigs for a given project. - - Args: - request: (CloudbuildProjectsLocationsGithubEnterpriseConfigsListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListGithubEnterpriseConfigsResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/githubEnterpriseConfigs', - http_method='GET', - method_id='cloudbuild.projects.locations.githubEnterpriseConfigs.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['projectId'], - relative_path='v1/{+parent}/githubEnterpriseConfigs', - request_field='', - request_type_name= - 'CloudbuildProjectsLocationsGithubEnterpriseConfigsListRequest', - response_type_name='ListGithubEnterpriseConfigsResponse', - supports_download=False, ) - - def Patch(self, request, global_params=None): - r"""Update an association between a GCP project and a GitHub Enterprise server. - - Args: - request: (CloudbuildProjectsLocationsGithubEnterpriseConfigsPatchRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Patch') - return self._RunMethod(config, request, global_params=global_params) - - Patch.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/githubEnterpriseConfigs/{githubEnterpriseConfigsId}', - http_method='PATCH', - method_id='cloudbuild.projects.locations.githubEnterpriseConfigs.patch', - ordered_params=['name'], - path_params=['name'], - query_params=['updateMask'], - relative_path='v1/{+name}', - request_field='gitHubEnterpriseConfig', - request_type_name= - 'CloudbuildProjectsLocationsGithubEnterpriseConfigsPatchRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsLocationsOperationsService(base_api.BaseApiService): - """Service class for the projects_locations_operations resource.""" - - _NAME = 'projects_locations_operations' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsOperationsService, - self).__init__(client) - self._upload_configs = {} - - def Cancel(self, request, global_params=None): - r"""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`. - - Args: - request: (CloudbuildProjectsLocationsOperationsCancelRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('Cancel') - return self._RunMethod(config, request, global_params=global_params) - - Cancel.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel', - http_method='POST', - method_id='cloudbuild.projects.locations.operations.cancel', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:cancel', - request_field='cancelOperationRequest', - request_type_name='CloudbuildProjectsLocationsOperationsCancelRequest', - response_type_name='Empty', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""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. - - Args: - request: (CloudbuildProjectsLocationsOperationsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}', - http_method='GET', - method_id='cloudbuild.projects.locations.operations.get', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsLocationsOperationsGetRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsLocationsTriggersService(base_api.BaseApiService): - """Service class for the projects_locations_triggers resource.""" - - _NAME = 'projects_locations_triggers' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsTriggersService, - self).__init__(client) - self._upload_configs = {} - - def Create(self, request, global_params=None): - r"""Creates a new `BuildTrigger`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsTriggersCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BuildTrigger) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/locations/{locationsId}/triggers', - http_method='POST', - method_id='cloudbuild.projects.locations.triggers.create', - ordered_params=['parent'], - path_params=['parent'], - query_params=['projectId'], - relative_path='v1/{+parent}/triggers', - request_field='buildTrigger', - request_type_name='CloudbuildProjectsLocationsTriggersCreateRequest', - response_type_name='BuildTrigger', - supports_download=False, ) - - def Delete(self, request, global_params=None): - r"""Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsTriggersDeleteRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('Delete') - return self._RunMethod(config, request, global_params=global_params) - - Delete.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}', - http_method='DELETE', - method_id='cloudbuild.projects.locations.triggers.delete', - ordered_params=['name'], - path_params=['name'], - query_params=['projectId', 'triggerId'], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsLocationsTriggersDeleteRequest', - response_type_name='Empty', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Returns information about a `BuildTrigger`. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsTriggersGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BuildTrigger) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}', - http_method='GET', - method_id='cloudbuild.projects.locations.triggers.get', - ordered_params=['name'], - path_params=['name'], - query_params=['projectId', 'triggerId'], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsLocationsTriggersGetRequest', - response_type_name='BuildTrigger', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""Lists existing `BuildTrigger`s. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsTriggersListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListBuildTriggersResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path='v1/projects/{projectsId}/locations/{locationsId}/triggers', - http_method='GET', - method_id='cloudbuild.projects.locations.triggers.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['pageSize', 'pageToken', 'projectId'], - relative_path='v1/{+parent}/triggers', - request_field='', - request_type_name='CloudbuildProjectsLocationsTriggersListRequest', - response_type_name='ListBuildTriggersResponse', - supports_download=False, ) - - def Patch(self, request, global_params=None): - r"""Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. - - Args: - request: (CloudbuildProjectsLocationsTriggersPatchRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BuildTrigger) The response message. - """ - config = self.GetMethodConfig('Patch') - return self._RunMethod(config, request, global_params=global_params) - - Patch.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}', - http_method='PATCH', - method_id='cloudbuild.projects.locations.triggers.patch', - ordered_params=['resourceName'], - path_params=['resourceName'], - query_params=['projectId', 'triggerId'], - relative_path='v1/{+resourceName}', - request_field='buildTrigger', - request_type_name='CloudbuildProjectsLocationsTriggersPatchRequest', - response_type_name='BuildTrigger', - supports_download=False, ) - - def Run(self, request, global_params=None): - r"""Runs a `BuildTrigger` at a particular source revision. - - Args: - request: (CloudbuildProjectsLocationsTriggersRunRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Run') - return self._RunMethod(config, request, global_params=global_params) - - Run.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:run', - http_method='POST', - method_id='cloudbuild.projects.locations.triggers.run', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}:run', - request_field='runBuildTriggerRequest', - request_type_name='CloudbuildProjectsLocationsTriggersRunRequest', - response_type_name='Operation', - supports_download=False, ) - - def Webhook(self, request, global_params=None): - r"""ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. - - Args: - request: (CloudbuildProjectsLocationsTriggersWebhookRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ReceiveTriggerWebhookResponse) The response message. - """ - config = self.GetMethodConfig('Webhook') - return self._RunMethod(config, request, global_params=global_params) - - Webhook.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}:webhook', - http_method='POST', - method_id='cloudbuild.projects.locations.triggers.webhook', - ordered_params=['name'], - path_params=['name'], - query_params=['projectId', 'secret', 'trigger'], - relative_path='v1/{+name}:webhook', - request_field='httpBody', - request_type_name='CloudbuildProjectsLocationsTriggersWebhookRequest', - response_type_name='ReceiveTriggerWebhookResponse', - supports_download=False, ) - - class ProjectsLocationsWorkerPoolsService(base_api.BaseApiService): - """Service class for the projects_locations_workerPools resource.""" - - _NAME = 'projects_locations_workerPools' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsWorkerPoolsService, - self).__init__(client) - self._upload_configs = {} - - def Create(self, request, global_params=None): - r"""Creates a `WorkerPool`. - - Args: - request: (CloudbuildProjectsLocationsWorkerPoolsCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/workerPools', - http_method='POST', - method_id='cloudbuild.projects.locations.workerPools.create', - ordered_params=['parent'], - path_params=['parent'], - query_params=['validateOnly', 'workerPoolId'], - relative_path='v1/{+parent}/workerPools', - request_field='workerPool', - request_type_name='CloudbuildProjectsLocationsWorkerPoolsCreateRequest', - response_type_name='Operation', - supports_download=False, ) - - def Delete(self, request, global_params=None): - r"""Deletes a `WorkerPool`. - - Args: - request: (CloudbuildProjectsLocationsWorkerPoolsDeleteRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Delete') - return self._RunMethod(config, request, global_params=global_params) - - Delete.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}', - http_method='DELETE', - method_id='cloudbuild.projects.locations.workerPools.delete', - ordered_params=['name'], - path_params=['name'], - query_params=['allowMissing', 'etag', 'validateOnly'], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsLocationsWorkerPoolsDeleteRequest', - response_type_name='Operation', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Returns details of a `WorkerPool`. - - Args: - request: (CloudbuildProjectsLocationsWorkerPoolsGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (WorkerPool) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}', - http_method='GET', - method_id='cloudbuild.projects.locations.workerPools.get', - ordered_params=['name'], - path_params=['name'], - query_params=[], - relative_path='v1/{+name}', - request_field='', - request_type_name='CloudbuildProjectsLocationsWorkerPoolsGetRequest', - response_type_name='WorkerPool', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""Lists `WorkerPool`s. - - Args: - request: (CloudbuildProjectsLocationsWorkerPoolsListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListWorkerPoolsResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/workerPools', - http_method='GET', - method_id='cloudbuild.projects.locations.workerPools.list', - ordered_params=['parent'], - path_params=['parent'], - query_params=['pageSize', 'pageToken'], - relative_path='v1/{+parent}/workerPools', - request_field='', - request_type_name='CloudbuildProjectsLocationsWorkerPoolsListRequest', - response_type_name='ListWorkerPoolsResponse', - supports_download=False, ) - - def Patch(self, request, global_params=None): - r"""Updates a `WorkerPool`. - - Args: - request: (CloudbuildProjectsLocationsWorkerPoolsPatchRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Patch') - return self._RunMethod(config, request, global_params=global_params) - - Patch.method_config = lambda: base_api.ApiMethodInfo( - flat_path= - 'v1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}', - http_method='PATCH', - method_id='cloudbuild.projects.locations.workerPools.patch', - ordered_params=['name'], - path_params=['name'], - query_params=['updateMask', 'validateOnly'], - relative_path='v1/{+name}', - request_field='workerPool', - request_type_name='CloudbuildProjectsLocationsWorkerPoolsPatchRequest', - response_type_name='Operation', - supports_download=False, ) - - class ProjectsLocationsService(base_api.BaseApiService): - """Service class for the projects_locations resource.""" - - _NAME = 'projects_locations' - - def __init__(self, client): - super(CloudbuildV1.ProjectsLocationsService, self).__init__(client) - self._upload_configs = {} - - class ProjectsTriggersService(base_api.BaseApiService): - """Service class for the projects_triggers resource.""" - - _NAME = 'projects_triggers' - - def __init__(self, client): - super(CloudbuildV1.ProjectsTriggersService, self).__init__(client) - self._upload_configs = {} - - def Create(self, request, global_params=None): - r"""Creates a new `BuildTrigger`. This API is experimental. - - Args: - request: (CloudbuildProjectsTriggersCreateRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BuildTrigger) The response message. - """ - config = self.GetMethodConfig('Create') - return self._RunMethod(config, request, global_params=global_params) - - Create.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.projects.triggers.create', - ordered_params=['projectId'], - path_params=['projectId'], - query_params=['parent'], - relative_path='v1/projects/{projectId}/triggers', - request_field='buildTrigger', - request_type_name='CloudbuildProjectsTriggersCreateRequest', - response_type_name='BuildTrigger', - supports_download=False, ) - - def Delete(self, request, global_params=None): - r"""Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. - - Args: - request: (CloudbuildProjectsTriggersDeleteRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('Delete') - return self._RunMethod(config, request, global_params=global_params) - - Delete.method_config = lambda: base_api.ApiMethodInfo( - http_method='DELETE', - method_id='cloudbuild.projects.triggers.delete', - ordered_params=['projectId', 'triggerId'], - path_params=['projectId', 'triggerId'], - query_params=['name'], - relative_path='v1/projects/{projectId}/triggers/{triggerId}', - request_field='', - request_type_name='CloudbuildProjectsTriggersDeleteRequest', - response_type_name='Empty', - supports_download=False, ) - - def Get(self, request, global_params=None): - r"""Returns information about a `BuildTrigger`. This API is experimental. - - Args: - request: (CloudbuildProjectsTriggersGetRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BuildTrigger) The response message. - """ - config = self.GetMethodConfig('Get') - return self._RunMethod(config, request, global_params=global_params) - - Get.method_config = lambda: base_api.ApiMethodInfo( - http_method='GET', - method_id='cloudbuild.projects.triggers.get', - ordered_params=['projectId', 'triggerId'], - path_params=['projectId', 'triggerId'], - query_params=['name'], - relative_path='v1/projects/{projectId}/triggers/{triggerId}', - request_field='', - request_type_name='CloudbuildProjectsTriggersGetRequest', - response_type_name='BuildTrigger', - supports_download=False, ) - - def List(self, request, global_params=None): - r"""Lists existing `BuildTrigger`s. This API is experimental. - - Args: - request: (CloudbuildProjectsTriggersListRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ListBuildTriggersResponse) The response message. - """ - config = self.GetMethodConfig('List') - return self._RunMethod(config, request, global_params=global_params) - - List.method_config = lambda: base_api.ApiMethodInfo( - http_method='GET', - method_id='cloudbuild.projects.triggers.list', - ordered_params=['projectId'], - path_params=['projectId'], - query_params=['pageSize', 'pageToken', 'parent'], - relative_path='v1/projects/{projectId}/triggers', - request_field='', - request_type_name='CloudbuildProjectsTriggersListRequest', - response_type_name='ListBuildTriggersResponse', - supports_download=False, ) - - def Patch(self, request, global_params=None): - r"""Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. - - Args: - request: (CloudbuildProjectsTriggersPatchRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (BuildTrigger) The response message. - """ - config = self.GetMethodConfig('Patch') - return self._RunMethod(config, request, global_params=global_params) - - Patch.method_config = lambda: base_api.ApiMethodInfo( - http_method='PATCH', - method_id='cloudbuild.projects.triggers.patch', - ordered_params=['projectId', 'triggerId'], - path_params=['projectId', 'triggerId'], - query_params=[], - relative_path='v1/projects/{projectId}/triggers/{triggerId}', - request_field='buildTrigger', - request_type_name='CloudbuildProjectsTriggersPatchRequest', - response_type_name='BuildTrigger', - supports_download=False, ) - - def Run(self, request, global_params=None): - r"""Runs a `BuildTrigger` at a particular source revision. - - Args: - request: (CloudbuildProjectsTriggersRunRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Operation) The response message. - """ - config = self.GetMethodConfig('Run') - return self._RunMethod(config, request, global_params=global_params) - - Run.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.projects.triggers.run', - ordered_params=['projectId', 'triggerId'], - path_params=['projectId', 'triggerId'], - query_params=['name'], - relative_path='v1/projects/{projectId}/triggers/{triggerId}:run', - request_field='repoSource', - request_type_name='CloudbuildProjectsTriggersRunRequest', - response_type_name='Operation', - supports_download=False, ) - - def Webhook(self, request, global_params=None): - r"""ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. - - Args: - request: (CloudbuildProjectsTriggersWebhookRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (ReceiveTriggerWebhookResponse) The response message. - """ - config = self.GetMethodConfig('Webhook') - return self._RunMethod(config, request, global_params=global_params) - - Webhook.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.projects.triggers.webhook', - ordered_params=['projectId', 'trigger'], - path_params=['projectId', 'trigger'], - query_params=['name', 'secret'], - relative_path='v1/projects/{projectId}/triggers/{trigger}:webhook', - request_field='httpBody', - request_type_name='CloudbuildProjectsTriggersWebhookRequest', - response_type_name='ReceiveTriggerWebhookResponse', - supports_download=False, ) - - class ProjectsService(base_api.BaseApiService): - """Service class for the projects resource.""" - - _NAME = 'projects' - - def __init__(self, client): - super(CloudbuildV1.ProjectsService, self).__init__(client) - self._upload_configs = {} - - class V1Service(base_api.BaseApiService): - """Service class for the v1 resource.""" - - _NAME = 'v1' - - def __init__(self, client): - super(CloudbuildV1.V1Service, self).__init__(client) - self._upload_configs = {} - - def Webhook(self, request, global_params=None): - r"""ReceiveWebhook is called when the API receives a GitHub webhook. - - Args: - request: (CloudbuildWebhookRequest) input message - global_params: (StandardQueryParameters, default: None) global arguments - Returns: - (Empty) The response message. - """ - config = self.GetMethodConfig('Webhook') - return self._RunMethod(config, request, global_params=global_params) - - Webhook.method_config = lambda: base_api.ApiMethodInfo( - http_method='POST', - method_id='cloudbuild.webhook', - ordered_params=[], - path_params=[], - query_params=['webhookKey'], - relative_path='v1/webhook', - request_field='httpBody', - request_type_name='CloudbuildWebhookRequest', - response_type_name='Empty', - supports_download=False, ) diff --git a/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/cloudbuild_v1_messages.py b/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/cloudbuild_v1_messages.py deleted file mode 100644 index 99edce0c45e6..000000000000 --- a/sdks/python/apache_beam/runners/dataflow/internal/clients/cloudbuild/cloudbuild_v1_messages.py +++ /dev/null @@ -1,3836 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You 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. -# - -"""Generated message classes for cloudbuild version v1. - -Creates and manages builds on Google Cloud Platform. -""" -# NOTE: This file is autogenerated and should not be edited by hand. -# mypy: ignore-errors -# To regenerate the client: -# pip install google-apitools[cli] -# gen_client --discovery_url=cloudbuild.v1 --overwrite \ -# --outdir=apache_beam/runners/dataflow/internal/clients/cloudbuild \ -# --root_package=. client - -from apitools.base.protorpclite import messages as _messages -from apitools.base.py import encoding -from apitools.base.py import extra_types - -package = 'cloudbuild' - - -class AddBitbucketServerConnectedRepositoryRequest(_messages.Message): - r"""RPC request object accepted by the AddBitbucketServerConnectedRepository - RPC method. - - Fields: - connectedRepository: The connected repository to add. - """ - - connectedRepository = _messages.MessageField('BitbucketServerRepositoryId', 1) - - -class AddBitbucketServerConnectedRepositoryResponse(_messages.Message): - r"""RPC request object returned by the AddBitbucketServerConnectedRepository - RPC method. - - Fields: - config: The name of the `BitbucketServerConfig` that added connected - repository. Format: `projects/{project}/locations/{location}/bitbucketSe - rverConfigs/{config}` - connectedRepository: The connected repository. - """ - - config = _messages.StringField(1) - connectedRepository = _messages.MessageField('BitbucketServerRepositoryId', 2) - - -class ApprovalConfig(_messages.Message): - r"""ApprovalConfig describes configuration for manual approval of a build. - - Fields: - approvalRequired: Whether or not approval is needed. If this is set on a - build, it will become pending when created, and will need to be - explicitly approved to start. - """ - - approvalRequired = _messages.BooleanField(1) - - -class ApprovalResult(_messages.Message): - r"""ApprovalResult describes the decision and associated metadata of a - manual approval of a build. - - Enums: - DecisionValueValuesEnum: Required. The decision of this manual approval. - - Fields: - approvalTime: Output only. The time when the approval decision was made. - approverAccount: Output only. Email of the user that called the - ApproveBuild API to approve or reject a build at the time that the API - was called. - comment: Optional. An optional comment for this manual approval result. - decision: Required. The decision of this manual approval. - url: Optional. An optional URL tied to this manual approval result. This - field is essentially the same as comment, except that it will be - rendered by the UI differently. An example use case is a link to an - external job that approved this Build. - """ - class DecisionValueValuesEnum(_messages.Enum): - r"""Required. The decision of this manual approval. - - Values: - DECISION_UNSPECIFIED: Default enum type. This should not be used. - APPROVED: Build is approved. - REJECTED: Build is rejected. - """ - DECISION_UNSPECIFIED = 0 - APPROVED = 1 - REJECTED = 2 - - approvalTime = _messages.StringField(1) - approverAccount = _messages.StringField(2) - comment = _messages.StringField(3) - decision = _messages.EnumField('DecisionValueValuesEnum', 4) - url = _messages.StringField(5) - - -class ApproveBuildRequest(_messages.Message): - r"""Request to approve or reject a pending build. - - Fields: - approvalResult: Approval decision and metadata. - """ - - approvalResult = _messages.MessageField('ApprovalResult', 1) - - -class ArtifactObjects(_messages.Message): - r"""Files in the workspace to upload to Cloud Storage upon successful - completion of all build steps. - - Fields: - location: Cloud Storage bucket and optional object path, in the form - "gs://bucket/path/to/somewhere/". (see [Bucket Name - Requirements](https://cloud.google.com/storage/docs/bucket- - naming#requirements)). Files in the workspace matching any path pattern - will be uploaded to Cloud Storage with this location as a prefix. - paths: Path globs used to match files in the build's workspace. - timing: Output only. Stores timing information for pushing all artifact - objects. - """ - - location = _messages.StringField(1) - paths = _messages.StringField(2, repeated=True) - timing = _messages.MessageField('TimeSpan', 3) - - -class ArtifactResult(_messages.Message): - r"""An artifact that was uploaded during a build. This is a single record in - the artifact manifest JSON file. - - Fields: - fileHash: The file hash of the artifact. - location: The path of an artifact in a Google Cloud Storage bucket, with - the generation number. For example, - `gs://mybucket/path/to/output.jar#generation`. - """ - - fileHash = _messages.MessageField('FileHashes', 1, repeated=True) - location = _messages.StringField(2) - - -class Artifacts(_messages.Message): - r"""Artifacts produced by a build that should be uploaded upon successful - completion of all build steps. - - Fields: - images: A list of images to be pushed upon the successful completion of - all build steps. The images will be pushed using the builder service - account's credentials. The digests of the pushed images will be stored - in the Build resource's results field. If any of the images fail to be - pushed, the build is marked FAILURE. - objects: A list of objects to be uploaded to Cloud Storage upon successful - completion of all build steps. Files in the workspace matching specified - paths globs will be uploaded to the specified Cloud Storage location - using the builder service account's credentials. The location and - generation of the uploaded objects will be stored in the Build - resource's results field. If any objects fail to be pushed, the build is - marked FAILURE. - """ - - images = _messages.StringField(1, repeated=True) - objects = _messages.MessageField('ArtifactObjects', 2) - - -class BatchCreateBitbucketServerConnectedRepositoriesRequest(_messages.Message): - r"""RPC request object accepted by - BatchCreateBitbucketServerConnectedRepositories RPC method. - - Fields: - requests: Required. Requests to connect Bitbucket Server repositories. - """ - - requests = _messages.MessageField( - 'CreateBitbucketServerConnectedRepositoryRequest', 1, repeated=True) - - -class BatchCreateBitbucketServerConnectedRepositoriesResponse(_messages.Message - ): - r"""Response of BatchCreateBitbucketServerConnectedRepositories RPC method - including all successfully connected Bitbucket Server repositories. - - Fields: - bitbucketServerConnectedRepositories: The connected Bitbucket Server - repositories. - """ - - bitbucketServerConnectedRepositories = _messages.MessageField( - 'BitbucketServerConnectedRepository', 1, repeated=True) - - -class BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata( - _messages.Message): - r"""Metadata for `BatchCreateBitbucketServerConnectedRepositories` - operation. - - Fields: - completeTime: Time the operation was completed. - config: The name of the `BitbucketServerConfig` that added connected - repositories. Format: `projects/{project}/locations/{location}/bitbucket - ServerConfigs/{config}` - createTime: Time the operation was created. - """ - - completeTime = _messages.StringField(1) - config = _messages.StringField(2) - createTime = _messages.StringField(3) - - -class BitbucketServerConfig(_messages.Message): - r"""BitbucketServerConfig represents the configuration for a Bitbucket - Server. - - Fields: - apiKey: Required. Immutable. API Key that will be attached to webhook. - Once this field has been set, it cannot be changed. If you need to - change it, please create another BitbucketServerConfig. - connectedRepositories: Output only. Connected Bitbucket Server - repositories for this config. - createTime: Time when the config was created. - hostUri: Required. Immutable. The URI of the Bitbucket Server host. Once - this field has been set, it cannot be changed. If you need to change it, - please create another BitbucketServerConfig. - name: The resource name for the config. - peeredNetwork: Optional. The network to be used when reaching out to the - Bitbucket Server instance. The VPC network must be enabled for private - service connection. This should be set if the Bitbucket Server instance - is hosted on-premises and not reachable by public internet. If this - field is left empty, no network peering will occur and calls to the - Bitbucket Server instance will be made over the public internet. Must be - in the format `projects/{project}/global/networks/{network}`, where - {project} is a project number or id and {network} is the name of a VPC - network in the project. - secrets: Required. Secret Manager secrets needed by the config. - sslCa: Optional. SSL certificate to use for requests to Bitbucket Server. - The format should be PEM format but the extension can be one of .pem, - .cer, or .crt. - username: Username of the account Cloud Build will use on Bitbucket - Server. - webhookKey: Output only. UUID included in webhook requests. The UUID is - used to look up the corresponding config. - """ - - apiKey = _messages.StringField(1) - connectedRepositories = _messages.MessageField( - 'BitbucketServerRepositoryId', 2, repeated=True) - createTime = _messages.StringField(3) - hostUri = _messages.StringField(4) - name = _messages.StringField(5) - peeredNetwork = _messages.StringField(6) - secrets = _messages.MessageField('BitbucketServerSecrets', 7) - sslCa = _messages.StringField(8) - username = _messages.StringField(9) - webhookKey = _messages.StringField(10) - - -class BitbucketServerConnectedRepository(_messages.Message): - r"""/ BitbucketServerConnectedRepository represents a connected Bitbucket - Server / repository. - - Fields: - parent: The name of the `BitbucketServerConfig` that added connected - repository. Format: `projects/{project}/locations/{location}/bitbucketSe - rverConfigs/{config}` - repo: The Bitbucket Server repositories to connect. - status: Output only. The status of the repo connection request. - """ - - parent = _messages.StringField(1) - repo = _messages.MessageField('BitbucketServerRepositoryId', 2) - status = _messages.MessageField('Status', 3) - - -class BitbucketServerRepository(_messages.Message): - r"""BitbucketServerRepository represents a repository hosted on a Bitbucket - Server. - - Fields: - browseUri: Link to the browse repo page on the Bitbucket Server instance. - description: Description of the repository. - displayName: Display name of the repository. - name: The resource name of the repository. - repoId: Identifier for a repository hosted on a Bitbucket Server. - """ - - browseUri = _messages.StringField(1) - description = _messages.StringField(2) - displayName = _messages.StringField(3) - name = _messages.StringField(4) - repoId = _messages.MessageField('BitbucketServerRepositoryId', 5) - - -class BitbucketServerRepositoryId(_messages.Message): - r"""BitbucketServerRepositoryId identifies a specific repository hosted on a - Bitbucket Server. - - Fields: - projectKey: Required. Identifier for the project storing the repository. - repoSlug: Required. Identifier for the repository. - webhookId: Output only. The ID of the webhook that was created for - receiving events from this repo. We only create and manage a single - webhook for each repo. - """ - - projectKey = _messages.StringField(1) - repoSlug = _messages.StringField(2) - webhookId = _messages.IntegerField(3, variant=_messages.Variant.INT32) - - -class BitbucketServerSecrets(_messages.Message): - r"""BitbucketServerSecrets represents the secrets in Secret Manager for a - Bitbucket Server. - - Fields: - adminAccessTokenVersionName: Required. The resource name for the admin - access token's secret version. - readAccessTokenVersionName: Required. The resource name for the read - access token's secret version. - webhookSecretVersionName: Required. Immutable. The resource name for the - webhook secret's secret version. Once this field has been set, it cannot - be changed. If you need to change it, please create another - BitbucketServerConfig. - """ - - adminAccessTokenVersionName = _messages.StringField(1) - readAccessTokenVersionName = _messages.StringField(2) - webhookSecretVersionName = _messages.StringField(3) - - -class BitbucketServerTriggerConfig(_messages.Message): - r"""BitbucketServerTriggerConfig describes the configuration of a trigger - that creates a build whenever a Bitbucket Server event is received. - - Fields: - bitbucketServerConfig: Output only. The BitbucketServerConfig specified in - the bitbucket_server_config_resource field. - bitbucketServerConfigResource: Required. The Bitbucket server config - resource that this trigger config maps to. - projectKey: Required. Key of the project that the repo is in. For example: - The key for http://mybitbucket.server/projects/TEST/repos/test-repo is - "TEST". - pullRequest: Filter to match changes in pull requests. - push: Filter to match changes in refs like branches, tags. - repoSlug: Required. Slug of the repository. A repository slug is a URL- - friendly version of a repository name, automatically generated by - Bitbucket for use in the URL. For example, if the repository name is - 'test repo', in the URL it would become 'test-repo' as in - http://mybitbucket.server/projects/TEST/repos/test-repo. - """ - - bitbucketServerConfig = _messages.MessageField('BitbucketServerConfig', 1) - bitbucketServerConfigResource = _messages.StringField(2) - projectKey = _messages.StringField(3) - pullRequest = _messages.MessageField('PullRequestFilter', 4) - push = _messages.MessageField('PushFilter', 5) - repoSlug = _messages.StringField(6) - - -class Build(_messages.Message): - r"""A build resource in the Cloud Build API. At a high level, a `Build` - describes where to find source code, how to build it (for example, the - builder image to run on the source), and where to store the built artifacts. - Fields can include the following variables, which will be expanded when the - build is created: - $PROJECT_ID: the project ID of the build. - - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the - location/region of the build. - $BUILD_ID: the autogenerated ID of the - build. - $REPO_NAME: the source repository name specified by RepoSource. - - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag - name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA - specified by RepoSource or resolved from the specified branch or tag. - - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. - - Enums: - StatusValueValuesEnum: Output only. Status of the build. - - Messages: - SubstitutionsValue: Substitutions data for `Build` resource. - TimingValue: Output only. Stores timing information for phases of the - build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: - time to push all specified images. * FETCHSOURCE: time to fetch source. - * SETUPBUILD: time to set up build. If the build does not specify source - or images, these keys will not be included. - - Fields: - approval: Output only. Describes this build's approval configuration, - status, and result. - artifacts: Artifacts produced by the build that should be uploaded upon - successful completion of all build steps. - availableSecrets: Secrets and secret environment variables. - buildTriggerId: Output only. The ID of the `BuildTrigger` that triggered - this build, if it was triggered automatically. - createTime: Output only. Time at which the request to create the build was - received. - failureInfo: Output only. Contains information about the build when - status=FAILURE. - finishTime: Output only. Time at which execution of the build was - finished. The difference between finish_time and start_time is the - duration of the build's execution. - id: Output only. Unique identifier of the build. - images: A list of images to be pushed upon the successful completion of - all build steps. The images are pushed using the builder service - account's credentials. The digests of the pushed images will be stored - in the `Build` resource's results field. If any of the images fail to be - pushed, the build status is marked `FAILURE`. - logUrl: Output only. URL to logs for this build in Google Cloud Console. - logsBucket: Google Cloud Storage bucket where logs should be written (see - [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket- - naming#requirements)). Logs file names will be of the format - `${logs_bucket}/log-${build_id}.txt`. - name: Output only. The 'Build' name with format: - `projects/{project}/locations/{location}/builds/{build}`, where {build} - is a unique identifier generated by the service. - options: Special options for this build. - projectId: Output only. ID of the project. - queueTtl: TTL in queue for this build. If provided and the build is - enqueued longer than this value, the build will expire and the build - status will be `EXPIRED`. The TTL starts ticking from create_time. - results: Output only. Results of the build. - secrets: Secrets to decrypt using Cloud Key Management Service. Note: - Secret Manager is the recommended technique for managing sensitive data - with Cloud Build. Use `available_secrets` to configure builds to access - secrets from Secret Manager. For instructions, see: - https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets - serviceAccount: IAM service account whose credentials will be used at - build runtime. Must be of the format - `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email - address or uniqueId of the service account. - source: The location of the source files to build. - sourceProvenance: Output only. A permanent fixed identifier for source. - startTime: Output only. Time at which execution of the build was started. - status: Output only. Status of the build. - statusDetail: Output only. Customer-readable message about the current - status. - steps: Required. The operations to be performed on the workspace. - substitutions: Substitutions data for `Build` resource. - tags: Tags for annotation of a `Build`. These are not docker tags. - timeout: Amount of time that this build should be allowed to run, to - second granularity. If this amount of time elapses, work on the build - will cease and the build status will be `TIMEOUT`. `timeout` starts - ticking from `startTime`. Default time is ten minutes. - timing: Output only. Stores timing information for phases of the build. - Valid keys are: * BUILD: time to execute all build steps. * PUSH: time - to push all specified images. * FETCHSOURCE: time to fetch source. * - SETUPBUILD: time to set up build. If the build does not specify source - or images, these keys will not be included. - warnings: Output only. Non-fatal problems encountered during the execution - of the build. - """ - class StatusValueValuesEnum(_messages.Enum): - r"""Output only. Status of the build. - - Values: - STATUS_UNKNOWN: Status of the build is unknown. - PENDING: Build has been created and is pending execution and queuing. It - has not been queued. - QUEUED: Build or step is queued; work has not yet begun. - WORKING: Build or step is being executed. - SUCCESS: Build or step finished successfully. - FAILURE: Build or step failed to complete successfully. - INTERNAL_ERROR: Build or step failed due to an internal cause. - TIMEOUT: Build or step took longer than was allowed. - CANCELLED: Build or step was canceled by a user. - EXPIRED: Build was enqueued for longer than the value of `queue_ttl`. - """ - STATUS_UNKNOWN = 0 - PENDING = 1 - QUEUED = 2 - WORKING = 3 - SUCCESS = 4 - FAILURE = 5 - INTERNAL_ERROR = 6 - TIMEOUT = 7 - CANCELLED = 8 - EXPIRED = 9 - - @encoding.MapUnrecognizedFields('additionalProperties') - class SubstitutionsValue(_messages.Message): - r"""Substitutions data for `Build` resource. - - Messages: - AdditionalProperty: An additional property for a SubstitutionsValue - object. - - Fields: - additionalProperties: Additional properties of type SubstitutionsValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a SubstitutionsValue object. - - Fields: - key: Name of the additional property. - value: A string attribute. - """ - - key = _messages.StringField(1) - value = _messages.StringField(2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - @encoding.MapUnrecognizedFields('additionalProperties') - class TimingValue(_messages.Message): - r"""Output only. Stores timing information for phases of the build. Valid - keys are: * BUILD: time to execute all build steps. * PUSH: time to push - all specified images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: - time to set up build. If the build does not specify source or images, - these keys will not be included. - - Messages: - AdditionalProperty: An additional property for a TimingValue object. - - Fields: - additionalProperties: Additional properties of type TimingValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a TimingValue object. - - Fields: - key: Name of the additional property. - value: A TimeSpan attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('TimeSpan', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - approval = _messages.MessageField('BuildApproval', 1) - artifacts = _messages.MessageField('Artifacts', 2) - availableSecrets = _messages.MessageField('Secrets', 3) - buildTriggerId = _messages.StringField(4) - createTime = _messages.StringField(5) - failureInfo = _messages.MessageField('FailureInfo', 6) - finishTime = _messages.StringField(7) - id = _messages.StringField(8) - images = _messages.StringField(9, repeated=True) - logUrl = _messages.StringField(10) - logsBucket = _messages.StringField(11) - name = _messages.StringField(12) - options = _messages.MessageField('BuildOptions', 13) - projectId = _messages.StringField(14) - queueTtl = _messages.StringField(15) - results = _messages.MessageField('Results', 16) - secrets = _messages.MessageField('Secret', 17, repeated=True) - serviceAccount = _messages.StringField(18) - source = _messages.MessageField('Source', 19) - sourceProvenance = _messages.MessageField('SourceProvenance', 20) - startTime = _messages.StringField(21) - status = _messages.EnumField('StatusValueValuesEnum', 22) - statusDetail = _messages.StringField(23) - steps = _messages.MessageField('BuildStep', 24, repeated=True) - substitutions = _messages.MessageField('SubstitutionsValue', 25) - tags = _messages.StringField(26, repeated=True) - timeout = _messages.StringField(27) - timing = _messages.MessageField('TimingValue', 28) - warnings = _messages.MessageField('Warning', 29, repeated=True) - - -class BuildApproval(_messages.Message): - r"""BuildApproval describes a build's approval configuration, state, and - result. - - Enums: - StateValueValuesEnum: Output only. The state of this build's approval. - - Fields: - config: Output only. Configuration for manual approval of this build. - result: Output only. Result of manual approval for this Build. - state: Output only. The state of this build's approval. - """ - class StateValueValuesEnum(_messages.Enum): - r"""Output only. The state of this build's approval. - - Values: - STATE_UNSPECIFIED: Default enum type. This should not be used. - PENDING: Build approval is pending. - APPROVED: Build approval has been approved. - REJECTED: Build approval has been rejected. - CANCELLED: Build was cancelled while it was still pending approval. - """ - STATE_UNSPECIFIED = 0 - PENDING = 1 - APPROVED = 2 - REJECTED = 3 - CANCELLED = 4 - - config = _messages.MessageField('ApprovalConfig', 1) - result = _messages.MessageField('ApprovalResult', 2) - state = _messages.EnumField('StateValueValuesEnum', 3) - - -class BuildOperationMetadata(_messages.Message): - r"""Metadata for build operations. - - Fields: - build: The build that the operation is tracking. - """ - - build = _messages.MessageField('Build', 1) - - -class BuildOptions(_messages.Message): - r"""Optional arguments to enable specific features of builds. - - Enums: - LogStreamingOptionValueValuesEnum: Option to define build log streaming - behavior to Google Cloud Storage. - LoggingValueValuesEnum: Option to specify the logging mode, which - determines if and where build logs are stored. - MachineTypeValueValuesEnum: Compute Engine machine type on which to run - the build. - RequestedVerifyOptionValueValuesEnum: Requested verifiability options. - SourceProvenanceHashValueListEntryValuesEnum: - SubstitutionOptionValueValuesEnum: Option to specify behavior when there - is an error in the substitution checks. NOTE: this is always set to - ALLOW_LOOSE for triggered builds and cannot be overridden in the build - configuration file. - - Fields: - diskSizeGb: Requested disk size for the VM that runs the build. Note that - this is *NOT* "disk free"; some of the space will be used by the - operating system and build utilities. Also note that this is the minimum - disk size that will be allocated for the build -- the build may run with - a larger disk than requested. At present, the maximum disk size is - 1000GB; builds that request more than the maximum are rejected with an - error. - dynamicSubstitutions: Option to specify whether or not to apply bash style - string operations to the substitutions. NOTE: this is always enabled for - triggered builds and cannot be overridden in the build configuration - file. - env: A list of global environment variable definitions that will exist for - all build steps in this build. If a variable is defined in both globally - and in a build step, the variable will use the build step value. The - elements are of the form "KEY=VALUE" for the environment variable "KEY" - being given the value "VALUE". - logStreamingOption: Option to define build log streaming behavior to - Google Cloud Storage. - logging: Option to specify the logging mode, which determines if and where - build logs are stored. - machineType: Compute Engine machine type on which to run the build. - pool: Optional. Specification for execution on a `WorkerPool`. See - [running builds in a private - pool](https://cloud.google.com/build/docs/private-pools/run-builds-in- - private-pool) for more information. - requestedVerifyOption: Requested verifiability options. - secretEnv: A list of global environment variables, which are encrypted - using a Cloud Key Management Service crypto key. These values must be - specified in the build's `Secret`. These variables will be available to - all build steps in this build. - sourceProvenanceHash: Requested hash for SourceProvenance. - substitutionOption: Option to specify behavior when there is an error in - the substitution checks. NOTE: this is always set to ALLOW_LOOSE for - triggered builds and cannot be overridden in the build configuration - file. - volumes: Global list of volumes to mount for ALL build steps Each volume - is created as an empty volume prior to starting the build process. Upon - completion of the build, volumes and their contents are discarded. - Global volume names and paths cannot conflict with the volumes defined a - build step. Using a global volume in a build with only one step is not - valid as it is indicative of a build request with an incorrect - configuration. - workerPool: This field deprecated; please use `pool.name` instead. - """ - class LogStreamingOptionValueValuesEnum(_messages.Enum): - r"""Option to define build log streaming behavior to Google Cloud Storage. - - Values: - STREAM_DEFAULT: Service may automatically determine build log streaming - behavior. - STREAM_ON: Build logs should be streamed to Google Cloud Storage. - STREAM_OFF: Build logs should not be streamed to Google Cloud Storage; - they will be written when the build is completed. - """ - STREAM_DEFAULT = 0 - STREAM_ON = 1 - STREAM_OFF = 2 - - class LoggingValueValuesEnum(_messages.Enum): - r"""Option to specify the logging mode, which determines if and where - build logs are stored. - - Values: - LOGGING_UNSPECIFIED: The service determines the logging mode. The - default is `LEGACY`. Do not rely on the default logging behavior as it - may change in the future. - LEGACY: Build logs are stored in Cloud Logging and Cloud Storage. - GCS_ONLY: Build logs are stored in Cloud Storage. - STACKDRIVER_ONLY: This option is the same as CLOUD_LOGGING_ONLY. - CLOUD_LOGGING_ONLY: Build logs are stored in Cloud Logging. Selecting - this option will not allow [logs - streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). - NONE: Turn off all logging. No build logs will be captured. - """ - LOGGING_UNSPECIFIED = 0 - LEGACY = 1 - GCS_ONLY = 2 - STACKDRIVER_ONLY = 3 - CLOUD_LOGGING_ONLY = 4 - NONE = 5 - - class MachineTypeValueValuesEnum(_messages.Enum): - r"""Compute Engine machine type on which to run the build. - - Values: - UNSPECIFIED: Standard machine type. - N1_HIGHCPU_8: Highcpu machine with 8 CPUs. - N1_HIGHCPU_32: Highcpu machine with 32 CPUs. - E2_HIGHCPU_8: Highcpu e2 machine with 8 CPUs. - E2_HIGHCPU_32: Highcpu e2 machine with 32 CPUs. - """ - UNSPECIFIED = 0 - N1_HIGHCPU_8 = 1 - N1_HIGHCPU_32 = 2 - E2_HIGHCPU_8 = 3 - E2_HIGHCPU_32 = 4 - - class RequestedVerifyOptionValueValuesEnum(_messages.Enum): - r"""Requested verifiability options. - - Values: - NOT_VERIFIED: Not a verifiable build. (default) - VERIFIED: Verified build. - """ - NOT_VERIFIED = 0 - VERIFIED = 1 - - class SourceProvenanceHashValueListEntryValuesEnum(_messages.Enum): - r"""SourceProvenanceHashValueListEntryValuesEnum enum type. - - Values: - NONE: No hash requested. - SHA256: Use a sha256 hash. - MD5: Use a md5 hash. - """ - NONE = 0 - SHA256 = 1 - MD5 = 2 - - class SubstitutionOptionValueValuesEnum(_messages.Enum): - r"""Option to specify behavior when there is an error in the substitution - checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and - cannot be overridden in the build configuration file. - - Values: - MUST_MATCH: Fails the build if error in substitutions checks, like - missing a substitution in the template or in the map. - ALLOW_LOOSE: Do not fail the build if error in substitutions checks. - """ - MUST_MATCH = 0 - ALLOW_LOOSE = 1 - - diskSizeGb = _messages.IntegerField(1) - dynamicSubstitutions = _messages.BooleanField(2) - env = _messages.StringField(3, repeated=True) - logStreamingOption = _messages.EnumField( - 'LogStreamingOptionValueValuesEnum', 4) - logging = _messages.EnumField('LoggingValueValuesEnum', 5) - machineType = _messages.EnumField('MachineTypeValueValuesEnum', 6) - pool = _messages.MessageField('PoolOption', 7) - requestedVerifyOption = _messages.EnumField( - 'RequestedVerifyOptionValueValuesEnum', 8) - secretEnv = _messages.StringField(9, repeated=True) - sourceProvenanceHash = _messages.EnumField( - 'SourceProvenanceHashValueListEntryValuesEnum', 10, repeated=True) - substitutionOption = _messages.EnumField( - 'SubstitutionOptionValueValuesEnum', 11) - volumes = _messages.MessageField('Volume', 12, repeated=True) - workerPool = _messages.StringField(13) - - -class BuildStep(_messages.Message): - r"""A step in the build pipeline. - - Enums: - StatusValueValuesEnum: Output only. Status of the build step. At this - time, build step status is only updated on build completion; step status - is not updated in real-time as the build progresses. - - Fields: - args: A list of arguments that will be presented to the step when it is - started. If the image used to run the step's container has an - entrypoint, the `args` are used as arguments to that entrypoint. If the - image does not define an entrypoint, the first element in args is used - as the entrypoint, and the remainder will be used as arguments. - dir: Working directory to use when running this step's container. If this - value is a relative path, it is relative to the build's working - directory. If this value is absolute, it may be outside the build's - working directory, in which case the contents of the path may not be - persisted across build step executions, unless a `volume` for that path - is specified. If the build specifies a `RepoSource` with `dir` and a - step with a `dir`, which specifies an absolute path, the `RepoSource` - `dir` is ignored for the step's execution. - entrypoint: Entrypoint to be used instead of the build step image's - default entrypoint. If unset, the image's default entrypoint is used. - env: A list of environment variable definitions to be used when running a - step. The elements are of the form "KEY=VALUE" for the environment - variable "KEY" being given the value "VALUE". - id: Unique identifier for this build step, used in `wait_for` to reference - this build step as a dependency. - name: Required. The name of the container image that will run this - particular build step. If the image is available in the host's Docker - daemon's cache, it will be run directly. If not, the host will attempt - to pull the image first, using the builder service account's credentials - if necessary. The Docker daemon's cache will already have the latest - versions of all of the officially supported build steps - ([https://github.com/GoogleCloudPlatform/cloud- - builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The - Docker daemon will also have cached many of the layers for some popular - images, like "ubuntu", "debian", but they will be refreshed at the time - you attempt to use them. If you built an image in a previous build step, - it will be stored in the host's Docker daemon's cache and is available - to use as the name for a later build step. - pullTiming: Output only. Stores timing information for pulling this build - step's builder image only. - script: A shell script to be executed in the step. When script is - provided, the user cannot specify the entrypoint or args. - secretEnv: A list of environment variables which are encrypted using a - Cloud Key Management Service crypto key. These values must be specified - in the build's `Secret`. - status: Output only. Status of the build step. At this time, build step - status is only updated on build completion; step status is not updated - in real-time as the build progresses. - timeout: Time limit for executing this build step. If not defined, the - step has no time limit and will be allowed to continue to run until - either it completes or the build itself times out. - timing: Output only. Stores timing information for executing this build - step. - volumes: List of volumes to mount into the build step. Each volume is - created as an empty volume prior to execution of the build step. Upon - completion of the build, volumes and their contents are discarded. Using - a named volume in only one step is not valid as it is indicative of a - build request with an incorrect configuration. - waitFor: The ID(s) of the step(s) that this build step depends on. This - build step will not start until all the build steps in `wait_for` have - completed successfully. If `wait_for` is empty, this build step will - start when all previous build steps in the `Build.Steps` list have - completed successfully. - """ - class StatusValueValuesEnum(_messages.Enum): - r"""Output only. Status of the build step. At this time, build step status - is only updated on build completion; step status is not updated in real- - time as the build progresses. - - Values: - STATUS_UNKNOWN: Status of the build is unknown. - PENDING: Build has been created and is pending execution and queuing. It - has not been queued. - QUEUED: Build or step is queued; work has not yet begun. - WORKING: Build or step is being executed. - SUCCESS: Build or step finished successfully. - FAILURE: Build or step failed to complete successfully. - INTERNAL_ERROR: Build or step failed due to an internal cause. - TIMEOUT: Build or step took longer than was allowed. - CANCELLED: Build or step was canceled by a user. - EXPIRED: Build was enqueued for longer than the value of `queue_ttl`. - """ - STATUS_UNKNOWN = 0 - PENDING = 1 - QUEUED = 2 - WORKING = 3 - SUCCESS = 4 - FAILURE = 5 - INTERNAL_ERROR = 6 - TIMEOUT = 7 - CANCELLED = 8 - EXPIRED = 9 - - args = _messages.StringField(1, repeated=True) - dir = _messages.StringField(2) - entrypoint = _messages.StringField(3) - env = _messages.StringField(4, repeated=True) - id = _messages.StringField(5) - name = _messages.StringField(6) - pullTiming = _messages.MessageField('TimeSpan', 7) - script = _messages.StringField(8) - secretEnv = _messages.StringField(9, repeated=True) - status = _messages.EnumField('StatusValueValuesEnum', 10) - timeout = _messages.StringField(11) - timing = _messages.MessageField('TimeSpan', 12) - volumes = _messages.MessageField('Volume', 13, repeated=True) - waitFor = _messages.StringField(14, repeated=True) - - -class BuildTrigger(_messages.Message): - r"""Configuration for an automated build in response to source repository - changes. - - Enums: - EventTypeValueValuesEnum: EventType allows the user to explicitly set the - type of event to which this BuildTrigger should respond. This field will - be validated against the rest of the configuration if it is set. - - Messages: - SubstitutionsValue: Substitutions for Build resource. The keys must match - the following regular expression: `^_[A-Z0-9_]+$`. - - Fields: - approvalConfig: Configuration for manual approval to start a build - invocation of this BuildTrigger. - autodetect: Autodetect build configuration. The following precedence is - used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. - cloudbuild.json 4. Dockerfile Currently only available for GitHub App - Triggers. - bitbucketServerTriggerConfig: BitbucketServerTriggerConfig describes the - configuration of a trigger that creates a build whenever a Bitbucket - Server event is received. - build: Contents of the build template. - createTime: Output only. Time when the trigger was created. - description: Human-readable description of this trigger. - disabled: If true, the trigger will never automatically execute a build. - eventType: EventType allows the user to explicitly set the type of event - to which this BuildTrigger should respond. This field will be validated - against the rest of the configuration if it is set. - filename: Path, from the source root, to the build configuration file - (i.e. cloudbuild.yaml). - filter: A Common Expression Language string. - gitFileSource: The file source describing the local or remote Build - template. - github: GitHubEventsConfig describes the configuration of a trigger that - creates a build whenever a GitHub event is received. Mutually exclusive - with `trigger_template`. - id: Output only. Unique identifier of the trigger. - ignoredFiles: ignored_files and included_files are file glob matches using - https://golang.org/pkg/path/filepath/#Match extended with support for - "**". If ignored_files and changed files are both empty, then they are - not used to determine whether or not to trigger a build. If - ignored_files is not empty, then we ignore any files that match any of - the ignored_file globs. If the change has no files that are outside of - the ignored_files globs, then we do not trigger a build. - includedFiles: If any of the files altered in the commit pass the - ignored_files filter and included_files is empty, then as far as this - filter is concerned, we should trigger the build. If any of the files - altered in the commit pass the ignored_files filter and included_files - is not empty, then we make sure that at least one of those files matches - a included_files glob. If not, then we do not trigger a build. - name: User-assigned name of the trigger. Must be unique within the - project. Trigger names must meet the following requirements: + They must - contain only alphanumeric characters and dashes. + They can be 1-64 - characters long. + They must begin and end with an alphanumeric - character. - pubsubConfig: PubsubConfig describes the configuration of a trigger that - creates a build whenever a Pub/Sub message is published. - resourceName: The `Trigger` name with format: - `projects/{project}/locations/{location}/triggers/{trigger}`, where - {trigger} is a unique identifier generated by the service. - serviceAccount: The service account used for all user-controlled - operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, - and CancelBuild. If no service account is set, then the standard Cloud - Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be - used instead. Format: - `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}` - sourceToBuild: The repo and ref of the repository from which to build. - This field is used only for those triggers that do not respond to SCM - events. Triggers that respond to such events build source at whatever - commit caused the event. This field is currently only used by Webhook, - Pub/Sub, Manual, and Cron triggers. - substitutions: Substitutions for Build resource. The keys must match the - following regular expression: `^_[A-Z0-9_]+$`. - tags: Tags for annotation of a `BuildTrigger` - triggerTemplate: Template describing the types of source changes to - trigger a build. Branch and tag names in trigger templates are - interpreted as regular expressions. Any branch or tag change that - matches that regular expression will trigger a build. Mutually exclusive - with `github`. - webhookConfig: WebhookConfig describes the configuration of a trigger that - creates a build whenever a webhook is sent to a trigger's webhook URL. - """ - class EventTypeValueValuesEnum(_messages.Enum): - r"""EventType allows the user to explicitly set the type of event to which - this BuildTrigger should respond. This field will be validated against the - rest of the configuration if it is set. - - Values: - EVENT_TYPE_UNSPECIFIED: EVENT_TYPE_UNSPECIFIED event_types are ignored. - REPO: REPO corresponds to the supported VCS integrations. - WEBHOOK: WEBHOOK corresponds to webhook triggers. - PUBSUB: PUBSUB corresponds to pubsub triggers. - MANUAL: MANUAL corresponds to manual-only invoked triggers. - """ - EVENT_TYPE_UNSPECIFIED = 0 - REPO = 1 - WEBHOOK = 2 - PUBSUB = 3 - MANUAL = 4 - - @encoding.MapUnrecognizedFields('additionalProperties') - class SubstitutionsValue(_messages.Message): - r"""Substitutions for Build resource. The keys must match the following - regular expression: `^_[A-Z0-9_]+$`. - - Messages: - AdditionalProperty: An additional property for a SubstitutionsValue - object. - - Fields: - additionalProperties: Additional properties of type SubstitutionsValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a SubstitutionsValue object. - - Fields: - key: Name of the additional property. - value: A string attribute. - """ - - key = _messages.StringField(1) - value = _messages.StringField(2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - approvalConfig = _messages.MessageField('ApprovalConfig', 1) - autodetect = _messages.BooleanField(2) - bitbucketServerTriggerConfig = _messages.MessageField( - 'BitbucketServerTriggerConfig', 3) - build = _messages.MessageField('Build', 4) - createTime = _messages.StringField(5) - description = _messages.StringField(6) - disabled = _messages.BooleanField(7) - eventType = _messages.EnumField('EventTypeValueValuesEnum', 8) - filename = _messages.StringField(9) - filter = _messages.StringField(10) - gitFileSource = _messages.MessageField('GitFileSource', 11) - github = _messages.MessageField('GitHubEventsConfig', 12) - id = _messages.StringField(13) - ignoredFiles = _messages.StringField(14, repeated=True) - includedFiles = _messages.StringField(15, repeated=True) - name = _messages.StringField(16) - pubsubConfig = _messages.MessageField('PubsubConfig', 17) - resourceName = _messages.StringField(18) - serviceAccount = _messages.StringField(19) - sourceToBuild = _messages.MessageField('GitRepoSource', 20) - substitutions = _messages.MessageField('SubstitutionsValue', 21) - tags = _messages.StringField(22, repeated=True) - triggerTemplate = _messages.MessageField('RepoSource', 23) - webhookConfig = _messages.MessageField('WebhookConfig', 24) - - -class BuiltImage(_messages.Message): - r"""An image built by the pipeline. - - Fields: - digest: Docker Registry 2.0 digest. - name: Name used to push the container image to Google Container Registry, - as presented to `docker push`. - pushTiming: Output only. Stores timing information for pushing the - specified image. - """ - - digest = _messages.StringField(1) - name = _messages.StringField(2) - pushTiming = _messages.MessageField('TimeSpan', 3) - - -class CancelBuildRequest(_messages.Message): - r"""Request to cancel an ongoing build. - - Fields: - id: Required. ID of the build. - name: The name of the `Build` to cancel. Format: - `projects/{project}/locations/{location}/builds/{build}` - projectId: Required. ID of the project. - """ - - id = _messages.StringField(1) - name = _messages.StringField(2) - projectId = _messages.StringField(3) - - -class CancelOperationRequest(_messages.Message): - r"""The request message for Operations.CancelOperation.""" - - -class CloudbuildLocationsRegionalWebhookRequest(_messages.Message): - r"""A CloudbuildLocationsRegionalWebhookRequest object. - - Fields: - httpBody: A HttpBody resource to be passed as the request body. - location: Required. The location where the webhook should be sent. - webhookKey: For GitHub Enterprise webhooks, this key is used to associate - the webhook request with the GitHubEnterpriseConfig to use for - validation. - """ - - httpBody = _messages.MessageField('HttpBody', 1) - location = _messages.StringField(2, required=True) - webhookKey = _messages.StringField(3) - - -class CloudbuildOperationsCancelRequest(_messages.Message): - r"""A CloudbuildOperationsCancelRequest object. - - Fields: - cancelOperationRequest: A CancelOperationRequest resource to be passed as - the request body. - name: The name of the operation resource to be cancelled. - """ - - cancelOperationRequest = _messages.MessageField('CancelOperationRequest', 1) - name = _messages.StringField(2, required=True) - - -class CloudbuildOperationsGetRequest(_messages.Message): - r"""A CloudbuildOperationsGetRequest object. - - Fields: - name: The name of the operation resource. - """ - - name = _messages.StringField(1, required=True) - - -class CloudbuildProjectsBuildsApproveRequest(_messages.Message): - r"""A CloudbuildProjectsBuildsApproveRequest object. - - Fields: - approveBuildRequest: A ApproveBuildRequest resource to be passed as the - request body. - name: Required. Name of the target build. For example: - "projects/{$project_id}/builds/{$build_id}" - """ - - approveBuildRequest = _messages.MessageField('ApproveBuildRequest', 1) - name = _messages.StringField(2, required=True) - - -class CloudbuildProjectsBuildsCreateRequest(_messages.Message): - r"""A CloudbuildProjectsBuildsCreateRequest object. - - Fields: - build: A Build resource to be passed as the request body. - parent: The parent resource where this build will be created. Format: - `projects/{project}/locations/{location}` - projectId: Required. ID of the project. - """ - - build = _messages.MessageField('Build', 1) - parent = _messages.StringField(2) - projectId = _messages.StringField(3, required=True) - - -class CloudbuildProjectsBuildsGetRequest(_messages.Message): - r"""A CloudbuildProjectsBuildsGetRequest object. - - Fields: - id: Required. ID of the build. - name: The name of the `Build` to retrieve. Format: - `projects/{project}/locations/{location}/builds/{build}` - projectId: Required. ID of the project. - """ - - id = _messages.StringField(1, required=True) - name = _messages.StringField(2) - projectId = _messages.StringField(3, required=True) - - -class CloudbuildProjectsBuildsListRequest(_messages.Message): - r"""A CloudbuildProjectsBuildsListRequest object. - - Fields: - filter: The raw filter text to constrain the results. - pageSize: Number of results to return in the list. - pageToken: The page token for the next page of Builds. If unspecified, the - first page of results is returned. If the token is rejected for any - reason, INVALID_ARGUMENT will be thrown. In this case, the token should - be discarded, and pagination should be restarted from the first page of - results. See https://google.aip.dev/158 for more. - parent: The parent of the collection of `Builds`. Format: - `projects/{project}/locations/location` - projectId: Required. ID of the project. - """ - - filter = _messages.StringField(1) - pageSize = _messages.IntegerField(2, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(3) - parent = _messages.StringField(4) - projectId = _messages.StringField(5, required=True) - - -class CloudbuildProjectsGithubEnterpriseConfigsCreateRequest(_messages.Message): - r"""A CloudbuildProjectsGithubEnterpriseConfigsCreateRequest object. - - Fields: - gheConfigId: Optional. The ID to use for the GithubEnterpriseConfig, which - will become the final component of the GithubEnterpriseConfig's resource - name. ghe_config_id must meet the following requirements: + They must - contain only alphanumeric characters and dashes. + They can be 1-64 - characters long. + They must begin and end with an alphanumeric - character - gitHubEnterpriseConfig: A GitHubEnterpriseConfig resource to be passed as - the request body. - parent: Name of the parent project. For example: - projects/{$project_number} or projects/{$project_id} - projectId: ID of the project. - """ - - gheConfigId = _messages.StringField(1) - gitHubEnterpriseConfig = _messages.MessageField('GitHubEnterpriseConfig', 2) - parent = _messages.StringField(3, required=True) - projectId = _messages.StringField(4) - - -class CloudbuildProjectsGithubEnterpriseConfigsDeleteRequest(_messages.Message): - r"""A CloudbuildProjectsGithubEnterpriseConfigsDeleteRequest object. - - Fields: - configId: Unique identifier of the `GitHubEnterpriseConfig` - name: This field should contain the name of the enterprise config - resource. For example: - "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - projectId: ID of the project - """ - - configId = _messages.StringField(1) - name = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsGithubEnterpriseConfigsGetRequest(_messages.Message): - r"""A CloudbuildProjectsGithubEnterpriseConfigsGetRequest object. - - Fields: - configId: Unique identifier of the `GitHubEnterpriseConfig` - name: This field should contain the name of the enterprise config - resource. For example: - "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - projectId: ID of the project - """ - - configId = _messages.StringField(1) - name = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsGithubEnterpriseConfigsListRequest(_messages.Message): - r"""A CloudbuildProjectsGithubEnterpriseConfigsListRequest object. - - Fields: - parent: Name of the parent project. For example: - projects/{$project_number} or projects/{$project_id} - projectId: ID of the project - """ - - parent = _messages.StringField(1, required=True) - projectId = _messages.StringField(2) - - -class CloudbuildProjectsGithubEnterpriseConfigsPatchRequest(_messages.Message): - r"""A CloudbuildProjectsGithubEnterpriseConfigsPatchRequest object. - - Fields: - gitHubEnterpriseConfig: A GitHubEnterpriseConfig resource to be passed as - the request body. - name: Optional. The full resource name for the GitHubEnterpriseConfig For - example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - updateMask: Update mask for the resource. If this is set, the server will - only update the fields specified in the field mask. Otherwise, a full - update of the mutable resource fields will be performed. - """ - - gitHubEnterpriseConfig = _messages.MessageField('GitHubEnterpriseConfig', 1) - name = _messages.StringField(2, required=True) - updateMask = _messages.StringField(3) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsAddBitbucketServerCon - nectedRepositoryRequest object. - - Fields: - addBitbucketServerConnectedRepositoryRequest: A - AddBitbucketServerConnectedRepositoryRequest resource to be passed as - the request body. - config: Required. The name of the `BitbucketServerConfig` to add a - connected repository. Format: `projects/{project}/locations/{location}/b - itbucketServerConfigs/{config}` - """ - - addBitbucketServerConnectedRepositoryRequest = _messages.MessageField( - 'AddBitbucketServerConnectedRepositoryRequest', 1) - config = _messages.StringField(2, required=True) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsConnectedRepositories - BatchCreateRequest object. - - Fields: - batchCreateBitbucketServerConnectedRepositoriesRequest: A - BatchCreateBitbucketServerConnectedRepositoriesRequest resource to be - passed as the request body. - parent: The name of the `BitbucketServerConfig` that added connected - repository. Format: `projects/{project}/locations/{location}/bitbucketSe - rverConfigs/{config}` - """ - - batchCreateBitbucketServerConnectedRepositoriesRequest = _messages.MessageField( - 'BatchCreateBitbucketServerConnectedRepositoriesRequest', 1) - parent = _messages.StringField(2, required=True) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsCreateRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsCreateRequest object. - - Fields: - bitbucketServerConfig: A BitbucketServerConfig resource to be passed as - the request body. - bitbucketServerConfigId: Optional. The ID to use for the - BitbucketServerConfig, which will become the final component of the - BitbucketServerConfig's resource name. bitbucket_server_config_id must - meet the following requirements: + They must contain only alphanumeric - characters and dashes. + They can be 1-64 characters long. + They must - begin and end with an alphanumeric character. - parent: Required. Name of the parent resource. - """ - - bitbucketServerConfig = _messages.MessageField('BitbucketServerConfig', 1) - bitbucketServerConfigId = _messages.StringField(2) - parent = _messages.StringField(3, required=True) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsDeleteRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsDeleteRequest object. - - Fields: - name: Required. The config resource name. - """ - - name = _messages.StringField(1, required=True) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsGetRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsGetRequest object. - - Fields: - name: Required. The config resource name. - """ - - name = _messages.StringField(1, required=True) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsListRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsListRequest object. - - Fields: - pageSize: The maximum number of configs to return. The service may return - fewer than this value. If unspecified, at most 50 configs will be - returned. The maximum value is 1000; values above 1000 will be coerced - to 1000. - pageToken: A page token, received from a previous - `ListBitbucketServerConfigsRequest` call. Provide this to retrieve the - subsequent page. When paginating, all other parameters provided to - `ListBitbucketServerConfigsRequest` must match the call that provided - the page token. - parent: Required. Name of the parent resource. - """ - - pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(2) - parent = _messages.StringField(3, required=True) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsPatchRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsPatchRequest object. - - Fields: - bitbucketServerConfig: A BitbucketServerConfig resource to be passed as - the request body. - name: The resource name for the config. - updateMask: Update mask for the resource. If this is set, the server will - only update the fields specified in the field mask. Otherwise, a full - update of the mutable resource fields will be performed. - """ - - bitbucketServerConfig = _messages.MessageField('BitbucketServerConfig', 1) - name = _messages.StringField(2, required=True) - updateMask = _messages.StringField(3) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsRemoveBitbucketServer - ConnectedRepositoryRequest object. - - Fields: - config: Required. The name of the `BitbucketServerConfig` to remove a - connected repository. Format: `projects/{project}/locations/{location}/b - itbucketServerConfigs/{config}` - removeBitbucketServerConnectedRepositoryRequest: A - RemoveBitbucketServerConnectedRepositoryRequest resource to be passed as - the request body. - """ - - config = _messages.StringField(1, required=True) - removeBitbucketServerConnectedRepositoryRequest = _messages.MessageField( - 'RemoveBitbucketServerConnectedRepositoryRequest', 2) - - -class CloudbuildProjectsLocationsBitbucketServerConfigsReposListRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsBitbucketServerConfigsReposListRequest - object. - - Fields: - pageSize: The maximum number of configs to return. The service may return - fewer than this value. If unspecified, at most 50 configs will be - returned. The maximum value is 1000; values above 1000 will be coerced - to 1000. - pageToken: A page token, received from a previous - `ListBitbucketServerRepositoriesRequest` call. Provide this to retrieve - the subsequent page. When paginating, all other parameters provided to - `ListBitbucketServerConfigsRequest` must match the call that provided - the page token. - parent: Required. Name of the parent resource. - """ - - pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(2) - parent = _messages.StringField(3, required=True) - - -class CloudbuildProjectsLocationsBuildsApproveRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsBuildsApproveRequest object. - - Fields: - approveBuildRequest: A ApproveBuildRequest resource to be passed as the - request body. - name: Required. Name of the target build. For example: - "projects/{$project_id}/builds/{$build_id}" - """ - - approveBuildRequest = _messages.MessageField('ApproveBuildRequest', 1) - name = _messages.StringField(2, required=True) - - -class CloudbuildProjectsLocationsBuildsCreateRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsBuildsCreateRequest object. - - Fields: - build: A Build resource to be passed as the request body. - parent: The parent resource where this build will be created. Format: - `projects/{project}/locations/{location}` - projectId: Required. ID of the project. - """ - - build = _messages.MessageField('Build', 1) - parent = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsBuildsGetRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsBuildsGetRequest object. - - Fields: - id: Required. ID of the build. - name: The name of the `Build` to retrieve. Format: - `projects/{project}/locations/{location}/builds/{build}` - projectId: Required. ID of the project. - """ - - id = _messages.StringField(1) - name = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsBuildsListRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsBuildsListRequest object. - - Fields: - filter: The raw filter text to constrain the results. - pageSize: Number of results to return in the list. - pageToken: The page token for the next page of Builds. If unspecified, the - first page of results is returned. If the token is rejected for any - reason, INVALID_ARGUMENT will be thrown. In this case, the token should - be discarded, and pagination should be restarted from the first page of - results. See https://google.aip.dev/158 for more. - parent: The parent of the collection of `Builds`. Format: - `projects/{project}/locations/location` - projectId: Required. ID of the project. - """ - - filter = _messages.StringField(1) - pageSize = _messages.IntegerField(2, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(3) - parent = _messages.StringField(4, required=True) - projectId = _messages.StringField(5) - - -class CloudbuildProjectsLocationsGithubEnterpriseConfigsCreateRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsGithubEnterpriseConfigsCreateRequest - object. - - Fields: - gheConfigId: Optional. The ID to use for the GithubEnterpriseConfig, which - will become the final component of the GithubEnterpriseConfig's resource - name. ghe_config_id must meet the following requirements: + They must - contain only alphanumeric characters and dashes. + They can be 1-64 - characters long. + They must begin and end with an alphanumeric - character - gitHubEnterpriseConfig: A GitHubEnterpriseConfig resource to be passed as - the request body. - parent: Name of the parent project. For example: - projects/{$project_number} or projects/{$project_id} - projectId: ID of the project. - """ - - gheConfigId = _messages.StringField(1) - gitHubEnterpriseConfig = _messages.MessageField('GitHubEnterpriseConfig', 2) - parent = _messages.StringField(3, required=True) - projectId = _messages.StringField(4) - - -class CloudbuildProjectsLocationsGithubEnterpriseConfigsDeleteRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsGithubEnterpriseConfigsDeleteRequest - object. - - Fields: - configId: Unique identifier of the `GitHubEnterpriseConfig` - name: This field should contain the name of the enterprise config - resource. For example: - "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - projectId: ID of the project - """ - - configId = _messages.StringField(1) - name = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsGithubEnterpriseConfigsGetRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsGithubEnterpriseConfigsGetRequest object. - - Fields: - configId: Unique identifier of the `GitHubEnterpriseConfig` - name: This field should contain the name of the enterprise config - resource. For example: - "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - projectId: ID of the project - """ - - configId = _messages.StringField(1) - name = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsGithubEnterpriseConfigsListRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsGithubEnterpriseConfigsListRequest object. - - Fields: - parent: Name of the parent project. For example: - projects/{$project_number} or projects/{$project_id} - projectId: ID of the project - """ - - parent = _messages.StringField(1, required=True) - projectId = _messages.StringField(2) - - -class CloudbuildProjectsLocationsGithubEnterpriseConfigsPatchRequest( - _messages.Message): - r"""A CloudbuildProjectsLocationsGithubEnterpriseConfigsPatchRequest object. - - Fields: - gitHubEnterpriseConfig: A GitHubEnterpriseConfig resource to be passed as - the request body. - name: Optional. The full resource name for the GitHubEnterpriseConfig For - example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - updateMask: Update mask for the resource. If this is set, the server will - only update the fields specified in the field mask. Otherwise, a full - update of the mutable resource fields will be performed. - """ - - gitHubEnterpriseConfig = _messages.MessageField('GitHubEnterpriseConfig', 1) - name = _messages.StringField(2, required=True) - updateMask = _messages.StringField(3) - - -class CloudbuildProjectsLocationsOperationsCancelRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsOperationsCancelRequest object. - - Fields: - cancelOperationRequest: A CancelOperationRequest resource to be passed as - the request body. - name: The name of the operation resource to be cancelled. - """ - - cancelOperationRequest = _messages.MessageField('CancelOperationRequest', 1) - name = _messages.StringField(2, required=True) - - -class CloudbuildProjectsLocationsOperationsGetRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsOperationsGetRequest object. - - Fields: - name: The name of the operation resource. - """ - - name = _messages.StringField(1, required=True) - - -class CloudbuildProjectsLocationsTriggersCreateRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersCreateRequest object. - - Fields: - buildTrigger: A BuildTrigger resource to be passed as the request body. - parent: The parent resource where this trigger will be created. Format: - `projects/{project}/locations/{location}` - projectId: Required. ID of the project for which to configure automatic - builds. - """ - - buildTrigger = _messages.MessageField('BuildTrigger', 1) - parent = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsTriggersDeleteRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersDeleteRequest object. - - Fields: - name: The name of the `Trigger` to delete. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Required. ID of the project that owns the trigger. - triggerId: Required. ID of the `BuildTrigger` to delete. - """ - - name = _messages.StringField(1, required=True) - projectId = _messages.StringField(2) - triggerId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsTriggersGetRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersGetRequest object. - - Fields: - name: The name of the `Trigger` to retrieve. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Required. ID of the project that owns the trigger. - triggerId: Required. Identifier (`id` or `name`) of the `BuildTrigger` to - get. - """ - - name = _messages.StringField(1, required=True) - projectId = _messages.StringField(2) - triggerId = _messages.StringField(3) - - -class CloudbuildProjectsLocationsTriggersListRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersListRequest object. - - Fields: - pageSize: Number of results to return in the list. - pageToken: Token to provide to skip to a particular spot in the list. - parent: The parent of the collection of `Triggers`. Format: - `projects/{project}/locations/{location}` - projectId: Required. ID of the project for which to list BuildTriggers. - """ - - pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(2) - parent = _messages.StringField(3, required=True) - projectId = _messages.StringField(4) - - -class CloudbuildProjectsLocationsTriggersPatchRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersPatchRequest object. - - Fields: - buildTrigger: A BuildTrigger resource to be passed as the request body. - projectId: Required. ID of the project that owns the trigger. - resourceName: The `Trigger` name with format: - `projects/{project}/locations/{location}/triggers/{trigger}`, where - {trigger} is a unique identifier generated by the service. - triggerId: Required. ID of the `BuildTrigger` to update. - """ - - buildTrigger = _messages.MessageField('BuildTrigger', 1) - projectId = _messages.StringField(2) - resourceName = _messages.StringField(3, required=True) - triggerId = _messages.StringField(4) - - -class CloudbuildProjectsLocationsTriggersRunRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersRunRequest object. - - Fields: - name: The name of the `Trigger` to run. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - runBuildTriggerRequest: A RunBuildTriggerRequest resource to be passed as - the request body. - """ - - name = _messages.StringField(1, required=True) - runBuildTriggerRequest = _messages.MessageField('RunBuildTriggerRequest', 2) - - -class CloudbuildProjectsLocationsTriggersWebhookRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsTriggersWebhookRequest object. - - Fields: - httpBody: A HttpBody resource to be passed as the request body. - name: The name of the `ReceiveTriggerWebhook` to retrieve. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Project in which the specified trigger lives - secret: Secret token used for authorization if an OAuth token isn't - provided. - trigger: Name of the trigger to run the payload against - """ - - httpBody = _messages.MessageField('HttpBody', 1) - name = _messages.StringField(2, required=True) - projectId = _messages.StringField(3) - secret = _messages.StringField(4) - trigger = _messages.StringField(5) - - -class CloudbuildProjectsLocationsWorkerPoolsCreateRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsWorkerPoolsCreateRequest object. - - Fields: - parent: Required. The parent resource where this worker pool will be - created. Format: `projects/{project}/locations/{location}`. - validateOnly: If set, validate the request and preview the response, but - do not actually post it. - workerPool: A WorkerPool resource to be passed as the request body. - workerPoolId: Required. Immutable. The ID to use for the `WorkerPool`, - which will become the final component of the resource name. This value - should be 1-63 characters, and valid characters are /a-z-/. - """ - - parent = _messages.StringField(1, required=True) - validateOnly = _messages.BooleanField(2) - workerPool = _messages.MessageField('WorkerPool', 3) - workerPoolId = _messages.StringField(4) - - -class CloudbuildProjectsLocationsWorkerPoolsDeleteRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsWorkerPoolsDeleteRequest object. - - Fields: - allowMissing: If set to true, and the `WorkerPool` is not found, the - request will succeed but no action will be taken on the server. - etag: Optional. If provided, it must match the server's etag on the - workerpool for the request to be processed. - name: Required. The name of the `WorkerPool` to delete. Format: - `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. - validateOnly: If set, validate the request and preview the response, but - do not actually post it. - """ - - allowMissing = _messages.BooleanField(1) - etag = _messages.StringField(2) - name = _messages.StringField(3, required=True) - validateOnly = _messages.BooleanField(4) - - -class CloudbuildProjectsLocationsWorkerPoolsGetRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsWorkerPoolsGetRequest object. - - Fields: - name: Required. The name of the `WorkerPool` to retrieve. Format: - `projects/{project}/locations/{location}/workerPools/{workerPool}`. - """ - - name = _messages.StringField(1, required=True) - - -class CloudbuildProjectsLocationsWorkerPoolsListRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsWorkerPoolsListRequest object. - - Fields: - pageSize: The maximum number of `WorkerPool`s to return. The service may - return fewer than this value. If omitted, the server will use a sensible - default. - pageToken: A page token, received from a previous `ListWorkerPools` call. - Provide this to retrieve the subsequent page. - parent: Required. The parent of the collection of `WorkerPools`. Format: - `projects/{project}/locations/{location}`. - """ - - pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(2) - parent = _messages.StringField(3, required=True) - - -class CloudbuildProjectsLocationsWorkerPoolsPatchRequest(_messages.Message): - r"""A CloudbuildProjectsLocationsWorkerPoolsPatchRequest object. - - Fields: - name: Output only. The resource name of the `WorkerPool`, with format - `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The - value of `{worker_pool}` is provided by `worker_pool_id` in - `CreateWorkerPool` request and the value of `{location}` is determined - by the endpoint accessed. - updateMask: A mask specifying which fields in `worker_pool` to update. - validateOnly: If set, validate the request and preview the response, but - do not actually post it. - workerPool: A WorkerPool resource to be passed as the request body. - """ - - name = _messages.StringField(1, required=True) - updateMask = _messages.StringField(2) - validateOnly = _messages.BooleanField(3) - workerPool = _messages.MessageField('WorkerPool', 4) - - -class CloudbuildProjectsTriggersCreateRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersCreateRequest object. - - Fields: - buildTrigger: A BuildTrigger resource to be passed as the request body. - parent: The parent resource where this trigger will be created. Format: - `projects/{project}/locations/{location}` - projectId: Required. ID of the project for which to configure automatic - builds. - """ - - buildTrigger = _messages.MessageField('BuildTrigger', 1) - parent = _messages.StringField(2) - projectId = _messages.StringField(3, required=True) - - -class CloudbuildProjectsTriggersDeleteRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersDeleteRequest object. - - Fields: - name: The name of the `Trigger` to delete. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Required. ID of the project that owns the trigger. - triggerId: Required. ID of the `BuildTrigger` to delete. - """ - - name = _messages.StringField(1) - projectId = _messages.StringField(2, required=True) - triggerId = _messages.StringField(3, required=True) - - -class CloudbuildProjectsTriggersGetRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersGetRequest object. - - Fields: - name: The name of the `Trigger` to retrieve. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Required. ID of the project that owns the trigger. - triggerId: Required. Identifier (`id` or `name`) of the `BuildTrigger` to - get. - """ - - name = _messages.StringField(1) - projectId = _messages.StringField(2, required=True) - triggerId = _messages.StringField(3, required=True) - - -class CloudbuildProjectsTriggersListRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersListRequest object. - - Fields: - pageSize: Number of results to return in the list. - pageToken: Token to provide to skip to a particular spot in the list. - parent: The parent of the collection of `Triggers`. Format: - `projects/{project}/locations/{location}` - projectId: Required. ID of the project for which to list BuildTriggers. - """ - - pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) - pageToken = _messages.StringField(2) - parent = _messages.StringField(3) - projectId = _messages.StringField(4, required=True) - - -class CloudbuildProjectsTriggersPatchRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersPatchRequest object. - - Fields: - buildTrigger: A BuildTrigger resource to be passed as the request body. - projectId: Required. ID of the project that owns the trigger. - triggerId: Required. ID of the `BuildTrigger` to update. - """ - - buildTrigger = _messages.MessageField('BuildTrigger', 1) - projectId = _messages.StringField(2, required=True) - triggerId = _messages.StringField(3, required=True) - - -class CloudbuildProjectsTriggersRunRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersRunRequest object. - - Fields: - name: The name of the `Trigger` to run. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Required. ID of the project. - repoSource: A RepoSource resource to be passed as the request body. - triggerId: Required. ID of the trigger. - """ - - name = _messages.StringField(1) - projectId = _messages.StringField(2, required=True) - repoSource = _messages.MessageField('RepoSource', 3) - triggerId = _messages.StringField(4, required=True) - - -class CloudbuildProjectsTriggersWebhookRequest(_messages.Message): - r"""A CloudbuildProjectsTriggersWebhookRequest object. - - Fields: - httpBody: A HttpBody resource to be passed as the request body. - name: The name of the `ReceiveTriggerWebhook` to retrieve. Format: - `projects/{project}/locations/{location}/triggers/{trigger}` - projectId: Project in which the specified trigger lives - secret: Secret token used for authorization if an OAuth token isn't - provided. - trigger: Name of the trigger to run the payload against - """ - - httpBody = _messages.MessageField('HttpBody', 1) - name = _messages.StringField(2) - projectId = _messages.StringField(3, required=True) - secret = _messages.StringField(4) - trigger = _messages.StringField(5, required=True) - - -class CloudbuildWebhookRequest(_messages.Message): - r"""A CloudbuildWebhookRequest object. - - Fields: - httpBody: A HttpBody resource to be passed as the request body. - webhookKey: For GitHub Enterprise webhooks, this key is used to associate - the webhook request with the GitHubEnterpriseConfig to use for - validation. - """ - - httpBody = _messages.MessageField('HttpBody', 1) - webhookKey = _messages.StringField(2) - - -class CreateBitbucketServerConfigOperationMetadata(_messages.Message): - r"""Metadata for `CreateBitbucketServerConfig` operation. - - Fields: - bitbucketServerConfig: The resource name of the BitbucketServerConfig to - be created. Format: - `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. - completeTime: Time the operation was completed. - createTime: Time the operation was created. - """ - - bitbucketServerConfig = _messages.StringField(1) - completeTime = _messages.StringField(2) - createTime = _messages.StringField(3) - - -class CreateBitbucketServerConnectedRepositoryRequest(_messages.Message): - r"""Request to connect a repository from a connected Bitbucket Server host. - - Fields: - bitbucketServerConnectedRepository: Required. The Bitbucket Server - repository to connect. - parent: Required. The name of the `BitbucketServerConfig` that added - connected repository. Format: `projects/{project}/locations/{location}/b - itbucketServerConfigs/{config}` - """ - - bitbucketServerConnectedRepository = _messages.MessageField( - 'BitbucketServerConnectedRepository', 1) - parent = _messages.StringField(2) - - -class CreateGitHubEnterpriseConfigOperationMetadata(_messages.Message): - r"""Metadata for `CreateGithubEnterpriseConfig` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - githubEnterpriseConfig: The resource name of the GitHubEnterprise to be - created. Format: - `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - githubEnterpriseConfig = _messages.StringField(3) - - -class CreateGitLabConfigOperationMetadata(_messages.Message): - r"""Metadata for `CreateGitLabConfig` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - gitlabConfig: The resource name of the GitLabConfig to be created. Format: - `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - gitlabConfig = _messages.StringField(3) - - -class CreateWorkerPoolOperationMetadata(_messages.Message): - r"""Metadata for the `CreateWorkerPool` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - workerPool: The resource name of the `WorkerPool` to create. Format: - `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - workerPool = _messages.StringField(3) - - -class DeleteBitbucketServerConfigOperationMetadata(_messages.Message): - r"""Metadata for `DeleteBitbucketServerConfig` operation. - - Fields: - bitbucketServerConfig: The resource name of the BitbucketServerConfig to - be deleted. Format: - `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. - completeTime: Time the operation was completed. - createTime: Time the operation was created. - """ - - bitbucketServerConfig = _messages.StringField(1) - completeTime = _messages.StringField(2) - createTime = _messages.StringField(3) - - -class DeleteGitHubEnterpriseConfigOperationMetadata(_messages.Message): - r"""Metadata for `DeleteGitHubEnterpriseConfig` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - githubEnterpriseConfig: The resource name of the GitHubEnterprise to be - deleted. Format: - `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - githubEnterpriseConfig = _messages.StringField(3) - - -class DeleteGitLabConfigOperationMetadata(_messages.Message): - r"""Metadata for `DeleteGitLabConfig` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - gitlabConfig: The resource name of the GitLabConfig to be created. Format: - `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - gitlabConfig = _messages.StringField(3) - - -class DeleteWorkerPoolOperationMetadata(_messages.Message): - r"""Metadata for the `DeleteWorkerPool` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - workerPool: The resource name of the `WorkerPool` being deleted. Format: - `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - workerPool = _messages.StringField(3) - - -class Empty(_messages.Message): - r"""A generic empty message that you can re-use to avoid defining duplicated - empty messages in your APIs. A typical example is to use it as the request - or the response type of an API method. For instance: service Foo { rpc - Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON - representation for `Empty` is empty JSON object `{}`. - """ - - -class FailureInfo(_messages.Message): - r"""A fatal problem encountered during the execution of the build. - - Enums: - TypeValueValuesEnum: The name of the failure. - - Fields: - detail: Explains the failure issue in more detail using hard-coded text. - type: The name of the failure. - """ - class TypeValueValuesEnum(_messages.Enum): - r"""The name of the failure. - - Values: - FAILURE_TYPE_UNSPECIFIED: Type unspecified - PUSH_FAILED: Unable to push the image to the repository. - PUSH_IMAGE_NOT_FOUND: Final image not found. - PUSH_NOT_AUTHORIZED: Unauthorized push of the final image. - LOGGING_FAILURE: Backend logging failures. Should retry. - USER_BUILD_STEP: A build step has failed. - FETCH_SOURCE_FAILED: The source fetching has failed. - """ - FAILURE_TYPE_UNSPECIFIED = 0 - PUSH_FAILED = 1 - PUSH_IMAGE_NOT_FOUND = 2 - PUSH_NOT_AUTHORIZED = 3 - LOGGING_FAILURE = 4 - USER_BUILD_STEP = 5 - FETCH_SOURCE_FAILED = 6 - - detail = _messages.StringField(1) - type = _messages.EnumField('TypeValueValuesEnum', 2) - - -class FileHashes(_messages.Message): - r"""Container message for hashes of byte content of files, used in - SourceProvenance messages to verify integrity of source input to the build. - - Fields: - fileHash: Collection of file hashes. - """ - - fileHash = _messages.MessageField('Hash', 1, repeated=True) - - -class GitFileSource(_messages.Message): - r"""GitFileSource describes a file within a (possibly remote) code - repository. - - Enums: - RepoTypeValueValuesEnum: See RepoType above. - - Fields: - bitbucketServerConfig: The full resource name of the bitbucket server - config. Format: - `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. - githubEnterpriseConfig: The full resource name of the github enterprise - config. Format: - `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. - `projects/{project}/githubEnterpriseConfigs/{id}`. - path: The path of the file, with the repo root as the root of the path. - repoType: See RepoType above. - revision: The branch, tag, arbitrary ref, or SHA version of the repo to - use when resolving the filename (optional). This field respects the same - syntax/resolution as described here: https://git- - scm.com/docs/gitrevisions If unspecified, the revision from which the - trigger invocation originated is assumed to be the revision from which - to read the specified path. - uri: The URI of the repo (optional). If unspecified, the repo from which - the trigger invocation originated is assumed to be the repo from which - to read the specified path. - """ - class RepoTypeValueValuesEnum(_messages.Enum): - r"""See RepoType above. - - Values: - UNKNOWN: The default, unknown repo type. - CLOUD_SOURCE_REPOSITORIES: A Google Cloud Source Repositories-hosted - repo. - GITHUB: A GitHub-hosted repo not necessarily on "github.com" (i.e. - GitHub Enterprise). - BITBUCKET_SERVER: A Bitbucket Server-hosted repo. - """ - UNKNOWN = 0 - CLOUD_SOURCE_REPOSITORIES = 1 - GITHUB = 2 - BITBUCKET_SERVER = 3 - - bitbucketServerConfig = _messages.StringField(1) - githubEnterpriseConfig = _messages.StringField(2) - path = _messages.StringField(3) - repoType = _messages.EnumField('RepoTypeValueValuesEnum', 4) - revision = _messages.StringField(5) - uri = _messages.StringField(6) - - -class GitHubEnterpriseConfig(_messages.Message): - r"""GitHubEnterpriseConfig represents a configuration for a GitHub - Enterprise server. - - Fields: - appId: Required. The GitHub app id of the Cloud Build app on the GitHub - Enterprise server. - createTime: Output only. Time when the installation was associated with - the project. - displayName: Name to display for this config. - hostUrl: The URL of the github enterprise host the configuration is for. - name: Optional. The full resource name for the GitHubEnterpriseConfig For - example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - peeredNetwork: Optional. The network to be used when reaching out to the - GitHub Enterprise server. The VPC network must be enabled for private - service connection. This should be set if the GitHub Enterprise server - is hosted on-premises and not reachable by public internet. If this - field is left empty, no network peering will occur and calls to the - GitHub Enterprise server will be made over the public internet. Must be - in the format `projects/{project}/global/networks/{network}`, where - {project} is a project number or id and {network} is the name of a VPC - network in the project. - secrets: Names of secrets in Secret Manager. - sslCa: Optional. SSL certificate to use for requests to GitHub Enterprise. - webhookKey: The key that should be attached to webhook calls to the - ReceiveWebhook endpoint. - """ - - appId = _messages.IntegerField(1) - createTime = _messages.StringField(2) - displayName = _messages.StringField(3) - hostUrl = _messages.StringField(4) - name = _messages.StringField(5) - peeredNetwork = _messages.StringField(6) - secrets = _messages.MessageField('GitHubEnterpriseSecrets', 7) - sslCa = _messages.StringField(8) - webhookKey = _messages.StringField(9) - - -class GitHubEnterpriseSecrets(_messages.Message): - r"""GitHubEnterpriseSecrets represents the names of all necessary secrets in - Secret Manager for a GitHub Enterprise server. Format is: - projects//secrets/. - - Fields: - oauthClientIdName: The resource name for the OAuth client ID secret in - Secret Manager. - oauthClientIdVersionName: The resource name for the OAuth client ID secret - version in Secret Manager. - oauthSecretName: The resource name for the OAuth secret in Secret Manager. - oauthSecretVersionName: The resource name for the OAuth secret secret - version in Secret Manager. - privateKeyName: The resource name for the private key secret. - privateKeyVersionName: The resource name for the private key secret - version. - webhookSecretName: The resource name for the webhook secret in Secret - Manager. - webhookSecretVersionName: The resource name for the webhook secret secret - version in Secret Manager. - """ - - oauthClientIdName = _messages.StringField(1) - oauthClientIdVersionName = _messages.StringField(2) - oauthSecretName = _messages.StringField(3) - oauthSecretVersionName = _messages.StringField(4) - privateKeyName = _messages.StringField(5) - privateKeyVersionName = _messages.StringField(6) - webhookSecretName = _messages.StringField(7) - webhookSecretVersionName = _messages.StringField(8) - - -class GitHubEventsConfig(_messages.Message): - r"""GitHubEventsConfig describes the configuration of a trigger that creates - a build whenever a GitHub event is received. - - Fields: - enterpriseConfigResourceName: Optional. The resource name of the github - enterprise config that should be applied to this installation. For - example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" - installationId: The installationID that emits the GitHub event. - name: Name of the repository. For example: The name for - https://github.com/googlecloudplatform/cloud-builders is "cloud- - builders". - owner: Owner of the repository. For example: The owner for - https://github.com/googlecloudplatform/cloud-builders is - "googlecloudplatform". - pullRequest: filter to match changes in pull requests. - push: filter to match changes in refs like branches, tags. - """ - - enterpriseConfigResourceName = _messages.StringField(1) - installationId = _messages.IntegerField(2) - name = _messages.StringField(3) - owner = _messages.StringField(4) - pullRequest = _messages.MessageField('PullRequestFilter', 5) - push = _messages.MessageField('PushFilter', 6) - - -class GitRepoSource(_messages.Message): - r"""GitRepoSource describes a repo and ref of a code repository. - - Enums: - RepoTypeValueValuesEnum: See RepoType below. - - Fields: - bitbucketServerConfig: The full resource name of the bitbucket server - config. Format: - `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. - githubEnterpriseConfig: The full resource name of the github enterprise - config. Format: - `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. - `projects/{project}/githubEnterpriseConfigs/{id}`. - ref: The branch or tag to use. Must start with "refs/" (required). - repoType: See RepoType below. - uri: The URI of the repo (required). - """ - class RepoTypeValueValuesEnum(_messages.Enum): - r"""See RepoType below. - - Values: - UNKNOWN: The default, unknown repo type. - CLOUD_SOURCE_REPOSITORIES: A Google Cloud Source Repositories-hosted - repo. - GITHUB: A GitHub-hosted repo not necessarily on "github.com" (i.e. - GitHub Enterprise). - BITBUCKET_SERVER: A Bitbucket Server-hosted repo. - """ - UNKNOWN = 0 - CLOUD_SOURCE_REPOSITORIES = 1 - GITHUB = 2 - BITBUCKET_SERVER = 3 - - bitbucketServerConfig = _messages.StringField(1) - githubEnterpriseConfig = _messages.StringField(2) - ref = _messages.StringField(3) - repoType = _messages.EnumField('RepoTypeValueValuesEnum', 4) - uri = _messages.StringField(5) - - -class GoogleDevtoolsCloudbuildV2OperationMetadata(_messages.Message): - r"""Represents the metadata of the long-running operation. - - Fields: - apiVersion: Output only. API version used to start the operation. - createTime: Output only. The time the operation was created. - endTime: Output only. The time the operation finished running. - requestedCancellation: Output only. Identifies whether the user has - requested cancellation of the operation. Operations that have - successfully been cancelled have Operation.error value with a - google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - statusMessage: Output only. Human-readable status of the operation, if - any. - target: Output only. Server-defined resource path for the target of the - operation. - verb: Output only. Name of the verb executed by the operation. - """ - - apiVersion = _messages.StringField(1) - createTime = _messages.StringField(2) - endTime = _messages.StringField(3) - requestedCancellation = _messages.BooleanField(4) - statusMessage = _messages.StringField(5) - target = _messages.StringField(6) - verb = _messages.StringField(7) - - -class HTTPDelivery(_messages.Message): - r"""HTTPDelivery is the delivery configuration for an HTTP notification. - - Fields: - uri: The URI to which JSON-containing HTTP POST requests should be sent. - """ - - uri = _messages.StringField(1) - - -class Hash(_messages.Message): - r"""Container message for hash values. - - Enums: - TypeValueValuesEnum: The type of hash that was performed. - - Fields: - type: The type of hash that was performed. - value: The hash value. - """ - class TypeValueValuesEnum(_messages.Enum): - r"""The type of hash that was performed. - - Values: - NONE: No hash requested. - SHA256: Use a sha256 hash. - MD5: Use a md5 hash. - """ - NONE = 0 - SHA256 = 1 - MD5 = 2 - - type = _messages.EnumField('TypeValueValuesEnum', 1) - value = _messages.BytesField(2) - - -class HttpBody(_messages.Message): - r"""Message that represents an arbitrary HTTP body. It should only be used - for payload formats that can't be represented as JSON, such as raw binary or - an HTML page. This message can be used both in streaming and non-streaming - API methods in the request as well as the response. It can be used as a top- - level request field, which is convenient if one wants to extract parameters - from either the URL or HTTP template into the request fields and also want - access to the raw HTTP body. Example: message GetResourceRequest { // A - unique request id. string request_id = 1; // The raw HTTP body is bound to - this field. google.api.HttpBody http_body = 2; } service ResourceService { - rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc - UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } - Example with streaming methods: service CaldavService { rpc - GetCalendar(stream google.api.HttpBody) returns (stream - google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns - (stream google.api.HttpBody); } Use of this type only changes how the - request and response bodies are handled, all other features will continue to - work unchanged. - - Messages: - ExtensionsValueListEntry: A ExtensionsValueListEntry object. - - Fields: - contentType: The HTTP Content-Type header value specifying the content - type of the body. - data: The HTTP request/response body as raw binary. - extensions: Application specific response metadata. Must be set in the - first response for streaming APIs. - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class ExtensionsValueListEntry(_messages.Message): - r"""A ExtensionsValueListEntry object. - - Messages: - AdditionalProperty: An additional property for a - ExtensionsValueListEntry object. - - Fields: - additionalProperties: Properties of the object. Contains field @type - with type URL. - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a ExtensionsValueListEntry object. - - Fields: - key: Name of the additional property. - value: A extra_types.JsonValue attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('extra_types.JsonValue', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - contentType = _messages.StringField(1) - data = _messages.BytesField(2) - extensions = _messages.MessageField( - 'ExtensionsValueListEntry', 3, repeated=True) - - -class InlineSecret(_messages.Message): - r"""Pairs a set of secret environment variables mapped to encrypted values - with the Cloud KMS key to use to decrypt the value. - - Messages: - EnvMapValue: Map of environment variable name to its encrypted value. - Secret environment variables must be unique across all of a build's - secrets, and must be used by at least one build step. Values can be at - most 64 KB in size. There can be at most 100 secret values across all of - a build's secrets. - - Fields: - envMap: Map of environment variable name to its encrypted value. Secret - environment variables must be unique across all of a build's secrets, - and must be used by at least one build step. Values can be at most 64 KB - in size. There can be at most 100 secret values across all of a build's - secrets. - kmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted - value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class EnvMapValue(_messages.Message): - r"""Map of environment variable name to its encrypted value. Secret - environment variables must be unique across all of a build's secrets, and - must be used by at least one build step. Values can be at most 64 KB in - size. There can be at most 100 secret values across all of a build's - secrets. - - Messages: - AdditionalProperty: An additional property for a EnvMapValue object. - - Fields: - additionalProperties: Additional properties of type EnvMapValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a EnvMapValue object. - - Fields: - key: Name of the additional property. - value: A byte attribute. - """ - - key = _messages.StringField(1) - value = _messages.BytesField(2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - envMap = _messages.MessageField('EnvMapValue', 1) - kmsKeyName = _messages.StringField(2) - - -class ListBitbucketServerConfigsResponse(_messages.Message): - r"""RPC response object returned by ListBitbucketServerConfigs RPC method. - - Fields: - bitbucketServerConfigs: A list of BitbucketServerConfigs - nextPageToken: A token that can be sent as `page_token` to retrieve the - next page. If this field is omitted, there are no subsequent pages. - """ - - bitbucketServerConfigs = _messages.MessageField( - 'BitbucketServerConfig', 1, repeated=True) - nextPageToken = _messages.StringField(2) - - -class ListBitbucketServerRepositoriesResponse(_messages.Message): - r"""RPC response object returned by the ListBitbucketServerRepositories RPC - method. - - Fields: - bitbucketServerRepositories: List of Bitbucket Server repositories. - nextPageToken: A token that can be sent as `page_token` to retrieve the - next page. If this field is omitted, there are no subsequent pages. - """ - - bitbucketServerRepositories = _messages.MessageField( - 'BitbucketServerRepository', 1, repeated=True) - nextPageToken = _messages.StringField(2) - - -class ListBuildTriggersResponse(_messages.Message): - r"""Response containing existing `BuildTriggers`. - - Fields: - nextPageToken: Token to receive the next page of results. - triggers: `BuildTriggers` for the project, sorted by `create_time` - descending. - """ - - nextPageToken = _messages.StringField(1) - triggers = _messages.MessageField('BuildTrigger', 2, repeated=True) - - -class ListBuildsResponse(_messages.Message): - r"""Response including listed builds. - - Fields: - builds: Builds will be sorted by `create_time`, descending. - nextPageToken: Token to receive the next page of results. This will be - absent if the end of the response list has been reached. - """ - - builds = _messages.MessageField('Build', 1, repeated=True) - nextPageToken = _messages.StringField(2) - - -class ListGithubEnterpriseConfigsResponse(_messages.Message): - r"""RPC response object returned by ListGithubEnterpriseConfigs RPC method. - - Fields: - configs: A list of GitHubEnterpriseConfigs - """ - - configs = _messages.MessageField('GitHubEnterpriseConfig', 1, repeated=True) - - -class ListWorkerPoolsResponse(_messages.Message): - r"""Response containing existing `WorkerPools`. - - Fields: - nextPageToken: Continuation token used to page through large result sets. - Provide this value in a subsequent ListWorkerPoolsRequest to return the - next page of results. - workerPools: `WorkerPools` for the specified project. - """ - - nextPageToken = _messages.StringField(1) - workerPools = _messages.MessageField('WorkerPool', 2, repeated=True) - - -class NetworkConfig(_messages.Message): - r"""Defines the network configuration for the pool. - - Enums: - EgressOptionValueValuesEnum: Option to configure network egress for the - workers. - - Fields: - egressOption: Option to configure network egress for the workers. - peeredNetwork: Required. Immutable. The network definition that the - workers are peered to. If this section is left empty, the workers will - be peered to `WorkerPool.project_id` on the service producer network. - Must be in the format `projects/{project}/global/networks/{network}`, - where `{project}` is a project number, such as `12345`, and `{network}` - is the name of a VPC network in the project. See [Understanding network - configuration options](https://cloud.google.com/build/docs/private- - pools/set-up-private-pool-environment) - """ - class EgressOptionValueValuesEnum(_messages.Enum): - r"""Option to configure network egress for the workers. - - Values: - EGRESS_OPTION_UNSPECIFIED: If set, defaults to PUBLIC_EGRESS. - NO_PUBLIC_EGRESS: If set, workers are created without any public - address, which prevents network egress to public IPs unless a network - proxy is configured. - PUBLIC_EGRESS: If set, workers are created with a public address which - allows for public internet egress. - """ - EGRESS_OPTION_UNSPECIFIED = 0 - NO_PUBLIC_EGRESS = 1 - PUBLIC_EGRESS = 2 - - egressOption = _messages.EnumField('EgressOptionValueValuesEnum', 1) - peeredNetwork = _messages.StringField(2) - - -class Notification(_messages.Message): - r"""Notification is the container which holds the data that is relevant to - this particular notification. - - Messages: - StructDeliveryValue: Escape hatch for users to supply custom delivery - configs. - - Fields: - filter: The filter string to use for notification filtering. Currently, - this is assumed to be a CEL program. See - https://opensource.google/projects/cel for more. - httpDelivery: Configuration for HTTP delivery. - slackDelivery: Configuration for Slack delivery. - smtpDelivery: Configuration for SMTP (email) delivery. - structDelivery: Escape hatch for users to supply custom delivery configs. - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class StructDeliveryValue(_messages.Message): - r"""Escape hatch for users to supply custom delivery configs. - - Messages: - AdditionalProperty: An additional property for a StructDeliveryValue - object. - - Fields: - additionalProperties: Properties of the object. - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a StructDeliveryValue object. - - Fields: - key: Name of the additional property. - value: A extra_types.JsonValue attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('extra_types.JsonValue', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - filter = _messages.StringField(1) - httpDelivery = _messages.MessageField('HTTPDelivery', 2) - slackDelivery = _messages.MessageField('SlackDelivery', 3) - smtpDelivery = _messages.MessageField('SMTPDelivery', 4) - structDelivery = _messages.MessageField('StructDeliveryValue', 5) - - -class NotifierConfig(_messages.Message): - r"""NotifierConfig is the top-level configuration message. - - Fields: - apiVersion: The API version of this configuration format. - kind: The type of notifier to use (e.g. SMTPNotifier). - metadata: Metadata for referring to/handling/deploying this notifier. - spec: The actual configuration for this notifier. - """ - - apiVersion = _messages.StringField(1) - kind = _messages.StringField(2) - metadata = _messages.MessageField('NotifierMetadata', 3) - spec = _messages.MessageField('NotifierSpec', 4) - - -class NotifierMetadata(_messages.Message): - r"""NotifierMetadata contains the data which can be used to reference or - describe this notifier. - - Fields: - name: The human-readable and user-given name for the notifier. For - example: "repo-merge-email-notifier". - notifier: The string representing the name and version of notifier to - deploy. Expected to be of the form of "/:". For example: "gcr.io/my- - project/notifiers/smtp:1.2.34". - """ - - name = _messages.StringField(1) - notifier = _messages.StringField(2) - - -class NotifierSecret(_messages.Message): - r"""NotifierSecret is the container that maps a secret name (reference) to - its Google Cloud Secret Manager resource path. - - Fields: - name: Name is the local name of the secret, such as the verbatim string - "my-smtp-password". - value: Value is interpreted to be a resource path for fetching the actual - (versioned) secret data for this secret. For example, this would be a - Google Cloud Secret Manager secret version resource path like: - "projects/my-project/secrets/my-secret/versions/latest". - """ - - name = _messages.StringField(1) - value = _messages.StringField(2) - - -class NotifierSecretRef(_messages.Message): - r"""NotifierSecretRef contains the reference to a secret stored in the - corresponding NotifierSpec. - - Fields: - secretRef: The value of `secret_ref` should be a `name` that is registered - in a `Secret` in the `secrets` list of the `Spec`. - """ - - secretRef = _messages.StringField(1) - - -class NotifierSpec(_messages.Message): - r"""NotifierSpec is the configuration container for notifications. - - Fields: - notification: The configuration of this particular notifier. - secrets: Configurations for secret resources used by this particular - notifier. - """ - - notification = _messages.MessageField('Notification', 1) - secrets = _messages.MessageField('NotifierSecret', 2, repeated=True) - - -class Operation(_messages.Message): - r"""This resource represents a long-running operation that is the result of - a network API call. - - Messages: - MetadataValue: 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. - ResponseValue: The normal response of the operation in case of success. 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`. - - Fields: - done: 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. - error: The error result of the operation in case of failure or - cancellation. - metadata: 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. - name: 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}`. - response: The normal response of the operation in case of success. 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`. - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class MetadataValue(_messages.Message): - r"""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. - - Messages: - AdditionalProperty: An additional property for a MetadataValue object. - - Fields: - additionalProperties: Properties of the object. Contains field @type - with type URL. - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a MetadataValue object. - - Fields: - key: Name of the additional property. - value: A extra_types.JsonValue attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('extra_types.JsonValue', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - @encoding.MapUnrecognizedFields('additionalProperties') - class ResponseValue(_messages.Message): - r"""The normal response of the operation in case of success. 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`. - - Messages: - AdditionalProperty: An additional property for a ResponseValue object. - - Fields: - additionalProperties: Properties of the object. Contains field @type - with type URL. - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a ResponseValue object. - - Fields: - key: Name of the additional property. - value: A extra_types.JsonValue attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('extra_types.JsonValue', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - done = _messages.BooleanField(1) - error = _messages.MessageField('Status', 2) - metadata = _messages.MessageField('MetadataValue', 3) - name = _messages.StringField(4) - response = _messages.MessageField('ResponseValue', 5) - - -class OperationMetadata(_messages.Message): - r"""Represents the metadata of the long-running operation. - - Fields: - apiVersion: Output only. API version used to start the operation. - cancelRequested: Output only. Identifies whether the user has requested - cancellation of the operation. Operations that have been cancelled - successfully have Operation.error value with a google.rpc.Status.code of - 1, corresponding to `Code.CANCELLED`. - createTime: Output only. The time the operation was created. - endTime: Output only. The time the operation finished running. - statusDetail: Output only. Human-readable status of the operation, if any. - target: Output only. Server-defined resource path for the target of the - operation. - verb: Output only. Name of the verb executed by the operation. - """ - - apiVersion = _messages.StringField(1) - cancelRequested = _messages.BooleanField(2) - createTime = _messages.StringField(3) - endTime = _messages.StringField(4) - statusDetail = _messages.StringField(5) - target = _messages.StringField(6) - verb = _messages.StringField(7) - - -class PoolOption(_messages.Message): - r"""Details about how a build should be executed on a `WorkerPool`. See - [running builds in a private - pool](https://cloud.google.com/build/docs/private-pools/run-builds-in- - private-pool) for more information. - - Fields: - name: The `WorkerPool` resource to execute the build on. You must have - `cloudbuild.workerpools.use` on the project hosting the WorkerPool. - Format - projects/{project}/locations/{location}/workerPools/{workerPoolId} - """ - - name = _messages.StringField(1) - - -class PrivatePoolV1Config(_messages.Message): - r"""Configuration for a V1 `PrivatePool`. - - Fields: - networkConfig: Network configuration for the pool. - workerConfig: Machine configuration for the workers in the pool. - """ - - networkConfig = _messages.MessageField('NetworkConfig', 1) - workerConfig = _messages.MessageField('WorkerConfig', 2) - - -class ProcessAppManifestCallbackOperationMetadata(_messages.Message): - r"""Metadata for `ProcessAppManifestCallback` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - githubEnterpriseConfig: The resource name of the GitHubEnterprise to be - created. Format: - `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - githubEnterpriseConfig = _messages.StringField(3) - - -class PubsubConfig(_messages.Message): - r"""PubsubConfig describes the configuration of a trigger that creates a - build whenever a Pub/Sub message is published. - - Enums: - StateValueValuesEnum: Potential issues with the underlying Pub/Sub - subscription configuration. Only populated on get requests. - - Fields: - serviceAccountEmail: Service account that will make the push request. - state: Potential issues with the underlying Pub/Sub subscription - configuration. Only populated on get requests. - subscription: Output only. Name of the subscription. Format is - `projects/{project}/subscriptions/{subscription}`. - topic: The name of the topic from which this subscription is receiving - messages. Format is `projects/{project}/topics/{topic}`. - """ - class StateValueValuesEnum(_messages.Enum): - r"""Potential issues with the underlying Pub/Sub subscription - configuration. Only populated on get requests. - - Values: - STATE_UNSPECIFIED: The subscription configuration has not been checked. - OK: The Pub/Sub subscription is properly configured. - SUBSCRIPTION_DELETED: The subscription has been deleted. - TOPIC_DELETED: The topic has been deleted. - SUBSCRIPTION_MISCONFIGURED: Some of the subscription's field are - misconfigured. - """ - STATE_UNSPECIFIED = 0 - OK = 1 - SUBSCRIPTION_DELETED = 2 - TOPIC_DELETED = 3 - SUBSCRIPTION_MISCONFIGURED = 4 - - serviceAccountEmail = _messages.StringField(1) - state = _messages.EnumField('StateValueValuesEnum', 2) - subscription = _messages.StringField(3) - topic = _messages.StringField(4) - - -class PullRequestFilter(_messages.Message): - r"""PullRequestFilter contains filter properties for matching GitHub Pull - Requests. - - Enums: - CommentControlValueValuesEnum: Configure builds to run whether a - repository owner or collaborator need to comment `/gcbrun`. - - Fields: - branch: Regex of branches to match. The syntax of the regular expressions - accepted is the syntax accepted by RE2 and described at - https://github.com/google/re2/wiki/Syntax - commentControl: Configure builds to run whether a repository owner or - collaborator need to comment `/gcbrun`. - invertRegex: If true, branches that do NOT match the git_ref will trigger - a build. - """ - class CommentControlValueValuesEnum(_messages.Enum): - r"""Configure builds to run whether a repository owner or collaborator - need to comment `/gcbrun`. - - Values: - COMMENTS_DISABLED: Do not require comments on Pull Requests before - builds are triggered. - COMMENTS_ENABLED: Enforce that repository owners or collaborators must - comment on Pull Requests before builds are triggered. - COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY: Enforce that repository - owners or collaborators must comment on external contributors' Pull - Requests before builds are triggered. - """ - COMMENTS_DISABLED = 0 - COMMENTS_ENABLED = 1 - COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2 - - branch = _messages.StringField(1) - commentControl = _messages.EnumField('CommentControlValueValuesEnum', 2) - invertRegex = _messages.BooleanField(3) - - -class PushFilter(_messages.Message): - r"""Push contains filter properties for matching GitHub git pushes. - - Fields: - branch: Regexes matching branches to build. The syntax of the regular - expressions accepted is the syntax accepted by RE2 and described at - https://github.com/google/re2/wiki/Syntax - invertRegex: When true, only trigger a build if the revision regex does - NOT match the git_ref regex. - tag: Regexes matching tags to build. The syntax of the regular expressions - accepted is the syntax accepted by RE2 and described at - https://github.com/google/re2/wiki/Syntax - """ - - branch = _messages.StringField(1) - invertRegex = _messages.BooleanField(2) - tag = _messages.StringField(3) - - -class ReceiveTriggerWebhookResponse(_messages.Message): - r"""ReceiveTriggerWebhookResponse is the response object for - the ReceiveTriggerWebhook method. - """ - - -class RemoveBitbucketServerConnectedRepositoryRequest(_messages.Message): - r"""RPC request object accepted by RemoveBitbucketServerConnectedRepository - RPC method. - - Fields: - connectedRepository: The connected repository to remove. - """ - - connectedRepository = _messages.MessageField('BitbucketServerRepositoryId', 1) - - -class RepoSource(_messages.Message): - r"""Location of the source in a Google Cloud Source Repository. - - Messages: - SubstitutionsValue: Substitutions to use in a triggered build. Should only - be used with RunBuildTrigger - - Fields: - branchName: Regex matching branches to build. The syntax of the regular - expressions accepted is the syntax accepted by RE2 and described at - https://github.com/google/re2/wiki/Syntax - commitSha: Explicit commit SHA to build. - dir: Directory, relative to the source root, in which to run the build. - This must be a relative path. If a step's `dir` is specified and is an - absolute path, this value is ignored for that step's execution. - invertRegex: Only trigger a build if the revision regex does NOT match the - revision regex. - projectId: ID of the project that owns the Cloud Source Repository. If - omitted, the project ID requesting the build is assumed. - repoName: Name of the Cloud Source Repository. - substitutions: Substitutions to use in a triggered build. Should only be - used with RunBuildTrigger - tagName: Regex matching tags to build. The syntax of the regular - expressions accepted is the syntax accepted by RE2 and described at - https://github.com/google/re2/wiki/Syntax - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class SubstitutionsValue(_messages.Message): - r"""Substitutions to use in a triggered build. Should only be used with - RunBuildTrigger - - Messages: - AdditionalProperty: An additional property for a SubstitutionsValue - object. - - Fields: - additionalProperties: Additional properties of type SubstitutionsValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a SubstitutionsValue object. - - Fields: - key: Name of the additional property. - value: A string attribute. - """ - - key = _messages.StringField(1) - value = _messages.StringField(2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - branchName = _messages.StringField(1) - commitSha = _messages.StringField(2) - dir = _messages.StringField(3) - invertRegex = _messages.BooleanField(4) - projectId = _messages.StringField(5) - repoName = _messages.StringField(6) - substitutions = _messages.MessageField('SubstitutionsValue', 7) - tagName = _messages.StringField(8) - - -class Results(_messages.Message): - r"""Artifacts created by the build pipeline. - - Fields: - artifactManifest: Path to the artifact manifest. Only populated when - artifacts are uploaded. - artifactTiming: Time to push all non-container artifacts. - buildStepImages: List of build step digests, in the order corresponding to - build step indices. - buildStepOutputs: List of build step outputs, produced by builder images, - in the order corresponding to build step indices. [Cloud - Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can - produce this output by writing to `$BUILDER_OUTPUT/output`. Only the - first 4KB of data is stored. - images: Container images that were built as a part of the build. - numArtifacts: Number of artifacts uploaded. Only populated when artifacts - are uploaded. - """ - - artifactManifest = _messages.StringField(1) - artifactTiming = _messages.MessageField('TimeSpan', 2) - buildStepImages = _messages.StringField(3, repeated=True) - buildStepOutputs = _messages.BytesField(4, repeated=True) - images = _messages.MessageField('BuiltImage', 5, repeated=True) - numArtifacts = _messages.IntegerField(6) - - -class RetryBuildRequest(_messages.Message): - r"""Specifies a build to retry. - - Fields: - id: Required. Build ID of the original build. - name: The name of the `Build` to retry. Format: - `projects/{project}/locations/{location}/builds/{build}` - projectId: Required. ID of the project. - """ - - id = _messages.StringField(1) - name = _messages.StringField(2) - projectId = _messages.StringField(3) - - -class RunBuildTriggerRequest(_messages.Message): - r"""Specifies a build trigger to run and the source to use. - - Fields: - projectId: Required. ID of the project. - source: Source to build against this trigger. Branch and tag names cannot - consist of regular expressions. - triggerId: Required. ID of the trigger. - """ - - projectId = _messages.StringField(1) - source = _messages.MessageField('RepoSource', 2) - triggerId = _messages.StringField(3) - - -class RunWorkflowCustomOperationMetadata(_messages.Message): - r"""Represents the custom metadata of the RunWorkflow long-running - operation. - - Fields: - apiVersion: Output only. API version used to start the operation. - createTime: Output only. The time the operation was created. - endTime: Output only. The time the operation finished running. - pipelineRunId: Output only. ID of the pipeline run created by RunWorkflow. - requestedCancellation: Output only. Identifies whether the user has - requested cancellation of the operation. Operations that have - successfully been cancelled have Operation.error value with a - google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - target: Output only. Server-defined resource path for the target of the - operation. - verb: Output only. Name of the verb executed by the operation. - """ - - apiVersion = _messages.StringField(1) - createTime = _messages.StringField(2) - endTime = _messages.StringField(3) - pipelineRunId = _messages.StringField(4) - requestedCancellation = _messages.BooleanField(5) - target = _messages.StringField(6) - verb = _messages.StringField(7) - - -class SMTPDelivery(_messages.Message): - r"""SMTPDelivery is the delivery configuration for an SMTP (email) - notification. - - Fields: - fromAddress: This is the SMTP account/email that appears in the `From:` of - the email. If empty, it is assumed to be sender. - password: The SMTP sender's password. - port: The SMTP port of the server. - recipientAddresses: This is the list of addresses to which we send the - email (i.e. in the `To:` of the email). - senderAddress: This is the SMTP account/email that is used to send the - message. - server: The address of the SMTP server. - """ - - fromAddress = _messages.StringField(1) - password = _messages.MessageField('NotifierSecretRef', 2) - port = _messages.StringField(3) - recipientAddresses = _messages.StringField(4, repeated=True) - senderAddress = _messages.StringField(5) - server = _messages.StringField(6) - - -class Secret(_messages.Message): - r"""Pairs a set of secret environment variables containing encrypted values - with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` - with `available_secrets` instead of using `kmsKeyName` with `secret`. For - instructions see: https://cloud.google.com/cloud-build/docs/securing- - builds/use-encrypted-credentials. - - Messages: - SecretEnvValue: Map of environment variable name to its encrypted value. - Secret environment variables must be unique across all of a build's - secrets, and must be used by at least one build step. Values can be at - most 64 KB in size. There can be at most 100 secret values across all of - a build's secrets. - - Fields: - kmsKeyName: Cloud KMS key name to use to decrypt these envs. - secretEnv: Map of environment variable name to its encrypted value. Secret - environment variables must be unique across all of a build's secrets, - and must be used by at least one build step. Values can be at most 64 KB - in size. There can be at most 100 secret values across all of a build's - secrets. - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class SecretEnvValue(_messages.Message): - r"""Map of environment variable name to its encrypted value. Secret - environment variables must be unique across all of a build's secrets, and - must be used by at least one build step. Values can be at most 64 KB in - size. There can be at most 100 secret values across all of a build's - secrets. - - Messages: - AdditionalProperty: An additional property for a SecretEnvValue object. - - Fields: - additionalProperties: Additional properties of type SecretEnvValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a SecretEnvValue object. - - Fields: - key: Name of the additional property. - value: A byte attribute. - """ - - key = _messages.StringField(1) - value = _messages.BytesField(2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - kmsKeyName = _messages.StringField(1) - secretEnv = _messages.MessageField('SecretEnvValue', 2) - - -class SecretManagerSecret(_messages.Message): - r"""Pairs a secret environment variable with a SecretVersion in Secret - Manager. - - Fields: - env: Environment variable name to associate with the secret. Secret - environment variables must be unique across all of a build's secrets, - and must be used by at least one build step. - versionName: Resource name of the SecretVersion. In format: - projects/*/secrets/*/versions/* - """ - - env = _messages.StringField(1) - versionName = _messages.StringField(2) - - -class Secrets(_messages.Message): - r"""Secrets and secret environment variables. - - Fields: - inline: Secrets encrypted with KMS key and the associated secret - environment variable. - secretManager: Secrets in Secret Manager and associated secret environment - variable. - """ - - inline = _messages.MessageField('InlineSecret', 1, repeated=True) - secretManager = _messages.MessageField( - 'SecretManagerSecret', 2, repeated=True) - - -class SlackDelivery(_messages.Message): - r"""SlackDelivery is the delivery configuration for delivering Slack - messages via webhooks. See Slack webhook documentation at: - https://api.slack.com/messaging/webhooks. - - Fields: - webhookUri: The secret reference for the Slack webhook URI for sending - messages to a channel. - """ - - webhookUri = _messages.MessageField('NotifierSecretRef', 1) - - -class Source(_messages.Message): - r"""Location of the source in a supported storage service. - - Fields: - repoSource: If provided, get the source from this location in a Cloud - Source Repository. - storageSource: If provided, get the source from this location in Google - Cloud Storage. - storageSourceManifest: If provided, get the source from this manifest in - Google Cloud Storage. This feature is in Preview; see description - [here](https://github.com/GoogleCloudPlatform/cloud- - builders/tree/master/gcs-fetcher). - """ - - repoSource = _messages.MessageField('RepoSource', 1) - storageSource = _messages.MessageField('StorageSource', 2) - storageSourceManifest = _messages.MessageField('StorageSourceManifest', 3) - - -class SourceProvenance(_messages.Message): - r"""Provenance of the source. Ways to find the original source, or verify - that some source was used for this build. - - Messages: - FileHashesValue: Output only. Hash(es) of the build source, which can be - used to verify that the original source integrity was maintained in the - build. Note that `FileHashes` will only be populated if `BuildOptions` - has requested a `SourceProvenanceHash`. The keys to this map are file - paths used as build source and the values contain the hash values for - those files. If the build source came in a single package such as a - gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path - to that file. - - Fields: - fileHashes: Output only. Hash(es) of the build source, which can be used - to verify that the original source integrity was maintained in the - build. Note that `FileHashes` will only be populated if `BuildOptions` - has requested a `SourceProvenanceHash`. The keys to this map are file - paths used as build source and the values contain the hash values for - those files. If the build source came in a single package such as a - gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path - to that file. - resolvedRepoSource: A copy of the build's `source.repo_source`, if exists, - with any revisions resolved. - resolvedStorageSource: A copy of the build's `source.storage_source`, if - exists, with any generations resolved. - resolvedStorageSourceManifest: A copy of the build's - `source.storage_source_manifest`, if exists, with any revisions - resolved. This feature is in Preview. - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class FileHashesValue(_messages.Message): - r"""Output only. Hash(es) of the build source, which can be used to verify - that the original source integrity was maintained in the build. Note that - `FileHashes` will only be populated if `BuildOptions` has requested a - `SourceProvenanceHash`. The keys to this map are file paths used as build - source and the values contain the hash values for those files. If the - build source came in a single package such as a gzipped tarfile - (`.tar.gz`), the `FileHash` will be for the single path to that file. - - Messages: - AdditionalProperty: An additional property for a FileHashesValue object. - - Fields: - additionalProperties: Additional properties of type FileHashesValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a FileHashesValue object. - - Fields: - key: Name of the additional property. - value: A FileHashes attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('FileHashes', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - fileHashes = _messages.MessageField('FileHashesValue', 1) - resolvedRepoSource = _messages.MessageField('RepoSource', 2) - resolvedStorageSource = _messages.MessageField('StorageSource', 3) - resolvedStorageSourceManifest = _messages.MessageField( - 'StorageSourceManifest', 4) - - -class StandardQueryParameters(_messages.Message): - r"""Query parameters accepted by all methods. - - Enums: - FXgafvValueValuesEnum: V1 error format. - AltValueValuesEnum: Data format for response. - - Fields: - f__xgafv: V1 error format. - access_token: OAuth access token. - alt: Data format for response. - callback: JSONP - fields: Selector specifying which fields to include in a partial response. - key: API key. Your API key identifies your project and provides you with - API access, quota, and reports. Required unless you provide an OAuth 2.0 - token. - oauth_token: OAuth 2.0 token for the current user. - prettyPrint: Returns response with indentations and line breaks. - quotaUser: Available to use for quota purposes for server-side - applications. Can be any arbitrary string assigned to a user, but should - not exceed 40 characters. - trace: A tracing token of the form "token:" to include in api - requests. - uploadType: Legacy upload protocol for media (e.g. "media", "multipart"). - upload_protocol: Upload protocol for media (e.g. "raw", "multipart"). - """ - class AltValueValuesEnum(_messages.Enum): - r"""Data format for response. - - Values: - json: Responses with Content-Type of application/json - media: Media download with context-dependent Content-Type - proto: Responses with Content-Type of application/x-protobuf - """ - json = 0 - media = 1 - proto = 2 - - class FXgafvValueValuesEnum(_messages.Enum): - r"""V1 error format. - - Values: - _1: v1 error format - _2: v2 error format - """ - _1 = 0 - _2 = 1 - - f__xgafv = _messages.EnumField('FXgafvValueValuesEnum', 1) - access_token = _messages.StringField(2) - alt = _messages.EnumField('AltValueValuesEnum', 3, default='json') - callback = _messages.StringField(4) - fields = _messages.StringField(5) - key = _messages.StringField(6) - oauth_token = _messages.StringField(7) - prettyPrint = _messages.BooleanField(8, default=True) - quotaUser = _messages.StringField(9) - trace = _messages.StringField(10) - uploadType = _messages.StringField(11) - upload_protocol = _messages.StringField(12) - - -class Status(_messages.Message): - r"""The `Status` type defines a logical error model that is suitable for - different programming environments, including REST APIs and RPC APIs. It is - used by [gRPC](https://github.com/grpc). Each `Status` message contains - three pieces of data: error code, error message, and error details. You can - find out more about this error model and how to work with it in the [API - Design Guide](https://cloud.google.com/apis/design/errors). - - Messages: - DetailsValueListEntry: A DetailsValueListEntry object. - - Fields: - code: The status code, which should be an enum value of google.rpc.Code. - details: A list of messages that carry the error details. There is a - common set of message types for APIs to use. - message: 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. - """ - @encoding.MapUnrecognizedFields('additionalProperties') - class DetailsValueListEntry(_messages.Message): - r"""A DetailsValueListEntry object. - - Messages: - AdditionalProperty: An additional property for a DetailsValueListEntry - object. - - Fields: - additionalProperties: Properties of the object. Contains field @type - with type URL. - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a DetailsValueListEntry object. - - Fields: - key: Name of the additional property. - value: A extra_types.JsonValue attribute. - """ - - key = _messages.StringField(1) - value = _messages.MessageField('extra_types.JsonValue', 2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - code = _messages.IntegerField(1, variant=_messages.Variant.INT32) - details = _messages.MessageField('DetailsValueListEntry', 2, repeated=True) - message = _messages.StringField(3) - - -class StorageSource(_messages.Message): - r"""Location of the source in an archive file in Google Cloud Storage. - - Fields: - bucket: Google Cloud Storage bucket containing the source (see [Bucket - Name Requirements](https://cloud.google.com/storage/docs/bucket- - naming#requirements)). - generation: Google Cloud Storage generation for the object. If the - generation is omitted, the latest generation will be used. - object: Google Cloud Storage object containing the source. This object - must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing - source to build. - """ - - bucket = _messages.StringField(1) - generation = _messages.IntegerField(2) - object = _messages.StringField(3) - - -class StorageSourceManifest(_messages.Message): - r"""Location of the source manifest in Google Cloud Storage. This feature is - in Preview; see description - [here](https://github.com/GoogleCloudPlatform/cloud- - builders/tree/master/gcs-fetcher). - - Fields: - bucket: Google Cloud Storage bucket containing the source manifest (see - [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket- - naming#requirements)). - generation: Google Cloud Storage generation for the object. If the - generation is omitted, the latest generation will be used. - object: Google Cloud Storage object containing the source manifest. This - object must be a JSON file. - """ - - bucket = _messages.StringField(1) - generation = _messages.IntegerField(2) - object = _messages.StringField(3) - - -class TimeSpan(_messages.Message): - r"""Start and end times for a build execution phase. - - Fields: - endTime: End of time span. - startTime: Start of time span. - """ - - endTime = _messages.StringField(1) - startTime = _messages.StringField(2) - - -class UpdateBitbucketServerConfigOperationMetadata(_messages.Message): - r"""Metadata for `UpdateBitbucketServerConfig` operation. - - Fields: - bitbucketServerConfig: The resource name of the BitbucketServerConfig to - be updated. Format: - `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. - completeTime: Time the operation was completed. - createTime: Time the operation was created. - """ - - bitbucketServerConfig = _messages.StringField(1) - completeTime = _messages.StringField(2) - createTime = _messages.StringField(3) - - -class UpdateGitHubEnterpriseConfigOperationMetadata(_messages.Message): - r"""Metadata for `UpdateGitHubEnterpriseConfig` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - githubEnterpriseConfig: The resource name of the GitHubEnterprise to be - updated. Format: - `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - githubEnterpriseConfig = _messages.StringField(3) - - -class UpdateGitLabConfigOperationMetadata(_messages.Message): - r"""Metadata for `UpdateGitLabConfig` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - gitlabConfig: The resource name of the GitLabConfig to be created. Format: - `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - gitlabConfig = _messages.StringField(3) - - -class UpdateWorkerPoolOperationMetadata(_messages.Message): - r"""Metadata for the `UpdateWorkerPool` operation. - - Fields: - completeTime: Time the operation was completed. - createTime: Time the operation was created. - workerPool: The resource name of the `WorkerPool` being updated. Format: - `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - """ - - completeTime = _messages.StringField(1) - createTime = _messages.StringField(2) - workerPool = _messages.StringField(3) - - -class Volume(_messages.Message): - r"""Volume describes a Docker container volume which is mounted into build - steps in order to persist files across build step execution. - - Fields: - name: Name of the volume to mount. Volume names must be unique per build - step and must be valid names for Docker volumes. Each named volume must - be used by at least two build steps. - path: Path at which to mount the volume. Paths must be absolute and cannot - conflict with other volume paths on the same build step or with certain - reserved volume paths. - """ - - name = _messages.StringField(1) - path = _messages.StringField(2) - - -class Warning(_messages.Message): - r"""A non-fatal problem encountered during the execution of the build. - - Enums: - PriorityValueValuesEnum: The priority for this warning. - - Fields: - priority: The priority for this warning. - text: Explanation of the warning generated. - """ - class PriorityValueValuesEnum(_messages.Enum): - r"""The priority for this warning. - - Values: - PRIORITY_UNSPECIFIED: Should not be used. - INFO: e.g. deprecation warnings and alternative feature highlights. - WARNING: e.g. automated detection of possible issues with the build. - ALERT: e.g. alerts that a feature used in the build is pending removal - """ - PRIORITY_UNSPECIFIED = 0 - INFO = 1 - WARNING = 2 - ALERT = 3 - - priority = _messages.EnumField('PriorityValueValuesEnum', 1) - text = _messages.StringField(2) - - -class WebhookConfig(_messages.Message): - r"""WebhookConfig describes the configuration of a trigger that creates a - build whenever a webhook is sent to a trigger's webhook URL. - - Enums: - StateValueValuesEnum: Potential issues with the underlying Pub/Sub - subscription configuration. Only populated on get requests. - - Fields: - secret: Required. Resource name for the secret required as a URL - parameter. - state: Potential issues with the underlying Pub/Sub subscription - configuration. Only populated on get requests. - """ - class StateValueValuesEnum(_messages.Enum): - r"""Potential issues with the underlying Pub/Sub subscription - configuration. Only populated on get requests. - - Values: - STATE_UNSPECIFIED: The webhook auth configuration not been checked. - OK: The auth configuration is properly setup. - SECRET_DELETED: The secret provided in auth_method has been deleted. - """ - STATE_UNSPECIFIED = 0 - OK = 1 - SECRET_DELETED = 2 - - secret = _messages.StringField(1) - state = _messages.EnumField('StateValueValuesEnum', 2) - - -class WorkerConfig(_messages.Message): - r"""Defines the configuration to be used for creating workers in the pool. - - Fields: - diskSizeGb: Size of the disk attached to the worker, in GB. See [Worker - pool config file](https://cloud.google.com/build/docs/private- - pools/worker-pool-config-file-schema). Specify a value of up to 1000. If - `0` is specified, Cloud Build will use a standard disk size. - machineType: Machine type of a worker, such as `e2-medium`. See [Worker - pool config file](https://cloud.google.com/build/docs/private- - pools/worker-pool-config-file-schema). If left blank, Cloud Build will - use a sensible default. - """ - - diskSizeGb = _messages.IntegerField(1) - machineType = _messages.StringField(2) - - -class WorkerPool(_messages.Message): - r"""Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool - of workers for general use and have no access to a project's private - network. By default, builds submitted to Cloud Build will use a worker from - this pool. If your build needs access to resources on a private network, - create and use a `WorkerPool` to run your builds. Private `WorkerPool`s give - your builds access to any single VPC network that you administer, including - any on-prem resources connected to that VPC network. For an overview of - private pools, see [Private pools - overview](https://cloud.google.com/build/docs/private-pools/private-pools- - overview). - - Enums: - StateValueValuesEnum: Output only. `WorkerPool` state. - - Messages: - AnnotationsValue: User specified annotations. See - https://google.aip.dev/128#annotations for more details such as format - and size limitations. - - Fields: - annotations: User specified annotations. See - https://google.aip.dev/128#annotations for more details such as format - and size limitations. - createTime: Output only. Time at which the request to create the - `WorkerPool` was received. - deleteTime: Output only. Time at which the request to delete the - `WorkerPool` was received. - displayName: A user-specified, human-readable name for the `WorkerPool`. - If provided, this value must be 1-63 characters. - etag: Output only. Checksum computed by the server. May be sent on update - and delete requests to ensure that the client has an up-to-date value - before proceeding. - name: Output only. The resource name of the `WorkerPool`, with format - `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The - value of `{worker_pool}` is provided by `worker_pool_id` in - `CreateWorkerPool` request and the value of `{location}` is determined - by the endpoint accessed. - privatePoolV1Config: Legacy Private Pool configuration. - state: Output only. `WorkerPool` state. - uid: Output only. A unique identifier for the `WorkerPool`. - updateTime: Output only. Time at which the request to update the - `WorkerPool` was received. - """ - class StateValueValuesEnum(_messages.Enum): - r"""Output only. `WorkerPool` state. - - Values: - STATE_UNSPECIFIED: State of the `WorkerPool` is unknown. - CREATING: `WorkerPool` is being created. - RUNNING: `WorkerPool` is running. - DELETING: `WorkerPool` is being deleted: cancelling builds and draining - workers. - DELETED: `WorkerPool` is deleted. - UPDATING: `WorkerPool` is being updated; new builds cannot be run. - """ - STATE_UNSPECIFIED = 0 - CREATING = 1 - RUNNING = 2 - DELETING = 3 - DELETED = 4 - UPDATING = 5 - - @encoding.MapUnrecognizedFields('additionalProperties') - class AnnotationsValue(_messages.Message): - r"""User specified annotations. See https://google.aip.dev/128#annotations - for more details such as format and size limitations. - - Messages: - AdditionalProperty: An additional property for a AnnotationsValue - object. - - Fields: - additionalProperties: Additional properties of type AnnotationsValue - """ - class AdditionalProperty(_messages.Message): - r"""An additional property for a AnnotationsValue object. - - Fields: - key: Name of the additional property. - value: A string attribute. - """ - - key = _messages.StringField(1) - value = _messages.StringField(2) - - additionalProperties = _messages.MessageField( - 'AdditionalProperty', 1, repeated=True) - - annotations = _messages.MessageField('AnnotationsValue', 1) - createTime = _messages.StringField(2) - deleteTime = _messages.StringField(3) - displayName = _messages.StringField(4) - etag = _messages.StringField(5) - name = _messages.StringField(6) - privatePoolV1Config = _messages.MessageField('PrivatePoolV1Config', 7) - state = _messages.EnumField('StateValueValuesEnum', 8) - uid = _messages.StringField(9) - updateTime = _messages.StringField(10) - - -encoding.AddCustomJsonFieldMapping( - StandardQueryParameters, 'f__xgafv', '$.xgafv') -encoding.AddCustomJsonEnumMapping( - StandardQueryParameters.FXgafvValueValuesEnum, '_1', '1') -encoding.AddCustomJsonEnumMapping( - StandardQueryParameters.FXgafvValueValuesEnum, '_2', '2') diff --git a/sdks/python/apache_beam/runners/portability/sdk_container_builder.py b/sdks/python/apache_beam/runners/portability/sdk_container_builder.py index 589963742c57..bb5bfd48949d 100644 --- a/sdks/python/apache_beam/runners/portability/sdk_container_builder.py +++ b/sdks/python/apache_beam/runners/portability/sdk_container_builder.py @@ -41,14 +41,12 @@ from apache_beam import version as beam_version from apache_beam.internal.gcp.auth import get_service_credentials -from apache_beam.internal.http_client import get_new_http from apache_beam.options.pipeline_options import GoogleCloudOptions from apache_beam.options.pipeline_options import PipelineOptions # pylint: disable=unused-import from apache_beam.options.pipeline_options import SetupOptions from apache_beam.options.pipeline_options import WorkerOptions from apache_beam.portability import common_urns from apache_beam.portability.api import beam_runner_api_pb2 -from apache_beam.runners.dataflow.internal.clients import cloudbuild from apache_beam.runners.portability.stager import Stager from apache_beam.utils import plugin @@ -214,11 +212,10 @@ def __init__(self, options): from apache_beam.io.gcp.gcsio import create_storage_client self._storage_client = create_storage_client( options, not self._google_cloud_options.no_auth) - self._cloudbuild_client = cloudbuild.CloudbuildV1( - credentials=credentials, - get_credentials=(not self._google_cloud_options.no_auth), - http=get_new_http(), - response_encoding='utf8') + + from google.cloud.devtools.cloudbuild_v1.services import cloud_build + self._cloudbuild_client = cloud_build.CloudBuildClient( + credentials=credentials) if not self._docker_registry_push_url: self._docker_registry_push_url = ( 'gcr.io/%s/prebuilt_beam_sdk' % self._google_cloud_options.project) @@ -228,6 +225,7 @@ def _builder_key(cls): return 'cloud_build' def _invoke_docker_build_and_push(self, container_image_name): + from google.cloud.devtools.cloudbuild_v1 import types as cloud_build_types project_id = self._google_cloud_options.project temp_location = self._google_cloud_options.temp_location # google cloud build service expects all the build source file to be @@ -243,12 +241,12 @@ def _invoke_docker_build_and_push(self, container_image_name): temp_location, '%s-%s.tgz' % (SOURCE_FOLDER, container_image_tag)) self._upload_to_gcs(tarball_path, gcs_location) - build = cloudbuild.Build() + build = cloud_build_types.Build() if self._cloud_build_machine_type: - build.options = cloudbuild.BuildOptions() + build.options = cloud_build_types.BuildOptions() build.options.machineType = self._cloud_build_machine_type build.steps = [] - step = cloudbuild.BuildStep() + step = cloud_build_types.BuildStep() step.name = 'quay.io/buildah/stable:latest' step.entrypoint = 'sh' step.args = [ @@ -263,8 +261,8 @@ def _invoke_docker_build_and_push(self, container_image_name): step.dir = SOURCE_FOLDER build.steps.append(step) - source = cloudbuild.Source() - source.storageSource = cloudbuild.StorageSource() + source = cloud_build_types.Source() + source.storageSource = cloud_build_types.StorageSource() gcs_bucket, gcs_object = self._get_gcs_bucket_and_name(gcs_location) source.storageSource.bucket = os.path.join(gcs_bucket) source.storageSource.object = gcs_object @@ -274,9 +272,9 @@ def _invoke_docker_build_and_push(self, container_image_name): now = time.time() # operation = client.create_build(project_id=project_id, build=build) - request = cloudbuild.CloudbuildProjectsBuildsCreateRequest( - projectId=project_id, build=build) - build = self._cloudbuild_client.projects_builds.Create(request) + request = cloud_build_types.CreateBuildRequest( + project_id=project_id, build=build) + build = self._cloudbuild_client.create_build(request) build_id, log_url = self._get_cloud_build_id_and_log_url(build.metadata) _LOGGER.info( 'Building sdk container with Google Cloud Build, this may ' @@ -284,18 +282,17 @@ def _invoke_docker_build_and_push(self, container_image_name): # block until build finish, if build fails exception will be raised and # stops the job submission. - response = self._cloudbuild_client.projects_builds.Get( - cloudbuild.CloudbuildProjectsBuildsGetRequest( - id=build_id, projectId=project_id)) - while response.status in [cloudbuild.Build.StatusValueValuesEnum.QUEUED, - cloudbuild.Build.StatusValueValuesEnum.PENDING, - cloudbuild.Build.StatusValueValuesEnum.WORKING]: + response = self._cloudbuild_client.get_build( + request=cloud_build_types.GetBuildRequest( + id=build_id, project_id=project_id)) + while response.status in [cloud_build_types.Build.Status.QUEUED, + cloud_build_types.Build.Status.PENDING, + cloud_build_types.Build.Status.WORKING]: time.sleep(10) - response = self._cloudbuild_client.projects_builds.Get( - cloudbuild.CloudbuildProjectsBuildsGetRequest( - id=build_id, projectId=project_id)) + response = self._cloudbuild_client.get_build( + cloud_build_types.GetBuildRequest(id=build_id, project_id=project_id)) - if response.status != cloudbuild.Build.StatusValueValuesEnum.SUCCESS: + if response.status != cloud_build_types.Build.Status.SUCCESS: raise RuntimeError( 'Failed to build python sdk container image on google cloud build, ' 'please check build log for error.') @@ -350,16 +347,15 @@ def _make_tarfile(output_filename, source_dir): @staticmethod def _get_cloud_build_machine_type_enum(machine_type: str): + from google.cloud.devtools.cloudbuild_v1 import types as cloud_build_types if not machine_type: return None mappings = { - 'n1-highcpu-8': cloudbuild.BuildOptions.MachineTypeValueValuesEnum. - N1_HIGHCPU_8, - 'n1-highcpu-32': cloudbuild.BuildOptions.MachineTypeValueValuesEnum. + 'n1-highcpu-8': cloud_build_types.BuildOptions.MachineType.N1_HIGHCPU_8, + 'n1-highcpu-32': cloud_build_types.BuildOptions.MachineType. N1_HIGHCPU_32, - 'e2-highcpu-8': cloudbuild.BuildOptions.MachineTypeValueValuesEnum. - E2_HIGHCPU_8, - 'e2-highcpu-32': cloudbuild.BuildOptions.MachineTypeValueValuesEnum. + 'e2-highcpu-8': cloud_build_types.BuildOptions.MachineType.E2_HIGHCPU_8, + 'e2-highcpu-32': cloud_build_types.BuildOptions.MachineType. E2_HIGHCPU_32 } if machine_type.lower() in mappings: diff --git a/sdks/python/container/ml/py310/base_image_requirements.txt b/sdks/python/container/ml/py310/base_image_requirements.txt index 59965a871781..c39c24676939 100644 --- a/sdks/python/container/ml/py310/base_image_requirements.txt +++ b/sdks/python/container/ml/py310/base_image_requirements.txt @@ -43,7 +43,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -65,7 +65,7 @@ fsspec==2026.1.0 future==1.0.0 gast==0.7.0 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -73,6 +73,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -116,7 +117,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -190,7 +191,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 @@ -219,7 +220,7 @@ termcolor==3.3.0 testcontainers==4.14.0 threadpoolctl==3.6.0 tokenizers==0.21.4 -tomli==2.3.0 +tomli==2.4.0 torch==2.8.0+cpu tqdm==4.67.1 transformers==4.55.4 diff --git a/sdks/python/container/ml/py310/gpu_image_requirements.txt b/sdks/python/container/ml/py310/gpu_image_requirements.txt index 5046c78442d1..a81dde4ae4bb 100644 --- a/sdks/python/container/ml/py310/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py310/gpu_image_requirements.txt @@ -47,7 +47,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 cloudpickle==3.1.2 compressed-tensors==0.10.2 crcmod==1.7 @@ -68,7 +68,7 @@ exceptiongroup==1.3.1 execnet==2.1.2 fastapi==0.128.0 fastapi-cli==0.0.20 -fastapi-cloud-cli==0.9.0 +fastapi-cloud-cli==0.10.1 fastar==0.8.0 fastavro==1.12.1 fasteners==0.20 @@ -82,7 +82,7 @@ future==1.0.0 gast==0.7.0 gguf==0.17.1 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -90,6 +90,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -135,7 +136,7 @@ importlib_metadata==8.7.1 iniconfig==2.3.0 interegular==0.3.3 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -211,7 +212,7 @@ pillow==12.1.0 pip==25.3 pluggy==1.6.0 prometheus-fastapi-instrumentator==7.1.0 -prometheus_client==0.23.1 +prometheus_client==0.24.1 propcache==0.4.1 proto-plus==1.27.0 protobuf==5.29.5 @@ -249,7 +250,7 @@ PyYAML==6.0.3 pyzmq==27.1.0 ray==2.53.0 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 @@ -288,7 +289,7 @@ testcontainers==4.14.0 threadpoolctl==3.6.0 tiktoken==0.12.0 tokenizers==0.21.4 -tomli==2.3.0 +tomli==2.4.0 torch==2.7.1 torchaudio==2.7.1 torchvision==0.22.1 diff --git a/sdks/python/container/ml/py311/base_image_requirements.txt b/sdks/python/container/ml/py311/base_image_requirements.txt index 33e462ff4b2e..92ca61ac7473 100644 --- a/sdks/python/container/ml/py311/base_image_requirements.txt +++ b/sdks/python/container/ml/py311/base_image_requirements.txt @@ -42,7 +42,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -63,7 +63,7 @@ fsspec==2026.1.0 future==1.0.0 gast==0.7.0 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -71,6 +71,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -114,7 +115,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -123,7 +124,7 @@ Js2Py==0.74 jsonpickle==3.4.2 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 -keras==3.13.0 +keras==3.13.1 keyring==25.7.0 keyrings.google-artifactregistry-auth==1.1.2 libclang==18.1.1 @@ -188,7 +189,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 diff --git a/sdks/python/container/ml/py311/gpu_image_requirements.txt b/sdks/python/container/ml/py311/gpu_image_requirements.txt index 124dd8622942..9e199267d522 100644 --- a/sdks/python/container/ml/py311/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py311/gpu_image_requirements.txt @@ -46,7 +46,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 cloudpickle==3.1.2 compressed-tensors==0.10.2 crcmod==1.7 @@ -66,7 +66,7 @@ envoy-data-plane==0.2.6 execnet==2.1.2 fastapi==0.128.0 fastapi-cli==0.0.20 -fastapi-cloud-cli==0.9.0 +fastapi-cloud-cli==0.10.1 fastar==0.8.0 fastavro==1.12.1 fasteners==0.20 @@ -80,7 +80,7 @@ future==1.0.0 gast==0.7.0 gguf==0.17.1 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -88,6 +88,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -133,7 +134,7 @@ importlib_metadata==8.7.1 iniconfig==2.3.0 interegular==0.3.3 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -142,7 +143,7 @@ joblib==1.5.3 jsonpickle==3.4.2 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 -keras==3.13.0 +keras==3.13.1 keyring==25.7.0 keyrings.google-artifactregistry-auth==1.1.2 lark==1.2.2 @@ -209,7 +210,7 @@ pillow==12.1.0 pip==25.3 pluggy==1.6.0 prometheus-fastapi-instrumentator==7.1.0 -prometheus_client==0.23.1 +prometheus_client==0.24.1 propcache==0.4.1 proto-plus==1.27.0 protobuf==5.29.5 @@ -247,7 +248,7 @@ PyYAML==6.0.3 pyzmq==27.1.0 ray==2.53.0 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 diff --git a/sdks/python/container/ml/py312/base_image_requirements.txt b/sdks/python/container/ml/py312/base_image_requirements.txt index 15e9382b217e..abe7b521aaf3 100644 --- a/sdks/python/container/ml/py312/base_image_requirements.txt +++ b/sdks/python/container/ml/py312/base_image_requirements.txt @@ -41,7 +41,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -62,7 +62,7 @@ fsspec==2026.1.0 future==1.0.0 gast==0.7.0 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -70,6 +70,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -113,7 +114,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -121,7 +122,7 @@ joblib==1.5.3 jsonpickle==3.4.2 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 -keras==3.13.0 +keras==3.13.1 keyring==25.7.0 keyrings.google-artifactregistry-auth==1.1.2 libclang==18.1.1 @@ -185,7 +186,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 diff --git a/sdks/python/container/ml/py312/gpu_image_requirements.txt b/sdks/python/container/ml/py312/gpu_image_requirements.txt index 6067f74349f0..d76b210b7bec 100644 --- a/sdks/python/container/ml/py312/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py312/gpu_image_requirements.txt @@ -45,7 +45,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 cloudpickle==3.1.2 compressed-tensors==0.10.2 crcmod==1.7 @@ -65,7 +65,7 @@ envoy-data-plane==0.2.6 execnet==2.1.2 fastapi==0.128.0 fastapi-cli==0.0.20 -fastapi-cloud-cli==0.9.0 +fastapi-cloud-cli==0.10.1 fastar==0.8.0 fastavro==1.12.1 fasteners==0.20 @@ -79,7 +79,7 @@ future==1.0.0 gast==0.7.0 gguf==0.17.1 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -87,6 +87,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -132,7 +133,7 @@ importlib_metadata==8.7.1 iniconfig==2.3.0 interegular==0.3.3 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -141,7 +142,7 @@ joblib==1.5.3 jsonpickle==3.4.2 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 -keras==3.13.0 +keras==3.13.1 keyring==25.7.0 keyrings.google-artifactregistry-auth==1.1.2 lark==1.2.2 @@ -208,7 +209,7 @@ pillow==12.1.0 pip==25.3 pluggy==1.6.0 prometheus-fastapi-instrumentator==7.1.0 -prometheus_client==0.23.1 +prometheus_client==0.24.1 propcache==0.4.1 proto-plus==1.27.0 protobuf==5.29.5 @@ -246,7 +247,7 @@ PyYAML==6.0.3 pyzmq==27.1.0 ray==2.53.0 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 diff --git a/sdks/python/container/ml/py313/base_image_requirements.txt b/sdks/python/container/ml/py313/base_image_requirements.txt index bf9589c73d05..649ec370c2e1 100644 --- a/sdks/python/container/ml/py313/base_image_requirements.txt +++ b/sdks/python/container/ml/py313/base_image_requirements.txt @@ -41,7 +41,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -69,6 +69,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -112,7 +113,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -120,7 +121,7 @@ joblib==1.5.3 jsonpickle==3.4.2 jsonschema==4.26.0 jsonschema-specifications==2025.9.1 -keras==3.13.0 +keras==3.13.1 keyring==25.7.0 keyrings.google-artifactregistry-auth==1.1.2 libclang==18.1.1 @@ -158,7 +159,7 @@ pip==25.3 pluggy==1.6.0 propcache==0.4.1 proto-plus==1.27.0 -protobuf==6.33.3 +protobuf==6.33.4 psycopg2-binary==2.9.11 pyarrow==18.1.0 pyarrow-hotfix==0.7 @@ -183,7 +184,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rich==14.2.0 diff --git a/sdks/python/container/py310/base_image_requirements.txt b/sdks/python/container/py310/base_image_requirements.txt index 76772ffbb79e..aa8cf5f1fa45 100644 --- a/sdks/python/container/py310/base_image_requirements.txt +++ b/sdks/python/container/py310/base_image_requirements.txt @@ -41,7 +41,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -59,7 +59,7 @@ freezegun==1.5.5 frozenlist==1.8.0 future==1.0.0 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -67,6 +67,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -106,7 +107,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -168,7 +169,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rpds-py==0.30.0 @@ -188,7 +189,7 @@ sqlparse==0.5.5 tenacity==8.5.0 testcontainers==4.14.0 threadpoolctl==3.6.0 -tomli==2.3.0 +tomli==2.4.0 tqdm==4.67.1 typing-inspection==0.4.2 typing_extensions==4.15.0 diff --git a/sdks/python/container/py311/base_image_requirements.txt b/sdks/python/container/py311/base_image_requirements.txt index 2a1b53d96ab4..c30f4f54e336 100644 --- a/sdks/python/container/py311/base_image_requirements.txt +++ b/sdks/python/container/py311/base_image_requirements.txt @@ -40,7 +40,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -57,7 +57,7 @@ freezegun==1.5.5 frozenlist==1.8.0 future==1.0.0 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -65,6 +65,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -104,7 +105,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -166,7 +167,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rpds-py==0.30.0 diff --git a/sdks/python/container/py312/base_image_requirements.txt b/sdks/python/container/py312/base_image_requirements.txt index 356f224d854a..55d08ab4d285 100644 --- a/sdks/python/container/py312/base_image_requirements.txt +++ b/sdks/python/container/py312/base_image_requirements.txt @@ -39,7 +39,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -56,7 +56,7 @@ freezegun==1.5.5 frozenlist==1.8.0 future==1.0.0 google-api-core==2.29.0 -google-api-python-client==2.187.0 +google-api-python-client==2.188.0 google-apitools==0.5.31 google-auth==2.47.0 google-auth-httplib2==0.2.1 @@ -64,6 +64,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -103,7 +104,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -163,7 +164,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rpds-py==0.30.0 diff --git a/sdks/python/container/py313/base_image_requirements.txt b/sdks/python/container/py313/base_image_requirements.txt index 04ec48e1efbc..7828ad0a61cb 100644 --- a/sdks/python/container/py313/base_image_requirements.txt +++ b/sdks/python/container/py313/base_image_requirements.txt @@ -39,7 +39,7 @@ certifi==2026.1.4 cffi==2.0.0 charset-normalizer==3.4.4 click==8.3.1 -cloud-sql-python-connector==1.19.0 +cloud-sql-python-connector==1.20.0 crcmod==1.7 cryptography==46.0.3 Cython==3.2.4 @@ -63,6 +63,7 @@ google-cloud-aiplatform==1.133.0 google-cloud-bigquery==3.40.0 google-cloud-bigquery-storage==2.36.0 google-cloud-bigtable==2.35.0 +google-cloud-build==3.35.0 google-cloud-core==2.5.0 google-cloud-datastore==2.23.0 google-cloud-dlp==3.33.0 @@ -102,7 +103,7 @@ idna==3.11 importlib_metadata==8.7.1 iniconfig==2.3.0 jaraco.classes==3.4.0 -jaraco.context==6.0.2 +jaraco.context==6.1.0 jaraco.functools==4.4.0 jeepney==0.9.0 Jinja2==3.1.6 @@ -136,7 +137,7 @@ pip==25.3 pluggy==1.6.0 propcache==0.4.1 proto-plus==1.27.0 -protobuf==6.33.3 +protobuf==6.33.4 psycopg2-binary==2.9.11 pyarrow==18.1.0 pyarrow-hotfix==0.7 @@ -161,7 +162,7 @@ python-tds==1.17.1 pytz==2025.2 PyYAML==6.0.3 referencing==0.37.0 -regex==2025.11.3 +regex==2026.1.14 requests==2.32.5 requests-mock==1.12.1 rpds-py==0.30.0 diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 261d079f1462..bf530421bc79 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -486,6 +486,7 @@ def get_portability_package_data(): 'google-cloud-bigquery-storage>=2.6.3,<3', 'google-cloud-core>=2.0.0,<3', 'google-cloud-bigtable>=2.19.0,<3', + 'google-cloud-build>=3.35.0,<4', 'google-cloud-spanner>=3.0.0,<4', # GCP Packages required by ML functionality 'google-cloud-dlp>=3.0.0,<4',