Class ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ReadFileRequest
Returns the contents of a file (inside a Workspace).
Inheritance
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ReadFileRequest
Inherited Members
Namespace: Google.Apis.Dataform.v1beta1
Assembly: Google.Apis.Dataform.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ReadFileRequest : DataformBaseServiceRequest<ReadFileResponse>, IClientServiceRequest<ReadFileResponse>, IClientServiceRequest
Constructors
ReadFileRequest(IClientService, string)
Constructs a new ReadFile request.
Declaration
public ReadFileRequest(IClientService service, string workspace)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | workspace |
Properties
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
Path
Required. The file's full path including filename, relative to the workspace 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
Revision
Optional. The Git revision of the file to return. If left empty, the current contents of
path
will be returned.
Declaration
[RequestParameter("revision", RequestParameterType.Query)]
public virtual string Revision { get; set; }
Property Value
Type | Description |
---|---|
string |
Workspace
Required. The workspace's name.
Declaration
[RequestParameter("workspace", RequestParameterType.Path)]
public virtual string Workspace { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes ReadFile parameter list.
Declaration
protected override void InitParameters()