Method: projects.updateConfig

Updates the Cloud Source Repositories configuration of the project.

HTTP request

PATCH https://sourcerepo.googleapis.com/v1/{name=projects/*}/config

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The name of the requested project. Values are of the form projects/<project> .

Authorization requires the following IAM permission on the specified resource name :

  • source.repos.updateProjectConfig

Request body

The request body contains data with the following structure:

JSON representation
 { 
 "projectConfig" 
 : 
 { 
 object (  ProjectConfig 
 
) 
 } 
 , 
 "updateMask" 
 : 
 string 
 } 
Fields
projectConfig

object ( ProjectConfig )

The new configuration for the project.

updateMask

string ( FieldMask format)

A FieldMask specifying which fields of the projectConfig to modify. Only the fields in the mask will be modified. If no mask is provided, this request is no-op.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .

Response body

If successful, the response body contains an instance of ProjectConfig .

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview .

Design a Mobile Site
View Site in Mobile | Classic
Share by: