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

public class Subnetworks.SubnetworksClient : ClientBase<Subnetworks.SubnetworksClient>

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

Client for Subnetworks

Inheritance

object > ClientBase > ClientBaseSubnetworksSubnetworksClient > 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(ClientBaseConfiguration)

protected SubnetworksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallSubnetworkAggregatedList

The call object.

AggregatedListAsync(AggregatedListSubnetworksRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallSubnetworkAggregatedList

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
OperationsOperationsClient

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

Get(GetSubnetworkRequest, CallOptions)

public virtual Subnetwork Get(GetSubnetworkRequest request, CallOptions options)

Returns the specified subnetwork.

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, DateTime?, CancellationToken)

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

Returns the specified subnetwork.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallSubnetwork

The call object.

GetAsync(GetSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified subnetwork.

Parameters
NameDescription
requestGetSubnetworkRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallSubnetwork

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicySubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallPolicy

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallSubnetworkList

The call object.

ListAsync(ListSubnetworksRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallSubnetworkList

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallUsableSubnetworksAggregatedList

The call object.

ListUsableAsync(ListUsableSubnetworksRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallUsableSubnetworksAggregatedList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
SubnetworksSubnetworksClient
Overrides

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicySubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallPolicy

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

The call object.

SetPrivateIpGoogleAccessAsync(SetPrivateIpGoogleAccessSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsSubnetworkRequest, Metadata, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
AsyncUnaryCallTestPermissionsResponse

The call object.