Compute Engine v1 API - Class Subnetworks.SubnetworksClient (2.5.0)

public class SubnetworksClient : ClientBase<Subnetworks.SubnetworksClient>

Reference documentation and code samples for the Compute Engine v1 API class Subnetworks.SubnetworksClient.

Client for Subnetworks

Inheritance

Object > ClientBase > ClientBase<Subnetworks.SubnetworksClient> > Subnetworks.SubnetworksClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

SubnetworksClient()

protected SubnetworksClient()

Protected parameterless constructor to allow creation of test doubles.

SubnetworksClient(CallInvoker)

public SubnetworksClient(CallInvoker callInvoker)

Creates a new client for Subnetworks that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SubnetworksClient(ChannelBase)

public SubnetworksClient(ChannelBase channel)

Creates a new client for Subnetworks

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SubnetworksClient(ClientBase.ClientBaseConfiguration)

protected SubnetworksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListSubnetworksRequest, CallOptions)

public virtual SubnetworkAggregatedList AggregatedList(AggregatedListSubnetworksRequest request, CallOptions options)

Retrieves an aggregated list of subnetworks.

Parameters
NameDescription
requestAggregatedListSubnetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SubnetworkAggregatedList

The response received from the server.

AggregatedList(AggregatedListSubnetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SubnetworkAggregatedList AggregatedList(AggregatedListSubnetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves an aggregated list of subnetworks.

Parameters
NameDescription
requestAggregatedListSubnetworksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SubnetworkAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListSubnetworksRequest, CallOptions)

public virtual AsyncUnaryCall<SubnetworkAggregatedList> AggregatedListAsync(AggregatedListSubnetworksRequest request, CallOptions options)

Retrieves an aggregated list of subnetworks.

Parameters
NameDescription
requestAggregatedListSubnetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SubnetworkAggregatedList>

The call object.

AggregatedListAsync(AggregatedListSubnetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SubnetworkAggregatedList> AggregatedListAsync(AggregatedListSubnetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves an aggregated list of subnetworks.

Parameters
NameDescription
requestAggregatedListSubnetworksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SubnetworkAggregatedList>

The call object.

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

Delete(DeleteSubnetworkRequest, CallOptions)

public virtual Operation Delete(DeleteSubnetworkRequest request, CallOptions options)

Deletes the specified subnetwork.

Parameters
NameDescription
requestDeleteSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Delete(DeleteSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes the specified subnetwork.

Parameters
NameDescription
requestDeleteSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteSubnetworkRequest request, CallOptions options)

Deletes the specified subnetwork.

Parameters
NameDescription
requestDeleteSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DeleteAsync(DeleteSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes the specified subnetwork.

Parameters
NameDescription
requestDeleteSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, CallOptions)

public virtual Operation ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestExpandIpCidrRangeSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestExpandIpCidrRangeSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestExpandIpCidrRangeSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestExpandIpCidrRangeSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

Get(GetSubnetworkRequest, CallOptions)

public virtual Subnetwork Get(GetSubnetworkRequest request, CallOptions options)

Returns the specified subnetwork. Gets a list of available subnetworks list() request.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Subnetwork

The response received from the server.

Get(GetSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Subnetwork Get(GetSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Returns the specified subnetwork. Gets a list of available subnetworks list() request.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Subnetwork

The response received from the server.

GetAsync(GetSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Subnetwork> GetAsync(GetSubnetworkRequest request, CallOptions options)

Returns the specified subnetwork. Gets a list of available subnetworks list() request.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Subnetwork>

The call object.

GetAsync(GetSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Subnetwork> GetAsync(GetSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Returns the specified subnetwork. Gets a list of available subnetworks list() request.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Subnetwork>

The call object.

GetIamPolicy(GetIamPolicySubnetworkRequest, CallOptions)

public virtual Policy GetIamPolicy(GetIamPolicySubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetIamPolicySubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicy(GetIamPolicySubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicySubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestGetIamPolicySubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicyAsync(GetIamPolicySubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicySubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetIamPolicySubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

GetIamPolicyAsync(GetIamPolicySubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicySubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestGetIamPolicySubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

Insert(InsertSubnetworkRequest, CallOptions)

public virtual Operation Insert(InsertSubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Insert(InsertSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestInsertSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertSubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

InsertAsync(InsertSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestInsertSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

List(ListSubnetworksRequest, CallOptions)

public virtual SubnetworkList List(ListSubnetworksRequest request, CallOptions options)

Retrieves a list of subnetworks available to the specified project.

Parameters
NameDescription
requestListSubnetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SubnetworkList

The response received from the server.

List(ListSubnetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SubnetworkList List(ListSubnetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves a list of subnetworks available to the specified project.

Parameters
NameDescription
requestListSubnetworksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
SubnetworkList

The response received from the server.

ListAsync(ListSubnetworksRequest, CallOptions)

public virtual AsyncUnaryCall<SubnetworkList> ListAsync(ListSubnetworksRequest request, CallOptions options)

Retrieves a list of subnetworks available to the specified project.

Parameters
NameDescription
requestListSubnetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SubnetworkList>

The call object.

ListAsync(ListSubnetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SubnetworkList> ListAsync(ListSubnetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves a list of subnetworks available to the specified project.

Parameters
NameDescription
requestListSubnetworksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<SubnetworkList>

The call object.

ListUsable(ListUsableSubnetworksRequest, CallOptions)

public virtual UsableSubnetworksAggregatedList ListUsable(ListUsableSubnetworksRequest request, CallOptions options)

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

Parameters
NameDescription
requestListUsableSubnetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
UsableSubnetworksAggregatedList

The response received from the server.

ListUsable(ListUsableSubnetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual UsableSubnetworksAggregatedList ListUsable(ListUsableSubnetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestListUsableSubnetworksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
UsableSubnetworksAggregatedList

The response received from the server.

ListUsableAsync(ListUsableSubnetworksRequest, CallOptions)

public virtual AsyncUnaryCall<UsableSubnetworksAggregatedList> ListUsableAsync(ListUsableSubnetworksRequest request, CallOptions options)

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

Parameters
NameDescription
requestListUsableSubnetworksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<UsableSubnetworksAggregatedList>

The call object.

ListUsableAsync(ListUsableSubnetworksRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<UsableSubnetworksAggregatedList> ListUsableAsync(ListUsableSubnetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestListUsableSubnetworksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<UsableSubnetworksAggregatedList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Subnetworks.SubnetworksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Subnetworks.SubnetworksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.Subnetworks.SubnetworksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchSubnetworkRequest, CallOptions)

public virtual Operation Patch(PatchSubnetworkRequest request, CallOptions options)

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.

Parameters
NameDescription
requestPatchSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation Patch(PatchSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestPatchSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchAsync(PatchSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSubnetworkRequest request, CallOptions options)

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.

Parameters
NameDescription
requestPatchSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

PatchAsync(PatchSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestPatchSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetIamPolicy(SetIamPolicySubnetworkRequest, CallOptions)

public virtual Policy SetIamPolicy(SetIamPolicySubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetIamPolicySubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicy(SetIamPolicySubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicySubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestSetIamPolicySubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicyAsync(SetIamPolicySubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicySubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetIamPolicySubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

SetIamPolicyAsync(SetIamPolicySubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicySubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestSetIamPolicySubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest, CallOptions)

public virtual Operation SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetPrivateIpGoogleAccessSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation SetPrivateIpGoogleAccess(SetPrivateIpGoogleAccessSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestSetPrivateIpGoogleAccessSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetPrivateIpGoogleAccessSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestSetPrivateIpGoogleAccessSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

TestIamPermissions(TestIamPermissionsSubnetworkRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsSubnetworkRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestPermissionsResponse>

The call object.

TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsSubnetworkRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestPermissionsResponse>

The call object.