google_api_source_repo v0.1.0 GoogleApi.SourceRepo.V1.Api.Projects View Source

API calls for all endpoints tagged Projects.

Link to this section Summary

Functions

Returns the Cloud Source Repositories configuration of the project

Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set

Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo

Sets the access control policy on the specified resource. Replaces any existing policy

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error

Updates the Cloud Source Repositories configuration of the project

Link to this section Functions

Link to this function sourcerepo_projects_get_config(connection, name, opts \\ []) View Source
sourcerepo_projects_get_config(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.ProjectConfig.t()}
  | {:error, Tesla.Env.t()}

Returns the Cloud Source Repositories configuration of the project.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • name (String.t): The name of the requested project. Values are of the form `projects/<project>`.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.ProjectConfig{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_repos_create(connection, parent, opts \\ []) View Source
sourcerepo_projects_repos_create(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}

Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • parent (String.t): The project in which to create the repo. Values are of the form `projects/<project>`.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.Repo{}} on success {:error, info} on failure

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

Deletes a repo.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • name (String.t): The name of the repo to delete. Values are of the form `projects/<project>/repos/<repo>`.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

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

Link to this function sourcerepo_projects_repos_get(connection, name, opts \\ []) View Source
sourcerepo_projects_repos_get(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}

Returns information about a repo.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • name (String.t): The name of the requested repository. Values are of the form `projects/<project>/repos/<repo>`.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.Repo{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_repos_get_iam_policy(connection, resource, opts \\ []) View Source
sourcerepo_projects_repos_get_iam_policy(
  Tesla.Env.client(),
  String.t(),
  keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Policy.t()} | {:error, Tesla.Env.t()}

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • resource (String.t): REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.Policy{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_repos_list(connection, name, opts \\ []) View Source
sourcerepo_projects_repos_list(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.ListReposResponse.t()}
  | {:error, Tesla.Env.t()}

Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • name (String.t): The project ID whose repos should be listed. Values are of the form `projects/<project>`.
  • opts (KeywordList): [optional] Optional parameters

    • :pp (boolean()): Pretty-print response.
    • :oauth_token (String.t): OAuth 2.0 token for the current user.
    • :bearer_token (String.t): OAuth bearer token.
    • :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
    • :prettyPrint (boolean()): Returns response with indentations and line breaks.
    • :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String.t): Selector specifying which fields to include in a partial response.
    • :$.xgafv (String.t): V1 error format.
    • :callback (String.t): JSONP
    • :alt (String.t): Data format for response.
    • :key (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.
    • :access_token (String.t): OAuth access token.
    • :quotaUser (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.
    • :pageToken (String.t): Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior ListReposResponse's next_page_token field.
    • :pageSize (integer()): Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server.

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.ListReposResponse{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_repos_patch(connection, name, opts \\ []) View Source
sourcerepo_projects_repos_patch(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}

Updates information about a repo.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • name (String.t): The name of the requested repository. Values are of the form `projects/<project>/repos/<repo>`.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.Repo{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_repos_set_iam_policy(connection, resource, opts \\ []) View Source
sourcerepo_projects_repos_set_iam_policy(
  Tesla.Env.client(),
  String.t(),
  keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Policy.t()} | {:error, Tesla.Env.t()}

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • resource (String.t): REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.Policy{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_repos_test_iam_permissions(connection, resource, opts \\ []) View Source
sourcerepo_projects_repos_test_iam_permissions(
  Tesla.Env.client(),
  String.t(),
  keyword()
) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.TestIamPermissionsResponse.t()}
  | {:error, Tesla.Env.t()}

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • resource (String.t): REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.TestIamPermissionsResponse{}} on success {:error, info} on failure

Link to this function sourcerepo_projects_update_config(connection, name, opts \\ []) View Source
sourcerepo_projects_update_config(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, GoogleApi.SourceRepo.V1.Model.ProjectConfig.t()}
  | {:error, Tesla.Env.t()}

Updates the Cloud Source Repositories configuration of the project.

Parameters

  • connection (GoogleApi.SourceRepo.V1.Connection): Connection to server
  • name (String.t): The name of the requested project. Values are of the form `projects/<project>`.
  • opts (KeywordList): [optional] Optional parameters

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

Returns

{:ok, %GoogleApi.SourceRepo.V1.Model.ProjectConfig{}} on success {:error, info} on failure