google_api_cloud_build v0.0.1 GoogleApi.CloudBuild.V1.Api.Projects View Source

API calls for all endpoints tagged Projects.

Link to this section Summary

Functions

Starts a build with the specified configuration. The long-running Operation returned by this method will include the ID of the build, which can be passed to GetBuild to determine its status (e.g., success or failure)

Returns information about a previously requested build. The Build that is returned includes its status (e.g., success or failure, or in-progress), 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 BuildTrigger. This API is experimental

Deletes an BuildTrigger by its project ID and trigger ID. This API is experimental

Gets information about a BuildTrigger. This API is experimental

Lists existing BuildTrigger. This API is experimental

Updates an BuildTrigger by its project ID and trigger ID. This API is experimental

Link to this section Functions

Link to this function cloudbuild_projects_builds_cancel(connection, project_id, id, opts \\ []) View Source
cloudbuild_projects_builds_cancel(Tesla.Env.client, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.Build.t} |
  {:error, Tesla.Env.t}

Cancels a requested build in progress.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project.
  • id (String): ID of the build.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :body (CancelBuildRequest):

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.Build{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_builds_create(connection, project_id, opts \\ []) View Source
cloudbuild_projects_builds_create(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.Operation.t} |
  {:error, Tesla.Env.t}

Starts a build with the specified configuration. The long-running Operation returned by this method will include the ID of the build, which can be passed to GetBuild to determine its status (e.g., success or failure).

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :body (Build):

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.Operation{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_builds_get(connection, project_id, id, opts \\ []) View Source
cloudbuild_projects_builds_get(Tesla.Env.client, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.Build.t} |
  {:error, Tesla.Env.t}

Returns information about a previously requested build. The Build that is returned includes its status (e.g., success or failure, or in-progress), and timing information.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project.
  • id (String): ID of the build.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.Build{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_builds_list(connection, project_id, opts \\ []) View Source
cloudbuild_projects_builds_list(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.ListBuildsResponse.t} |
  {:error, Tesla.Env.t}

Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :filter (String): The raw filter text to constrain the results.
    • :page_token (String): Token to provide to skip to a particular spot in the list.
    • :page_size (Integer): Number of results to return in the list.

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.ListBuildsResponse{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_triggers_create(connection, project_id, opts \\ []) View Source
cloudbuild_projects_triggers_create(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.BuildTrigger.t} |
  {:error, Tesla.Env.t}

Creates a new BuildTrigger. This API is experimental.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project for which to configure automatic builds.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :body (BuildTrigger):

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.BuildTrigger{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_triggers_delete(connection, project_id, trigger_id, opts \\ []) View Source
cloudbuild_projects_triggers_delete(Tesla.Env.client, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.Empty.t} |
  {:error, Tesla.Env.t}

Deletes an BuildTrigger by its project ID and trigger ID. This API is experimental.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project that owns the trigger.
  • trigger_id (String): ID of the BuildTrigger to delete.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.Empty{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_triggers_get(connection, project_id, trigger_id, opts \\ []) View Source
cloudbuild_projects_triggers_get(Tesla.Env.client, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.BuildTrigger.t} |
  {:error, Tesla.Env.t}

Gets information about a BuildTrigger. This API is experimental.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project that owns the trigger.
  • trigger_id (String): ID of the BuildTrigger to get.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.BuildTrigger{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_triggers_list(connection, project_id, opts \\ []) View Source
cloudbuild_projects_triggers_list(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.ListBuildTriggersResponse.t} |
  {:error, Tesla.Env.t}

Lists existing BuildTrigger. This API is experimental.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project for which to list BuildTriggers.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.ListBuildTriggersResponse{}} on success {:error, info} on failure

Link to this function cloudbuild_projects_triggers_patch(connection, project_id, trigger_id, opts \\ []) View Source
cloudbuild_projects_triggers_patch(Tesla.Env.client, String.t, String.t, keyword) ::
  {:ok, GoogleApi.CloudBuild.V1.Model.BuildTrigger.t} |
  {:error, Tesla.Env.t}

Updates an BuildTrigger by its project ID and trigger ID. This API is experimental.

Parameters

  • connection (GoogleApi.CloudBuild.V1.Connection): Connection to server
  • project_id (String): ID of the project that owns the trigger.
  • trigger_id (String): ID of the BuildTrigger to update.
  • opts (KeywordList): [optional] Optional parameters

    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :body (BuildTrigger):

Returns

{:ok, %GoogleApi.CloudBuild.V1.Model.BuildTrigger{}} on success {:error, info} on failure