Show / Hide Table of Contents

Class SubnetworksResource

The "subnetworks" collection of methods.

Inheritance
object
SubnetworksResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class SubnetworksResource

Constructors

SubnetworksResource(IClientService)

Constructs a new resource.

Declaration
public SubnetworksResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AggregatedList(string)

Retrieves an aggregated list of subnetworks.

Declaration
public virtual SubnetworksResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
SubnetworksResource.AggregatedListRequest

Delete(string, string, string)

Deletes the specified subnetwork.

Declaration
public virtual SubnetworksResource.DeleteRequest Delete(string project, string region, string subnetwork)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

string subnetwork

Name of the Subnetwork resource to delete.

Returns
Type Description
SubnetworksResource.DeleteRequest

ExpandIpCidrRange(SubnetworksExpandIpCidrRangeRequest, string, string, string)

Expands the IP CIDR range of the subnetwork to a specified value.

Declaration
public virtual SubnetworksResource.ExpandIpCidrRangeRequest ExpandIpCidrRange(SubnetworksExpandIpCidrRangeRequest body, string project, string region, string subnetwork)
Parameters
Type Name Description
SubnetworksExpandIpCidrRangeRequest body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string subnetwork

Name of the Subnetwork resource to update.

Returns
Type Description
SubnetworksResource.ExpandIpCidrRangeRequest

Get(string, string, string)

Returns the specified subnetwork.

Declaration
public virtual SubnetworksResource.GetRequest Get(string project, string region, string subnetwork)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

string subnetwork

Name of the Subnetwork resource to return.

Returns
Type Description
SubnetworksResource.GetRequest

GetIamPolicy(string, string, string)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Declaration
public virtual SubnetworksResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
Type Name Description
string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
SubnetworksResource.GetIamPolicyRequest

Insert(Subnetwork, string, string)

Creates a subnetwork in the specified project using the data included in the request.

Declaration
public virtual SubnetworksResource.InsertRequest Insert(Subnetwork body, string project, string region)
Parameters
Type Name Description
Subnetwork body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

Returns
Type Description
SubnetworksResource.InsertRequest

List(string, string)

Retrieves a list of subnetworks available to the specified project.

Declaration
public virtual SubnetworksResource.ListRequest List(string project, string region)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

Returns
Type Description
SubnetworksResource.ListRequest

ListUsable(string)

Retrieves an aggregated list of all usable subnetworks in the project.

Declaration
public virtual SubnetworksResource.ListUsableRequest ListUsable(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
SubnetworksResource.ListUsableRequest

Patch(Subnetwork, string, string, string)

Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.

Declaration
public virtual SubnetworksResource.PatchRequest Patch(Subnetwork body, string project, string region, string subnetwork)
Parameters
Type Name Description
Subnetwork body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string subnetwork

Name of the Subnetwork resource to patch.

Returns
Type Description
SubnetworksResource.PatchRequest

SetIamPolicy(RegionSetPolicyRequest, string, string, string)

Sets the access control policy on the specified resource. Replaces any existing policy.

Declaration
public virtual SubnetworksResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
Type Name Description
RegionSetPolicyRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
SubnetworksResource.SetIamPolicyRequest

SetPrivateIpGoogleAccess(SubnetworksSetPrivateIpGoogleAccessRequest, string, string, string)

Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.

Declaration
public virtual SubnetworksResource.SetPrivateIpGoogleAccessRequest SetPrivateIpGoogleAccess(SubnetworksSetPrivateIpGoogleAccessRequest body, string project, string region, string subnetwork)
Parameters
Type Name Description
SubnetworksSetPrivateIpGoogleAccessRequest body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string subnetwork

Name of the Subnetwork resource.

Returns
Type Description
SubnetworksResource.SetPrivateIpGoogleAccessRequest

TestIamPermissions(TestPermissionsRequest, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual SubnetworksResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
SubnetworksResource.TestIamPermissionsRequest
In This Article
Back to top Generated by DocFX