public class NetworkProfiles.NetworkProfilesClient : ClientBase<NetworkProfiles.NetworkProfilesClient>
Reference documentation and code samples for the Compute Engine v1 API class NetworkProfiles.NetworkProfilesClient.
Client for NetworkProfiles
Inheritance
object > ClientBase > ClientBaseNetworkProfilesNetworkProfilesClient > NetworkProfiles.NetworkProfilesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NetworkProfilesClient()
protected NetworkProfilesClient()
Protected parameterless constructor to allow creation of test doubles.
NetworkProfilesClient(CallInvoker)
public NetworkProfilesClient(CallInvoker callInvoker)
Creates a new client for NetworkProfiles that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
NetworkProfilesClient(ChannelBase)
public NetworkProfilesClient(ChannelBase channel)
Creates a new client for NetworkProfiles
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
NetworkProfilesClient(ClientBaseConfiguration)
protected NetworkProfilesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
Get(GetNetworkProfileRequest, CallOptions)
public virtual NetworkProfile Get(GetNetworkProfileRequest request, CallOptions options)
Returns the specified network profile.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkProfileRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
NetworkProfile |
The response received from the server. |
Get(GetNetworkProfileRequest, Metadata, DateTime?, CancellationToken)
public virtual NetworkProfile Get(GetNetworkProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the specified network profile.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkProfileRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
NetworkProfile |
The response received from the server. |
GetAsync(GetNetworkProfileRequest, CallOptions)
public virtual AsyncUnaryCall<NetworkProfile> GetAsync(GetNetworkProfileRequest request, CallOptions options)
Returns the specified network profile.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkProfileRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallNetworkProfile |
The call object. |
GetAsync(GetNetworkProfileRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<NetworkProfile> GetAsync(GetNetworkProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the specified network profile.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkProfileRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallNetworkProfile |
The call object. |
List(ListNetworkProfilesRequest, CallOptions)
public virtual NetworkProfilesListResponse List(ListNetworkProfilesRequest request, CallOptions options)
Retrieves a list of network profiles available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListNetworkProfilesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
NetworkProfilesListResponse |
The response received from the server. |
List(ListNetworkProfilesRequest, Metadata, DateTime?, CancellationToken)
public virtual NetworkProfilesListResponse List(ListNetworkProfilesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves a list of network profiles available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListNetworkProfilesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
NetworkProfilesListResponse |
The response received from the server. |
ListAsync(ListNetworkProfilesRequest, CallOptions)
public virtual AsyncUnaryCall<NetworkProfilesListResponse> ListAsync(ListNetworkProfilesRequest request, CallOptions options)
Retrieves a list of network profiles available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListNetworkProfilesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallNetworkProfilesListResponse |
The call object. |
ListAsync(ListNetworkProfilesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<NetworkProfilesListResponse> ListAsync(ListNetworkProfilesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves a list of network profiles available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
ListNetworkProfilesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallNetworkProfilesListResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override NetworkProfiles.NetworkProfilesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
NetworkProfilesNetworkProfilesClient |