Class ProjectsResource.ReposResource.CreateRequest
Creates a repo in the given project with the given name. If the named repository already exists,
CreateRepo
returns ALREADY_EXISTS
.
Inheritance
object
ProjectsResource.ReposResource.CreateRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudSourceRepositories.v1
Assembly: Google.Apis.CloudSourceRepositories.v1.dll
Syntax
public class ProjectsResource.ReposResource.CreateRequest : CloudSourceRepositoriesBaseServiceRequest<Repo>, IClientServiceRequest<Repo>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Repo, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Repo body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Repo | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSourceRepositories.v1.Data.Repo>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSourceRepositories.v1.Data.Repo>.MethodName
Parent
The project in which to create the repo. Values are of the form projects/
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSourceRepositories.v1.Data.Repo>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSourceRepositories.v1.Data.Repo>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudSourceRepositories.v1.CloudSourceRepositoriesBaseServiceRequest<Google.Apis.CloudSourceRepositories.v1.Data.Repo>.InitParameters()