Class ProjectsResource.LocationsResource.RepositoriesResource
The "repositories" collection of methods.
Inherited Members
Namespace: Google.Apis.SecureSourceManager.v1
Assembly: Google.Apis.SecureSourceManager.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource
Constructors
RepositoriesResource(IClientService)
Constructs a new resource.
Declaration
public RepositoriesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
BranchRules
Gets the BranchRules resource.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.BranchRulesResource BranchRules { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.BranchRulesResource |
Hooks
Gets the Hooks resource.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.HooksResource Hooks { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.HooksResource |
Issues
Gets the Issues resource.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.IssuesResource Issues { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.IssuesResource |
PullRequests
Gets the PullRequests resource.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource PullRequests { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.PullRequestsResource |
Methods
Create(Repository, string)
Creates a new repository in a given project and location. The Repository.Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.CreateRequest Create(Repository body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Repository | body | The body of the request. |
| string | parent | Required. The project in which to create the repository. Values are of the form
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.CreateRequest |
Delete(string)
Deletes a Repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Name of the repository to delete. The format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.DeleteRequest |
FetchBlob(string)
Fetches a blob from a repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.FetchBlobRequest FetchBlob(string repository)
Parameters
| Type | Name | Description |
|---|---|---|
| string | repository | Required. The format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.FetchBlobRequest |
FetchTree(string)
Fetches a tree from a repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.FetchTreeRequest FetchTree(string repository)
Parameters
| Type | Name | Description |
|---|---|---|
| string | repository | Required. The format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.FetchTreeRequest |
Get(string)
Gets metadata of a repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Name of the repository to retrieve. The format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.GetRequest |
GetIamPolicy(string)
Get IAM policy for a repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.GetIamPolicyRequest |
List(string)
Lists Repositories in a given project and location. The instance field is required in the query parameter for requests using the securesourcemanager.googleapis.com endpoint.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. Parent value for ListRepositoriesRequest. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.ListRequest |
Patch(Repository, string)
Updates the metadata of a repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.PatchRequest Patch(Repository body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Repository | body | The body of the request. |
| string | name | Optional. A unique identifier for a repository. The name should be of the format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Set IAM policy on a repository.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| SetIamPolicyRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Test IAM permissions on a repository. IAM permission checks are not required on this method.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestIamPermissionsRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.TestIamPermissionsRequest |