Compute Engine v1 API - Class GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient (3.28.0)

public class GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient : ClientBase<GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient>

Reference documentation and code samples for the Compute Engine v1 API class GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient.

Client for GlobalVmExtensionPolicies

Inheritance

object > ClientBase > ClientBaseGlobalVmExtensionPoliciesGlobalVmExtensionPoliciesClient > GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

GlobalVmExtensionPoliciesClient()

protected GlobalVmExtensionPoliciesClient()

Protected parameterless constructor to allow creation of test doubles.

GlobalVmExtensionPoliciesClient(CallInvoker)

public GlobalVmExtensionPoliciesClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

GlobalVmExtensionPoliciesClient(ChannelBase)

public GlobalVmExtensionPoliciesClient(ChannelBase channel)

Creates a new client for GlobalVmExtensionPolicies

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

GlobalVmExtensionPoliciesClient(ClientBaseConfiguration)

protected GlobalVmExtensionPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListGlobalVmExtensionPoliciesRequest, CallOptions)

public virtual VmExtensionPolicyAggregatedListResponse AggregatedList(AggregatedListGlobalVmExtensionPoliciesRequest request, CallOptions options)

Retrieves the list of all VM Extension Policy resources available to the specified project.

To prevent failure, it's recommended that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListGlobalVmExtensionPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
VmExtensionPolicyAggregatedListResponse

The response received from the server.

AggregatedList(AggregatedListGlobalVmExtensionPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of all VM Extension Policy resources available to the specified project.

To prevent failure, it's recommended that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListGlobalVmExtensionPoliciesRequest

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
VmExtensionPolicyAggregatedListResponse

The response received from the server.

AggregatedListAsync(AggregatedListGlobalVmExtensionPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<VmExtensionPolicyAggregatedListResponse> AggregatedListAsync(AggregatedListGlobalVmExtensionPoliciesRequest request, CallOptions options)

Retrieves the list of all VM Extension Policy resources available to the specified project.

To prevent failure, it's recommended that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListGlobalVmExtensionPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallVmExtensionPolicyAggregatedListResponse

The call object.

AggregatedListAsync(AggregatedListGlobalVmExtensionPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of all VM Extension Policy resources available to the specified project.

To prevent failure, it's recommended that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListGlobalVmExtensionPoliciesRequest

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
AsyncUnaryCallVmExtensionPolicyAggregatedListResponse

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
Type Description
OperationsOperationsClient

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

Delete(DeleteGlobalVmExtensionPolicyRequest, CallOptions)

public virtual Operation Delete(DeleteGlobalVmExtensionPolicyRequest request, CallOptions options)

Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend.

Parameters
Name Description
request DeleteGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend.

Parameters
Name Description
request DeleteGlobalVmExtensionPolicyRequest

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
Operation

The response received from the server.

DeleteAsync(DeleteGlobalVmExtensionPolicyRequest, CallOptions)

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

Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend.

Parameters
Name Description
request DeleteGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend.

Parameters
Name Description
request DeleteGlobalVmExtensionPolicyRequest

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
AsyncUnaryCallOperation

The call object.

Get(GetGlobalVmExtensionPolicyRequest, CallOptions)

public virtual GlobalVmExtensionPolicy Get(GetGlobalVmExtensionPolicyRequest request, CallOptions options)

Gets details of a global VM extension policy.

Parameters
Name Description
request GetGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
GlobalVmExtensionPolicy

The response received from the server.

Get(GetGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets details of a global VM extension policy.

Parameters
Name Description
request GetGlobalVmExtensionPolicyRequest

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
GlobalVmExtensionPolicy

The response received from the server.

GetAsync(GetGlobalVmExtensionPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<GlobalVmExtensionPolicy> GetAsync(GetGlobalVmExtensionPolicyRequest request, CallOptions options)

Gets details of a global VM extension policy.

Parameters
Name Description
request GetGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallGlobalVmExtensionPolicy

The call object.

GetAsync(GetGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Gets details of a global VM extension policy.

Parameters
Name Description
request GetGlobalVmExtensionPolicyRequest

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
AsyncUnaryCallGlobalVmExtensionPolicy

The call object.

Insert(InsertGlobalVmExtensionPolicyRequest, CallOptions)

public virtual Operation Insert(InsertGlobalVmExtensionPolicyRequest request, CallOptions options)

Creates a new project level GlobalVmExtensionPolicy.

Parameters
Name Description
request InsertGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new project level GlobalVmExtensionPolicy.

Parameters
Name Description
request InsertGlobalVmExtensionPolicyRequest

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
Operation

The response received from the server.

InsertAsync(InsertGlobalVmExtensionPolicyRequest, CallOptions)

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

Creates a new project level GlobalVmExtensionPolicy.

Parameters
Name Description
request InsertGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new project level GlobalVmExtensionPolicy.

Parameters
Name Description
request InsertGlobalVmExtensionPolicyRequest

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
AsyncUnaryCallOperation

The call object.

List(ListGlobalVmExtensionPoliciesRequest, CallOptions)

public virtual GlobalVmExtensionPolicyList List(ListGlobalVmExtensionPoliciesRequest request, CallOptions options)

Lists global VM extension policies.

Parameters
Name Description
request ListGlobalVmExtensionPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
GlobalVmExtensionPolicyList

The response received from the server.

List(ListGlobalVmExtensionPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Lists global VM extension policies.

Parameters
Name Description
request ListGlobalVmExtensionPoliciesRequest

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
GlobalVmExtensionPolicyList

The response received from the server.

ListAsync(ListGlobalVmExtensionPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<GlobalVmExtensionPolicyList> ListAsync(ListGlobalVmExtensionPoliciesRequest request, CallOptions options)

Lists global VM extension policies.

Parameters
Name Description
request ListGlobalVmExtensionPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallGlobalVmExtensionPolicyList

The call object.

ListAsync(ListGlobalVmExtensionPoliciesRequest, Metadata, DateTime?, CancellationToken)

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

Lists global VM extension policies.

Parameters
Name Description
request ListGlobalVmExtensionPoliciesRequest

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
AsyncUnaryCallGlobalVmExtensionPolicyList

The call object.

NewInstance(ClientBaseConfiguration)

protected override GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
GlobalVmExtensionPoliciesGlobalVmExtensionPoliciesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.GlobalVmExtensionPolicies.GlobalVmExtensionPoliciesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Update(UpdateGlobalVmExtensionPolicyRequest, CallOptions)

public virtual Operation Update(UpdateGlobalVmExtensionPolicyRequest request, CallOptions options)

Updates a global VM extension policy.

Parameters
Name Description
request UpdateGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdateGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Updates a global VM extension policy.

Parameters
Name Description
request UpdateGlobalVmExtensionPolicyRequest

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
Operation

The response received from the server.

UpdateAsync(UpdateGlobalVmExtensionPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateGlobalVmExtensionPolicyRequest request, CallOptions options)

Updates a global VM extension policy.

Parameters
Name Description
request UpdateGlobalVmExtensionPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateGlobalVmExtensionPolicyRequest, Metadata, DateTime?, CancellationToken)

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

Updates a global VM extension policy.

Parameters
Name Description
request UpdateGlobalVmExtensionPolicyRequest

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
AsyncUnaryCallOperation

The call object.