Tabnine Logo
AccessConfig.getNatIP
Code IndexAdd Tabnine to your IDE (free)

How to use
getNatIP
method
in
com.google.api.services.compute.model.AccessConfig

Best Java code snippets using com.google.api.services.compute.model.AccessConfig.getNatIP (Showing top 5 results out of 315)

origin: googleapis/google-cloud-java

 static AccessConfig fromPb(com.google.api.services.compute.model.AccessConfig configPb) {
  Builder builder = newBuilder();
  builder.setName(configPb.getName());
  if (configPb.getNatIP() != null) {
   builder.setNatIp(configPb.getNatIP());
  }
  if (configPb.getType() != null) {
   builder.setType(Type.valueOf(configPb.getType()));
  }
  return builder.build();
 }
}
origin: caskdata/cdap

if (network.equals(networkName)) {
 for (AccessConfig accessConfig : networkInterface.getAccessConfigs()) {
  if (accessConfig.getNatIP() != null) {
   properties.put("ip.external", accessConfig.getNatIP());
   break;
origin: com.google.cloud/google-cloud-compute

 static AccessConfig fromPb(com.google.api.services.compute.model.AccessConfig configPb) {
  Builder builder = newBuilder();
  builder.setName(configPb.getName());
  if (configPb.getNatIP() != null) {
   builder.setNatIp(configPb.getNatIP());
  }
  if (configPb.getType() != null) {
   builder.setType(Type.valueOf(configPb.getType()));
  }
  return builder.build();
 }
}
origin: GoogleCloudPlatform/pubsub

/**
 * For the given zone and client type, we add the instances created to the clients array, for the
 * base controller.
 */
private void addInstanceGroupInfo(String zone, ClientParams params) throws IOException {
 InstanceGroupManagersListManagedInstancesResponse response;
 do {
  response = compute.instanceGroupManagers().
    listManagedInstances(projectName, zone, "cps-loadtest-"
      + params.getClientType() + "-" + cores).execute();
  // If we are not instantiating any instances of this type, just return.
  if (response.getManagedInstances() == null) {
   return;
  }
 } while (!response.getManagedInstances().stream()
   .allMatch(i -> i.getCurrentAction().equals("NONE")));
 for (ManagedInstance managedInstance : response.getManagedInstances()) {
  String instanceName = managedInstance.getInstance()
    .substring(managedInstance.getInstance().lastIndexOf('/') + 1);
  Instance instance = compute.instances().get(projectName, zone, instanceName).execute();
  synchronized (this) {
   clients.add(new Client(
     params.getClientType(),
     instance.getNetworkInterfaces().get(0).getAccessConfigs().get(0).getNatIP(),
     projectName,
     params.subscription,
     executor));
  }
 }
}
origin: com.elastisys.scale/cloudpool.google.commons

String publicIp = accessConfigs.get(0).getNatIP();
if (publicIp != null) {
  builder.publicIp(publicIp);
com.google.api.services.compute.modelAccessConfiggetNatIP

Javadoc

An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.

Popular methods of AccessConfig

  • <init>
  • setName
    The name of this access configuration. The default and recommended name is External NAT but you can
  • setType
    The type of configuration. The default and only option is ONE_TO_ONE_NAT.
  • getName
    The name of this access configuration. The default and recommended name is External NAT but you can
  • getType
    The type of configuration. The default and only option is ONE_TO_ONE_NAT.
  • setNatIP
    An external IP address associated with this instance. Specify an unused static external IP address a

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Path (java.nio.file)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now