Examples of ServiceConfiguration


Examples of org.platformlayer.ops.ServiceConfiguration

    KeyPair sshKeyPair = privateData.findSshKey(serviceConfiguration.getProject(), serviceType);
    return new SshKey(null, "root", sshKeyPair);
  }

  public SshKey getOrCreate(String sshKeyName, String user) throws OpsException {
    ServiceConfiguration serviceConfiguration = opsContext.getServiceConfiguration();
    return privateData.getOrCreate(serviceConfiguration.getProject(), serviceConfiguration.getServiceType(),
        sshKeyName, user);
  }
View Full Code Here

Examples of org.platformlayer.ops.ServiceConfiguration

      federationMap.addDefault(defaultClient);

      platformLayerClient = FederatedPlatformLayerClient.build(runAsProjectId, federationMap);
    }

    ServiceConfiguration serviceConfiguration = new ServiceConfiguration(runAsProjectId, serviceType);

    ServiceAuthorization serviceAuthorization;
    try {
      serviceAuthorization = serviceAuthorizationService.findServiceAuthorization(serviceType, runAsProjectId);
      // if (serviceAuthorization == null) {
      // throw new OpsServiceNotAuthorizedException();
      // }
      if (serviceAuthorization == null) {
        serviceAuthorization = new ServiceAuthorization();
        serviceAuthorization.serviceType = serviceConfiguration.getServiceType().getKey();
      }
    } catch (RepositoryException e) {
      throw new OpsException("Error reading from repository", e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.