google_api_source_repo v0.5.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.
Deletes a repo.
Returns information about a repo.
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.
Updates information about a repo.
Sets the access control policy on the specified resource. Replaces any existing policy.
Synchronize a connected repo.
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
sourcerepo_projects_get_config(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_get_config(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.SourceRepo.V1.Model.ProjectConfig.t()}
| {:error, Tesla.Env.t()}
sourcerepo_projects_get_config( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.SourceRepo.V1.Model.ProjectConfig.t()} | {:error, Tesla.Env.t()}
Returns the Cloud Source Repositories configuration of the project.
Parameters
connection
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The name of the requested project. Values are of the formprojects/<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").
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.ProjectConfig{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_create(connection, parent, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_create(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_create( Tesla.Env.client(), String.t(), keyword(), 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
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to serverparent
(type:String.t
) - The project in which to create the repo. Values are of the formprojects/<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").:body
(type:GoogleApi.SourceRepo.V1.Model.Repo.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.Repo{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_delete(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_delete(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Empty.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_delete( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.SourceRepo.V1.Model.Empty.t()} | {:error, Tesla.Env.t()}
Deletes a repo.
Parameters
connection
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The name of the repo to delete. Values are of the formprojects/<project>/repos/<repo>
.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.SourceRepo.V1.Model.Empty{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_get(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_get(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_get( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}
Returns information about a repo.
Parameters
connection
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The name of the requested repository. Values are of the formprojects/<project>/repos/<repo>
.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.SourceRepo.V1.Model.Repo{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_get_iam_policy(connection, resource, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_get_iam_policy(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Policy.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_get_iam_policy( Tesla.Env.client(), String.t(), keyword(), 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
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to serverresource
(type:String.t
) - REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.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.SourceRepo.V1.Model.Policy{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_list(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_list(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.SourceRepo.V1.Model.ListReposResponse.t()}
| {:error, Tesla.Env.t()}
sourcerepo_projects_repos_list( Tesla.Env.client(), String.t(), keyword(), 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
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The project ID whose repos should be listed. Values are of the formprojects/<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").:pageSize
(type:integer()
) - Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server.:pageToken
(type: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.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.ListReposResponse{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_patch(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_patch(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_patch( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.SourceRepo.V1.Model.Repo.t()} | {:error, Tesla.Env.t()}
Updates information about a repo.
Parameters
connection
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The name of the requested repository. Values are of the formprojects/<project>/repos/<repo>
.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.SourceRepo.V1.Model.UpdateRepoRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.Repo{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_set_iam_policy(connection, resource, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_set_iam_policy(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) :: {:ok, GoogleApi.SourceRepo.V1.Model.Policy.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_set_iam_policy( Tesla.Env.client(), String.t(), keyword(), 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
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to serverresource
(type:String.t
) - REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.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.SourceRepo.V1.Model.SetIamPolicyRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.Policy{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_sync(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_sync(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.SourceRepo.V1.Model.Operation.t()} | {:error, Tesla.Env.t()}
sourcerepo_projects_repos_sync( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.SourceRepo.V1.Model.Operation.t()} | {:error, Tesla.Env.t()}
Synchronize a connected repo.
The response contains SyncRepoMetadata in the metadata field.
Parameters
connection
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The name of the repo to synchronize. Values are of the formprojects/<project>/repos/<repo>
.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.SourceRepo.V1.Model.SyncRepoRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.Operation{}}
on success{:error, info}
on failure
sourcerepo_projects_repos_test_iam_permissions(connection, resource, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_repos_test_iam_permissions(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.SourceRepo.V1.Model.TestIamPermissionsResponse.t()}
| {:error, Tesla.Env.t()}
sourcerepo_projects_repos_test_iam_permissions( Tesla.Env.client(), String.t(), keyword(), 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
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to serverresource
(type:String.t
) - REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.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.SourceRepo.V1.Model.TestIamPermissionsRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.TestIamPermissionsResponse{}}
on success{:error, info}
on failure
sourcerepo_projects_update_config(connection, name, optional_params \\ [], opts \\ [])
View Source
sourcerepo_projects_update_config(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.SourceRepo.V1.Model.ProjectConfig.t()}
| {:error, Tesla.Env.t()}
sourcerepo_projects_update_config( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.SourceRepo.V1.Model.ProjectConfig.t()} | {:error, Tesla.Env.t()}
Updates the Cloud Source Repositories configuration of the project.
Parameters
connection
(type:GoogleApi.SourceRepo.V1.Connection.t
) - Connection to servername
(type:String.t
) - The name of the requested project. Values are of the formprojects/<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").:body
(type:GoogleApi.SourceRepo.V1.Model.UpdateProjectConfigRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.SourceRepo.V1.Model.ProjectConfig{}}
on success{:error, info}
on failure