Types for Google Cloud Devtools Cloudbuild v2 API¶
- class google.cloud.devtools.cloudbuild_v2.types.BatchCreateRepositoriesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for creating repositoritories in batch.
- parent¶
Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.
- Type
- requests¶
Required. The request messages specifying the repositories to create.
- Type
MutableSequence[google.cloud.devtools.cloudbuild_v2.types.CreateRepositoryRequest]
- class google.cloud.devtools.cloudbuild_v2.types.BatchCreateRepositoriesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for response of creating repositories in batch.
- repositories¶
Repository resources created.
- Type
MutableSequence[google.cloud.devtools.cloudbuild_v2.types.Repository]
- class google.cloud.devtools.cloudbuild_v2.types.BitbucketCloudConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for connections to Bitbucket Cloud.
- workspace¶
Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
- Type
- webhook_secret_secret_version¶
Required. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
.- Type
- read_authorizer_credential¶
Required. An access token with the
repository
access. It can be either a workspace, project or repository access token. It’s recommended to use a system account to generate the credentials.
- authorizer_credential¶
Required. An access token with the
webhook
,repository
,repository:admin
andpullrequest
scope access. It can be either a workspace, project or repository access token. It’s recommended to use a system account to generate these credentials.
- class google.cloud.devtools.cloudbuild_v2.types.BitbucketDataCenterConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for connections to Bitbucket Data Center.
- host_uri¶
Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.
- Type
- webhook_secret_secret_version¶
Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as
projects/*/secrets/*/versions/*
.- Type
- read_authorizer_credential¶
Required. A http access token with the
REPO_READ
access.
- authorizer_credential¶
Required. A http access token with the
REPO_ADMIN
scope access.
- service_directory_config¶
Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.
- class google.cloud.devtools.cloudbuild_v2.types.Connection(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center, Bitbucket Cloud or GitLab.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- name¶
Immutable. The resource name of the connection, in the format
projects/{project}/locations/{location}/connections/{connection_id}
.- Type
- create_time¶
Output only. Server assigned timestamp for when the connection was created.
- update_time¶
Output only. Server assigned timestamp for when the connection was updated.
- github_config¶
Configuration for connections to github.com.
This field is a member of oneof
connection_config
.
- github_enterprise_config¶
Configuration for connections to an instance of GitHub Enterprise.
This field is a member of oneof
connection_config
.
- gitlab_config¶
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
This field is a member of oneof
connection_config
.
- bitbucket_data_center_config¶
Configuration for connections to Bitbucket Data Center.
This field is a member of oneof
connection_config
.
- bitbucket_cloud_config¶
Configuration for connections to Bitbucket Cloud.
This field is a member of oneof
connection_config
.
- installation_state¶
Output only. Installation state of the Connection.
- disabled¶
If disabled is set to true, functionality is disabled for this connection. Repository based API methods and webhooks processing for repositories in this connection will be disabled.
- Type
- reconciling¶
Output only. Set to true when the connection is being set up or updated in the background.
- Type
- etag¶
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Type
- class AnnotationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.devtools.cloudbuild_v2.types.CreateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for creating a Connection
- parent¶
Required. Project and location where the connection will be created. Format:
projects/*/locations/*
.- Type
- connection¶
Required. The Connection to create.
- class google.cloud.devtools.cloudbuild_v2.types.CreateRepositoryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for creating a Repository.
- parent¶
Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.
- Type
- repository¶
Required. The repository to create.
- class google.cloud.devtools.cloudbuild_v2.types.DeleteConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for deleting a Connection.
- name¶
Required. The name of the Connection to delete. Format:
projects/*/locations/*/connections/*
.- Type
- etag¶
The current etag of the connection. If an etag is provided and does not match the current etag of the connection, deletion will be blocked and an ABORTED error will be returned.
- Type
- class google.cloud.devtools.cloudbuild_v2.types.DeleteRepositoryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for deleting a Repository.
- name¶
Required. The name of the Repository to delete. Format:
projects/*/locations/*/connections/*/repositories/*
.- Type
- etag¶
The current etag of the repository. If an etag is provided and does not match the current etag of the repository, deletion will be blocked and an ABORTED error will be returned.
- Type
- class google.cloud.devtools.cloudbuild_v2.types.FetchGitRefsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request for fetching git refs
- repository¶
Required. The resource name of the repository in the format
projects/*/locations/*/connections/*/repositories/*
.- Type
- ref_type¶
Type of refs to fetch
- class RefType(value)[source]¶
Bases:
proto.enums.Enum
Type of refs
- Values:
- REF_TYPE_UNSPECIFIED (0):
No type specified.
- TAG (1):
To fetch tags.
- BRANCH (2):
To fetch branches.
- class google.cloud.devtools.cloudbuild_v2.types.FetchGitRefsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response for fetching git refs
- class google.cloud.devtools.cloudbuild_v2.types.FetchLinkableRepositoriesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Request message for FetchLinkableRepositories.
- connection¶
Required. The name of the Connection. Format:
projects/*/locations/*/connections/*
.- Type
- class google.cloud.devtools.cloudbuild_v2.types.FetchLinkableRepositoriesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Response message for FetchLinkableRepositories.
- repositories¶
repositories ready to be created.
- Type
MutableSequence[google.cloud.devtools.cloudbuild_v2.types.Repository]
- class google.cloud.devtools.cloudbuild_v2.types.FetchReadTokenRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for fetching SCM read token.
- class google.cloud.devtools.cloudbuild_v2.types.FetchReadTokenResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for responding to get read token.
- expiration_time¶
Expiration timestamp. Can be empty if unknown or non-expiring.
- class google.cloud.devtools.cloudbuild_v2.types.FetchReadWriteTokenRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for fetching SCM read/write token.
- class google.cloud.devtools.cloudbuild_v2.types.FetchReadWriteTokenResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for responding to get read/write token.
- expiration_time¶
Expiration timestamp. Can be empty if unknown or non-expiring.
- class google.cloud.devtools.cloudbuild_v2.types.GetConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for getting the details of a Connection.
- class google.cloud.devtools.cloudbuild_v2.types.GetRepositoryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for getting the details of a Repository.
- class google.cloud.devtools.cloudbuild_v2.types.GitHubConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for connections to github.com.
- authorizer_credential¶
OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
- class google.cloud.devtools.cloudbuild_v2.types.GitHubEnterpriseConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for connections to an instance of GitHub Enterprise.
- private_key_secret_version¶
SecretManager resource containing the private key of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.- Type
- webhook_secret_secret_version¶
SecretManager resource containing the webhook secret of the GitHub App, formatted as
projects/*/secrets/*/versions/*
.- Type
- service_directory_config¶
Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.
- class google.cloud.devtools.cloudbuild_v2.types.GitLabConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
- host_uri¶
The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
- Type
- webhook_secret_secret_version¶
Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as
projects/*/secrets/*/versions/*
.- Type
- read_authorizer_credential¶
Required. A GitLab personal access token with the minimum
read_api
scope access.
- authorizer_credential¶
Required. A GitLab personal access token with the
api
scope access.
- service_directory_config¶
Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.
- class google.cloud.devtools.cloudbuild_v2.types.InstallationState(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes stage and necessary actions to be taken by the user to complete the installation. Used for GitHub and GitHub Enterprise based connections.
- stage¶
Output only. Current step of the installation process.
- message¶
Output only. Message of what the user should do next to continue the installation. Empty string if the installation is already complete.
- Type
- action_uri¶
Output only. Link to follow for next action. Empty string if the installation is already complete.
- Type
- class Stage(value)[source]¶
Bases:
proto.enums.Enum
Stage of the installation process.
- Values:
- STAGE_UNSPECIFIED (0):
No stage specified.
- PENDING_CREATE_APP (1):
Only for GitHub Enterprise. An App creation has been requested. The user needs to confirm the creation in their GitHub enterprise host.
- PENDING_USER_OAUTH (2):
User needs to authorize the GitHub (or Enterprise) App via OAuth.
- PENDING_INSTALL_APP (3):
User needs to follow the link to install the GitHub (or Enterprise) App.
- COMPLETE (10):
Installation process has been completed.
- class google.cloud.devtools.cloudbuild_v2.types.ListConnectionsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for requesting list of Connections.
- parent¶
Required. The parent, which owns this collection of Connections. Format:
projects/*/locations/*
.- Type
- class google.cloud.devtools.cloudbuild_v2.types.ListConnectionsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for response to listing Connections.
- connections¶
The list of Connections.
- Type
MutableSequence[google.cloud.devtools.cloudbuild_v2.types.Connection]
- class google.cloud.devtools.cloudbuild_v2.types.ListRepositoriesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for requesting list of Repositories.
- parent¶
Required. The parent, which owns this collection of Repositories. Format:
projects/*/locations/*/connections/*
.- Type
- class google.cloud.devtools.cloudbuild_v2.types.ListRepositoriesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for response to listing Repositories.
- repositories¶
The list of Repositories.
- Type
MutableSequence[google.cloud.devtools.cloudbuild_v2.types.Repository]
- class google.cloud.devtools.cloudbuild_v2.types.OAuthCredential(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
- oauth_token_secret_version¶
A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
.- Type
- class google.cloud.devtools.cloudbuild_v2.types.OperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents the metadata of the long-running operation.
- create_time¶
Output only. The time the operation was created.
- end_time¶
Output only. The time the operation finished running.
- requested_cancellation¶
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][google.rpc.Status.code] of 1, corresponding to
Code.CANCELLED
.- Type
- class google.cloud.devtools.cloudbuild_v2.types.ProcessWebhookRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
RPC request object accepted by the ProcessWebhook RPC method.
- parent¶
Required. Project and location where the webhook will be received. Format:
projects/*/locations/*
.- Type
- body¶
HTTP request body.
- Type
google.api.httpbody_pb2.HttpBody
- class google.cloud.devtools.cloudbuild_v2.types.Repository(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A repository associated to a parent connection.
- name¶
Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
.- Type
- create_time¶
Output only. Server assigned timestamp for when the connection was created.
- update_time¶
Output only. Server assigned timestamp for when the connection was updated.
- etag¶
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Type
- class AnnotationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.devtools.cloudbuild_v2.types.RunWorkflowCustomOperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents the custom metadata of the RunWorkflow long-running operation.
- create_time¶
Output only. The time the operation was created.
- end_time¶
Output only. The time the operation finished running.
- requested_cancellation¶
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][google.rpc.Status.code] of 1, corresponding to
Code.CANCELLED
.- Type
- class google.cloud.devtools.cloudbuild_v2.types.ServiceDirectoryConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ServiceDirectoryConfig represents Service Directory configuration for a connection.
- class google.cloud.devtools.cloudbuild_v2.types.UpdateConnectionRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Message for updating a Connection.
- connection¶
Required. The Connection to update.
- update_mask¶
The list of fields to be updated.
- allow_missing¶
If set to true, and the connection is not found a new connection will be created. In this situation
update_mask
is ignored. The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties).- Type
- class google.cloud.devtools.cloudbuild_v2.types.UserCredential(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents a personal access token that authorized the Connection, and associated metadata.
- user_token_secret_version¶
Required. A SecretManager resource containing the user token that authorizes the Cloud Build connection. Format:
projects/*/secrets/*/versions/*
.- Type