GoogleApi.CloudBuild.V1.Api.Projects (google_api_cloud_build v0.34.0) View Source
API calls for all endpoints tagged Projects
.
Link to this section Summary
Functions
Cancels a build in progress.
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
).
Returns information about a previously requested build. The Build
that is returned includes its status (such as SUCCESS
, FAILURE
, or WORKING
), and timing information.
Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.
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.
Cancels a build in progress.
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
).
Returns information about a previously requested build. The Build
that is returned includes its status (such as SUCCESS
, FAILURE
, or WORKING
), and timing information.
Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.
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.
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
.
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.
Creates a new BuildTrigger
. This API is experimental.
Deletes a BuildTrigger
by its project ID and trigger ID. This API is experimental.
Returns information about a BuildTrigger
. This API is experimental.
Lists existing BuildTrigger
s. This API is experimental.
Updates a BuildTrigger
by its project ID and trigger ID. This API is experimental.
Runs a BuildTrigger
at a particular source revision.
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
Link to this section Functions
cloudbuild_projects_builds_cancel(connection, project_id, id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_builds_cancel( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Build.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Cancels a build in progress.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project. -
id
(type:String.t
) - Required. ID of the build. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.CancelBuildRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Build{}}
on success -
{:error, info}
on failure
cloudbuild_projects_builds_create(connection, project_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_builds_create( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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
).
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:parent
(type:String.t
) - The parent resource where this build will be created. Format:projects/{project}/locations/{location}
-
:body
(type:GoogleApi.CloudBuild.V1.Model.Build.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}}
on success -
{:error, info}
on failure
cloudbuild_projects_builds_get(connection, project_id, id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_builds_get( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Build.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Returns information about a previously requested build. The Build
that is returned includes its status (such as SUCCESS
, FAILURE
, or WORKING
), and timing information.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project. -
id
(type:String.t
) - Required. ID of the build. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:name
(type:String.t
) - The name of theBuild
to retrieve. Format:projects/{project}/locations/{location}/builds/{build}
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Build{}}
on success -
{:error, info}
on failure
cloudbuild_projects_builds_list(connection, project_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_builds_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.ListBuildsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:filter
(type:String.t
) - The raw filter text to constrain the results. -
:pageSize
(type:integer()
) - Number of results to return in the list. -
:pageToken
(type:String.t
) - 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
(type:String.t
) - The parent of the collection ofBuilds
. Format:projects/{project}/locations/location
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.ListBuildsResponse{}}
on success -
{:error, info}
on failure
cloudbuild_projects_builds_retry(connection, project_id, id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_builds_retry( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project. -
id
(type:String.t
) - Required. Build ID of the original build. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.RetryBuildRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_builds_cancel(connection, projects_id, locations_id, builds_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_builds_cancel( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Build.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Cancels a build in progress.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofname
. The name of theBuild
to cancel. Format:projects/{project}/locations/{location}/builds/{build}
-
locations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
builds_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.CancelBuildRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Build{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_builds_create(connection, projects_id, locations_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_builds_create( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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
).
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofparent
. The parent resource where this build will be created. Format:projects/{project}/locations/{location}
-
locations_id
(type:String.t
) - Part ofparent
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:projectId
(type:String.t
) - Required. ID of the project. -
:body
(type:GoogleApi.CloudBuild.V1.Model.Build.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_builds_get(connection, projects_id, locations_id, builds_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_builds_get( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Build.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Returns information about a previously requested build. The Build
that is returned includes its status (such as SUCCESS
, FAILURE
, or WORKING
), and timing information.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofname
. The name of theBuild
to retrieve. Format:projects/{project}/locations/{location}/builds/{build}
-
locations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
builds_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:id
(type:String.t
) - Required. ID of the build. -
:projectId
(type:String.t
) - Required. ID of the project.
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Build{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_builds_list(connection, projects_id, locations_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_builds_list( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.ListBuildsResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofparent
. The parent of the collection ofBuilds
. Format:projects/{project}/locations/location
-
locations_id
(type:String.t
) - Part ofparent
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:filter
(type:String.t
) - The raw filter text to constrain the results. -
:pageSize
(type:integer()
) - Number of results to return in the list. -
:pageToken
(type:String.t
) - 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. -
:projectId
(type:String.t
) - Required. ID of the project.
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.ListBuildsResponse{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_builds_retry(connection, projects_id, locations_id, builds_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_builds_retry( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofname
. The name of theBuild
to retry. Format:projects/{project}/locations/{location}/builds/{build}
-
locations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
builds_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.RetryBuildRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_operations_cancel(connection, projects_id, locations_id, operations_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_operations_cancel( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Empty.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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
.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofname
. The name of the operation resource to be cancelled. -
locations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
operations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.CancelOperationRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Empty{}}
on success -
{:error, info}
on failure
cloudbuild_projects_locations_operations_get(connection, projects_id, locations_id, operations_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_locations_operations_get( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofname
. The name of the operation resource. -
locations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
operations_id
(type:String.t
) - Part ofname
. See documentation ofprojectsId
. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_create(connection, project_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_create( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.BuildTrigger.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Creates a new BuildTrigger
. This API is experimental.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project for which to configure automatic builds. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.BuildTrigger.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.BuildTrigger{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_delete(connection, project_id, trigger_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_delete( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Empty.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Deletes a BuildTrigger
by its project ID and trigger ID. This API is experimental.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project that owns the trigger. -
trigger_id
(type:String.t
) - Required. ID of theBuildTrigger
to delete. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Empty{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_get(connection, project_id, trigger_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_get( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.BuildTrigger.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Returns information about a BuildTrigger
. This API is experimental.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project that owns the trigger. -
trigger_id
(type:String.t
) - Required. Identifier (id
orname
) of theBuildTrigger
to get. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.BuildTrigger{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_list(connection, project_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.ListBuildTriggersResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Lists existing BuildTrigger
s. This API is experimental.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project for which to list BuildTriggers. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:pageSize
(type:integer()
) - Number of results to return in the list. -
:pageToken
(type:String.t
) - Token to provide to skip to a particular spot in the list.
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.ListBuildTriggersResponse{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_patch(connection, project_id, trigger_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_patch( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.BuildTrigger.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Updates a BuildTrigger
by its project ID and trigger ID. This API is experimental.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project that owns the trigger. -
trigger_id
(type:String.t
) - Required. ID of theBuildTrigger
to update. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.BuildTrigger.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.BuildTrigger{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_run(connection, project_id, trigger_id, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_run( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Runs a BuildTrigger
at a particular source revision.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Required. ID of the project. -
trigger_id
(type:String.t
) - Required. ID of the trigger. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.CloudBuild.V1.Model.RepoSource.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}}
on success -
{:error, info}
on failure
cloudbuild_projects_triggers_webhook(connection, project_id, trigger, optional_params \\ [], opts \\ [])
View SourceSpecs
cloudbuild_projects_triggers_webhook( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudBuild.V1.Model.ReceiveTriggerWebhookResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
Parameters
-
connection
(type:GoogleApi.CloudBuild.V1.Connection.t
) - Connection to server -
project_id
(type:String.t
) - Project in which the specified trigger lives -
trigger
(type:String.t
) - Name of the trigger to run the payload against -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - 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
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - 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. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:secret
(type:String.t
) - Secret token used for authorization if an OAuth token isn't provided. -
:body
(type:GoogleApi.CloudBuild.V1.Model.HttpBody.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.CloudBuild.V1.Model.ReceiveTriggerWebhookResponse{}}
on success -
{:error, info}
on failure