Compute Engine v1 API - Class GlobalFrontendSettingsServiceClient (4.0.0)

public abstract class GlobalFrontendSettingsServiceClient

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

GlobalFrontendSettingsService client wrapper, for convenient use. This client implements API version 2026-09-01.

Inheritance

object > GlobalFrontendSettingsServiceClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The GlobalFrontendSettings API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the GlobalFrontendSettingsService service, which is a host of "compute.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default GlobalFrontendSettingsService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual GlobalFrontendSettingsService.GlobalFrontendSettingsServiceClient GrpcClient { get; }

The underlying gRPC GlobalFrontendSettingsService client

Property Value
Type Description
GlobalFrontendSettingsServiceGlobalFrontendSettingsServiceClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static GlobalFrontendSettingsServiceClient Create()

Synchronously creates a GlobalFrontendSettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GlobalFrontendSettingsServiceClientBuilder.

Returns
Type Description
GlobalFrontendSettingsServiceClient

The created GlobalFrontendSettingsServiceClient.

CreateAsync(CancellationToken)

public static Task<GlobalFrontendSettingsServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a GlobalFrontendSettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GlobalFrontendSettingsServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskGlobalFrontendSettingsServiceClient

The task representing the created GlobalFrontendSettingsServiceClient.

Get(GetGlobalFrontendSettingRequest, CallSettings)

public virtual GlobalFrontendSettings Get(GetGlobalFrontendSettingRequest request, CallSettings callSettings = null)

Gets the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
request GetGlobalFrontendSettingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlobalFrontendSettings

The RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = GlobalFrontendSettingsServiceClient.Create();
// Initialize request argument(s)
GetGlobalFrontendSettingRequest request = new GetGlobalFrontendSettingRequest { Project = "", };
// Make the request
GlobalFrontendSettings response = globalFrontendSettingsServiceClient.Get(request);

Get(string, CallSettings)

public virtual GlobalFrontendSettings Get(string project, CallSettings callSettings = null)

Gets the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
project string

Required. Project ID for this request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlobalFrontendSettings

The RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = GlobalFrontendSettingsServiceClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
GlobalFrontendSettings response = globalFrontendSettingsServiceClient.Get(project);

GetAsync(GetGlobalFrontendSettingRequest, CallSettings)

public virtual Task<GlobalFrontendSettings> GetAsync(GetGlobalFrontendSettingRequest request, CallSettings callSettings = null)

Gets the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
request GetGlobalFrontendSettingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlobalFrontendSettings

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetGlobalFrontendSettingRequest request = new GetGlobalFrontendSettingRequest { Project = "", };
// Make the request
GlobalFrontendSettings response = await globalFrontendSettingsServiceClient.GetAsync(request);

GetAsync(GetGlobalFrontendSettingRequest, CancellationToken)

public virtual Task<GlobalFrontendSettings> GetAsync(GetGlobalFrontendSettingRequest request, CancellationToken cancellationToken)

Gets the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
request GetGlobalFrontendSettingRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlobalFrontendSettings

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetGlobalFrontendSettingRequest request = new GetGlobalFrontendSettingRequest { Project = "", };
// Make the request
GlobalFrontendSettings response = await globalFrontendSettingsServiceClient.GetAsync(request);

GetAsync(string, CallSettings)

public virtual Task<GlobalFrontendSettings> GetAsync(string project, CallSettings callSettings = null)

Gets the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
project string

Required. Project ID for this request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlobalFrontendSettings

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
GlobalFrontendSettings response = await globalFrontendSettingsServiceClient.GetAsync(project);

GetAsync(string, CancellationToken)

public virtual Task<GlobalFrontendSettings> GetAsync(string project, CancellationToken cancellationToken)

Gets the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
project string

Required. Project ID for this request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlobalFrontendSettings

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
GlobalFrontendSettings response = await globalFrontendSettingsServiceClient.GetAsync(project);

Patch(PatchGlobalFrontendSettingRequest, CallSettings)

public virtual GlobalFrontendSettingsPatchResponse Patch(PatchGlobalFrontendSettingRequest request, CallSettings callSettings = null)

Updates the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
request PatchGlobalFrontendSettingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlobalFrontendSettingsPatchResponse

The RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = GlobalFrontendSettingsServiceClient.Create();
// Initialize request argument(s)
PatchGlobalFrontendSettingRequest request = new PatchGlobalFrontendSettingRequest
{
    RequestId = "",
    Project = "",
    GlobalFrontendSettingsResource = new GlobalFrontendSettings(),
    UpdateMask = "",
};
// Make the request
GlobalFrontendSettingsPatchResponse response = globalFrontendSettingsServiceClient.Patch(request);

Patch(string, GlobalFrontendSettings, CallSettings)

public virtual GlobalFrontendSettingsPatchResponse Patch(string project, GlobalFrontendSettings globalFrontendSettingsResource, CallSettings callSettings = null)

Updates the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
project string

Required. Project ID for this request.

globalFrontendSettingsResource GlobalFrontendSettings

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlobalFrontendSettingsPatchResponse

The RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = GlobalFrontendSettingsServiceClient.Create();
// Initialize request argument(s)
string project = "";
GlobalFrontendSettings globalFrontendSettingsResource = new GlobalFrontendSettings();
// Make the request
GlobalFrontendSettingsPatchResponse response = globalFrontendSettingsServiceClient.Patch(project, globalFrontendSettingsResource);

PatchAsync(PatchGlobalFrontendSettingRequest, CallSettings)

public virtual Task<GlobalFrontendSettingsPatchResponse> PatchAsync(PatchGlobalFrontendSettingRequest request, CallSettings callSettings = null)

Updates the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
request PatchGlobalFrontendSettingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlobalFrontendSettingsPatchResponse

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
PatchGlobalFrontendSettingRequest request = new PatchGlobalFrontendSettingRequest
{
    RequestId = "",
    Project = "",
    GlobalFrontendSettingsResource = new GlobalFrontendSettings(),
    UpdateMask = "",
};
// Make the request
GlobalFrontendSettingsPatchResponse response = await globalFrontendSettingsServiceClient.PatchAsync(request);

PatchAsync(PatchGlobalFrontendSettingRequest, CancellationToken)

public virtual Task<GlobalFrontendSettingsPatchResponse> PatchAsync(PatchGlobalFrontendSettingRequest request, CancellationToken cancellationToken)

Updates the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
request PatchGlobalFrontendSettingRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlobalFrontendSettingsPatchResponse

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
PatchGlobalFrontendSettingRequest request = new PatchGlobalFrontendSettingRequest
{
    RequestId = "",
    Project = "",
    GlobalFrontendSettingsResource = new GlobalFrontendSettings(),
    UpdateMask = "",
};
// Make the request
GlobalFrontendSettingsPatchResponse response = await globalFrontendSettingsServiceClient.PatchAsync(request);

PatchAsync(string, GlobalFrontendSettings, CallSettings)

public virtual Task<GlobalFrontendSettingsPatchResponse> PatchAsync(string project, GlobalFrontendSettings globalFrontendSettingsResource, CallSettings callSettings = null)

Updates the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
project string

Required. Project ID for this request.

globalFrontendSettingsResource GlobalFrontendSettings

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlobalFrontendSettingsPatchResponse

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string project = "";
GlobalFrontendSettings globalFrontendSettingsResource = new GlobalFrontendSettings();
// Make the request
GlobalFrontendSettingsPatchResponse response = await globalFrontendSettingsServiceClient.PatchAsync(project, globalFrontendSettingsResource);

PatchAsync(string, GlobalFrontendSettings, CancellationToken)

public virtual Task<GlobalFrontendSettingsPatchResponse> PatchAsync(string project, GlobalFrontendSettings globalFrontendSettingsResource, CancellationToken cancellationToken)

Updates the Global Frontend Billing Bundle Settings for a project.

Parameters
Name Description
project string

Required. Project ID for this request.

globalFrontendSettingsResource GlobalFrontendSettings

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlobalFrontendSettingsPatchResponse

A Task containing the RPC response.

Example
// Create client
GlobalFrontendSettingsServiceClient globalFrontendSettingsServiceClient = await GlobalFrontendSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string project = "";
GlobalFrontendSettings globalFrontendSettingsResource = new GlobalFrontendSettings();
// Make the request
GlobalFrontendSettingsPatchResponse response = await globalFrontendSettingsServiceClient.PatchAsync(project, globalFrontendSettingsResource);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.