Class ProjectsResource.LocationsResource.RepositoriesResource.ReadFileRequest
Returns the contents of a file (inside a Repository). The Repository must not have a value for
git_remote_settings.url
.
Inheritance
ProjectsResource.LocationsResource.RepositoriesResource.ReadFileRequest
Inherited Members
Namespace: Google.Apis.Dataform.v1beta1
Assembly: Google.Apis.Dataform.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.ReadFileRequest : DataformBaseServiceRequest<ReadRepositoryFileResponse>, IClientServiceRequest<ReadRepositoryFileResponse>, IClientServiceRequest
Constructors
ReadFileRequest(IClientService, string)
Constructs a new ReadFile request.
Declaration
public ReadFileRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
CommitSha
Optional. The commit SHA for the commit to read from. If unset, the file will be read from HEAD.
Declaration
[RequestParameter("commitSha", RequestParameterType.Query)]
public virtual string CommitSha { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The repository's name.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
Path
Required. Full file path to read including filename, from repository root.
Declaration
[RequestParameter("path", RequestParameterType.Query)]
public virtual string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes ReadFile parameter list.
Declaration
protected override void InitParameters()