Package org.platformlayer.core.model

Examples of org.platformlayer.core.model.Tags.findAll()


    }
    OpenstackComputeClient computeClient = openstack.getComputeClient(cloud);

    getRecursionState().pushChildScope(cloud);

    List<String> assignedInstanceIds = instanceTags.findAll(Tag.ASSIGNED);
    if (assignedInstanceIds.isEmpty()) {
      if (createInstance && !OpsContext.isDelete()) {
        MachineCreationRequest request = buildMachineCreationRequest();

        PlatformLayerKey instanceKey = instance.getKey();
View Full Code Here


    TagChanges tagChanges = new TagChanges();
    for (Tag setTag : uniqueTags) {
      String tagKey = setTag.getKey();

      List<String> existing = tags.findAll(tagKey);
      if (existing == null || existing.isEmpty()) {
        tagChanges.addTags.add(setTag);
      } else if (existing.size() == 1) {
        String existingValue = existing.get(0);
        if (!Objects.equal(existingValue, setTag.value)) {
View Full Code Here

    }
    GoogleComputeClient computeClient = googleComputeClientFactory.getComputeClient(cloud);

    getRecursionState().pushChildScope(cloud);

    List<String> assignedInstanceIds = instanceTags.findAll(Tag.ASSIGNED);
    if (assignedInstanceIds.isEmpty()) {
      if (createInstance && !OpsContext.isDelete()) {
        MachineCreationRequest request = buildMachineCreationRequest();

        PlatformLayerKey instanceKey = instance.getKey();
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.