Package com.google.cloud.networkservices.v1
@Generated("by gapic-generator-java")
package com.google.cloud.networkservices.v1
A client to Network Services API
The interfaces provided are listed below, along with usage samples.
======================= DepServiceClient =======================
Service Description: Service describing handlers for resources.
Sample for DepServiceClient:
// 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 (DepServiceClient depServiceClient = DepServiceClient.create()) {
LbTrafficExtensionName name =
LbTrafficExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
LbTrafficExtension response = depServiceClient.getLbTrafficExtension(name);
}
======================= NetworkServicesClient =======================
Service Description: Service describing handlers for resources.
Sample for NetworkServicesClient:
// 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
EndpointPolicyName name =
EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
EndpointPolicy response = networkServicesClient.getEndpointPolicy(name);
}
-
ClassesClassDescriptionService Description: Service describing handlers for resources.Settings class to configure an instance of
DepServiceClient.Builder for DepServiceSettings.Service Description: Service describing handlers for resources.Settings class to configure an instance ofNetworkServicesClient.Builder for NetworkServicesSettings.