Class RegionsResource.GetRequest
Returns the specified Region resource. Gets a list of available regions by making a list() request. To
decrease latency for this method, you can optionally omit any unneeded information from the response by
using a field mask. This practice is especially recommended for unused quota information (the quotas
field). To exclude one or more fields, set your request's fields query parameter to only include the
fields you need. For example, to only include the id and selfLink fields, add the query parameter
?fields=id,selfLink to your request.
Inheritance
System.Object
RegionsResource.GetRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class GetRequest : ComputeBaseServiceRequest<Region>, IClientServiceRequest<Region>, IClientServiceRequest
Constructors
GetRequest(IClientService, String, String)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | project | |
| System.String | region |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Compute.v1.Data.Region>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Compute.v1.Data.Region>.MethodName
Project
Project ID for this request.
Declaration
[RequestParameter("project", RequestParameterType.Path)]
public virtual string Project { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Region
Name of the region resource to return.
Declaration
[RequestParameter("region", RequestParameterType.Path)]
public virtual string Region { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Compute.v1.Data.Region>.RestPath
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Compute.v1.ComputeBaseServiceRequest<Google.Apis.Compute.v1.Data.Region>.InitParameters()