Package com.google.cloud.beyondcorp.appgateways.v1 (0.26.0)

A client to BeyondCorp API

The interfaces provided are listed below, along with usage samples.

AppGatewaysServiceClient

Service Description: API Overview:

The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API.

Data Model:

The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}.

The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

Sample for AppGatewaysServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AppGatewaysServiceClient appGatewaysServiceClient = AppGatewaysServiceClient.create()) {
   AppGatewayName name = AppGatewayName.of("[PROJECT]", "[LOCATION]", "[APP_GATEWAY]");
   AppGateway response = appGatewaysServiceClient.getAppGateway(name);
 }
 

Classes

AppGateway

A BeyondCorp AppGateway resource represents a BeyondCorp protected AppGateway to a remote application. It creates all the necessary GCP components needed for creating a BeyondCorp protected AppGateway. Multiple connectors can be authorised for a single AppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.AppGateway

AppGateway.AllocatedConnection

Allocated connection of the AppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.AppGateway.AllocatedConnection

AppGateway.AllocatedConnection.Builder

Allocated connection of the AppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.AppGateway.AllocatedConnection

AppGateway.Builder

A BeyondCorp AppGateway resource represents a BeyondCorp protected AppGateway to a remote application. It creates all the necessary GCP components needed for creating a BeyondCorp protected AppGateway. Multiple connectors can be authorised for a single AppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.AppGateway

AppGatewayName

AppGatewayName.Builder

Builder for projects/{project}/locations/{location}/appGateways/{app_gateway}.

AppGatewayOperationMetadata

Represents the metadata of the long-running operation.

Protobuf type google.cloud.beyondcorp.appgateways.v1.AppGatewayOperationMetadata

AppGatewayOperationMetadata.Builder

Represents the metadata of the long-running operation.

Protobuf type google.cloud.beyondcorp.appgateways.v1.AppGatewayOperationMetadata

AppGatewaysServiceClient

Service Description: API Overview:

The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API.

Data Model:

The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}.

The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AppGatewaysServiceClient appGatewaysServiceClient = AppGatewaysServiceClient.create()) {
   AppGatewayName name = AppGatewayName.of("[PROJECT]", "[LOCATION]", "[APP_GATEWAY]");
   AppGateway response = appGatewaysServiceClient.getAppGateway(name);
 }
 

Note: close() needs to be called on the AppGatewaysServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of AppGatewaysServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AppGatewaysServiceSettings appGatewaysServiceSettings =
     AppGatewaysServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 AppGatewaysServiceClient appGatewaysServiceClient =
     AppGatewaysServiceClient.create(appGatewaysServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AppGatewaysServiceSettings appGatewaysServiceSettings =
     AppGatewaysServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 AppGatewaysServiceClient appGatewaysServiceClient =
     AppGatewaysServiceClient.create(appGatewaysServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

AppGatewaysServiceClient.ListAppGatewaysFixedSizeCollection

AppGatewaysServiceClient.ListAppGatewaysPage

AppGatewaysServiceClient.ListAppGatewaysPagedResponse

AppGatewaysServiceClient.ListLocationsFixedSizeCollection

AppGatewaysServiceClient.ListLocationsPage

AppGatewaysServiceClient.ListLocationsPagedResponse

AppGatewaysServiceGrpc

API Overview: The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API. Data Model: The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}. The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

AppGatewaysServiceGrpc.AppGatewaysServiceBlockingStub

A stub to allow clients to do synchronous rpc calls to service AppGatewaysService.

API Overview: The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API. Data Model: The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}. The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

AppGatewaysServiceGrpc.AppGatewaysServiceFutureStub

A stub to allow clients to do ListenableFuture-style rpc calls to service AppGatewaysService.

API Overview: The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API. Data Model: The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}. The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

AppGatewaysServiceGrpc.AppGatewaysServiceImplBase

Base class for the server implementation of the service AppGatewaysService.

API Overview: The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API. Data Model: The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}. The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

AppGatewaysServiceGrpc.AppGatewaysServiceStub

A stub to allow clients to do asynchronous rpc calls to service AppGatewaysService.

API Overview: The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API. Data Model: The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}. The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

AppGatewaysServiceProto

AppGatewaysServiceSettings

Settings class to configure an instance of AppGatewaysServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (beyondcorp.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getAppGateway to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AppGatewaysServiceSettings.Builder appGatewaysServiceSettingsBuilder =
     AppGatewaysServiceSettings.newBuilder();
 appGatewaysServiceSettingsBuilder
     .getAppGatewaySettings()
     .setRetrySettings(
         appGatewaysServiceSettingsBuilder
             .getAppGatewaySettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 AppGatewaysServiceSettings appGatewaysServiceSettings =
     appGatewaysServiceSettingsBuilder.build();
 

AppGatewaysServiceSettings.Builder

Builder for AppGatewaysServiceSettings.

CreateAppGatewayRequest

Request message for BeyondCorp.CreateAppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.CreateAppGatewayRequest

CreateAppGatewayRequest.Builder

Request message for BeyondCorp.CreateAppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.CreateAppGatewayRequest

DeleteAppGatewayRequest

Request message for BeyondCorp.DeleteAppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.DeleteAppGatewayRequest

DeleteAppGatewayRequest.Builder

Request message for BeyondCorp.DeleteAppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.DeleteAppGatewayRequest

GetAppGatewayRequest

Request message for BeyondCorp.GetAppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest

GetAppGatewayRequest.Builder

Request message for BeyondCorp.GetAppGateway.

Protobuf type google.cloud.beyondcorp.appgateways.v1.GetAppGatewayRequest

ListAppGatewaysRequest

Request message for BeyondCorp.ListAppGateways.

Protobuf type google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysRequest

ListAppGatewaysRequest.Builder

Request message for BeyondCorp.ListAppGateways.

Protobuf type google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysRequest

ListAppGatewaysResponse

Response message for BeyondCorp.ListAppGateways.

Protobuf type google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse

ListAppGatewaysResponse.Builder

Response message for BeyondCorp.ListAppGateways.

Protobuf type google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse

LocationName

LocationName.Builder

Builder for projects/{project}/locations/{location}.

Interfaces

AppGateway.AllocatedConnectionOrBuilder

AppGatewayOperationMetadataOrBuilder

AppGatewayOrBuilder

AppGatewaysServiceGrpc.AsyncService

API Overview: The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API. Data Model: The AppGatewaysService exposes the following resources:

  • AppGateways, named as follows: projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}. The AppGatewaysService service provides methods to manage (create/read/update/delete) BeyondCorp AppGateways.

CreateAppGatewayRequestOrBuilder

DeleteAppGatewayRequestOrBuilder

GetAppGatewayRequestOrBuilder

ListAppGatewaysRequestOrBuilder

ListAppGatewaysResponseOrBuilder

Enums

AppGateway.HostType

Enum containing list of all possible host types supported by BeyondCorp Connection.

Protobuf enum google.cloud.beyondcorp.appgateways.v1.AppGateway.HostType

AppGateway.State

Represents the different states of an AppGateway.

Protobuf enum google.cloud.beyondcorp.appgateways.v1.AppGateway.State

AppGateway.Type

Enum containing list of all possible network connectivity options supported by BeyondCorp AppGateway.

Protobuf enum google.cloud.beyondcorp.appgateways.v1.AppGateway.Type