Create an operation object that will get the state of the given asset.

@param assetId
id of asset to retrieve
@return the get operation
359902
public static EntityGetOperation<AssetInfo> get(String assetId) {
        return new DefaultGetOperation<AssetInfo>(ENTITY_SET, assetId,
                AssetInfo.class);
    }
850614
public ActionCommand getActionCommand(String commandId) {
        
        if (logger.isDebugEnabled()) {
            logger.debug("Attempting to retrieve ActionCommand with id ["
                         + commandId
                         + "] from the command registry.");
        }
        
        Object command = getCommand(commandId, ActionCommand.class);
        
        return (ActionCommand) command;
        
    }
367702
public static EntityGetOperation<ContentKeyInfo> get(String contentKeyId) {
        return new DefaultGetOperation<ContentKeyInfo>(ENTITY_SET,
                contentKeyId, ContentKeyInfo.class);
    }
1196209
public static String getResourceInstitution(String resourceId)
	{
		Resource resource = getResource(resourceId);
    	return resource.getDataInstitution();
	}
775554
public PropertyState getState(Attribute<E, ?> attribute) {
        if (stateless) {
            return null;
        }
        PropertyState state = attribute.getPropertyState().get(entity);
        return state == null ? PropertyState.FETCH : state;
    }
282078
@SuppressWarnings("unchecked")
  public Flowable<T> one(final String id) {
    Flowable<T> flowable = where("sys.id", id).all().map(
        new Function<CDAArray, T>() {
          @Override
          public T apply(CDAArray array) {
            if (array.items().size() == 0) {
              throw new CDAResourceNotFoundException(type, id);
            }
            CDAType resourceType = typeForClass(type);
            if (ASSET.equals(resourceType)) {
              return (T) array.assets().get(id);
            } else if (ENTRY.equals(resourceType)) {
              return (T) array.entries().get(id);
            } else if (CONTENTTYPE.equals(resourceType)) {
              return (T) array.items().get(0);
            } else if (LOCALE.equals(resourceType)) {
              T found = findById(array, id);
              if (found == null) {
                throw new CDAResourceNotFoundException(type, id);
              }
              return found;
            } else {
              throw new IllegalArgumentException("Cannot invoke query for type: " + type.getName());
            }
          }
        }
    );

    if (CONTENTTYPE.equals(typeForClass(type))) {
      flowable = flowable.map(new Function<T, T>() {
        @Override
        public T apply(T t) {
          if (t != null) {
            client.cache.types().put(t.id(), (CDAContentType) t);
          }
          return t;
        }
      });
    }
    return flowable;
  }
66211
def get(self, id: int) -> AssetClass:
        
        self.open_session()
        item = self.session.query(AssetClass).filter(
            AssetClass.id == id).first()
        return item
127531
public static EntityGetOperation<StreamingEndpointInfo> get(String streamingEndpointId) {
        return new DefaultGetOperation<StreamingEndpointInfo>(ENTITY_SET, streamingEndpointId,
                StreamingEndpointInfo.class);
    }
796707
@JmxOperation(description = "Retrieve operation status")
    public String getStatus(int id) {
        try {
            return getOperationStatus(id).toString();
        } catch(VoldemortException e) {
            return "No operation with id " + id + " found";
        }
    }
1196959
public function assetsGet($id)
    {
        $resource = '/assets/' . $id . '.json';

        // Create request
        $data = $this->auth->request('GET', $resource);

        return $data;
    }
926032
@Override
    protected Asset readJson(final String assetId) throws IOException, BadVersionException {
        FileInputStream fis = null;
        try {
            fis = DirectoryUtils.createFileInputStream(createFromRelative(assetId + ".json"));
            Asset ass = processJSON(fis);
            return ass;
        } finally {
            if (fis != null) {
                fis.close();
            }
        }
    }
882707
private GetOperationResult checkOperation(String operationId) {
        String result = "";
        GetOperationResult opResult = null;
        try {
            while (!result.equals("SUCCESS") && !result.equals("FAIL")) {
                opResult = getDiscoveryClient().getOperation(new GetOperationRequest().withOperationId(operationId));
                result = opResult.getOperation().getStatus();
                if (opResult.getOperation().getStatus().equals("SUCCESS")) {
                    LOG.info("Successfully get operation id " + operationId);
                    return opResult;
                } else {
                    if (opResult.getOperation().getStatus().equals("FAIL")) {
                        LOG.error("Error calling aws service for operationId:" + operationId + " error code:" + opResult.getOperation().getErrorCode() + " error message:" + opResult.getOperation().getErrorMessage());
                        return opResult;
                    }
                }
                //TODO make this configurable
                Thread.currentThread().sleep(5000); // if you call this to much amazon will rate limit you
            }
        } catch (InterruptedException e) {
            LOG.error("Error polling for aws response operation:", e);
        }
        return opResult;
    }
453344
public static EntityGetOperation<NotificationEndPointInfo> get(
            String notificationEndPointId) {
        return new DefaultGetOperation<NotificationEndPointInfo>(ENTITY_SET,
                notificationEndPointId, NotificationEndPointInfo.class);
    }
915320
public ContainerCreate create(String imageId) {
		ContainerCreate command = new ContainerCreate();
		command.image(imageId);
		action.setCommand(command);
		return command;
	}
724929
public Auth retrieve(String nsid) {
    	Auth auth =  this.auths.get(nsid);
    	if(auth != null)
    		return auth;
    	else
    		return this.authsByUser.get(nsid);
    }
493831
public static Bridge get(final String id) throws Exception {
        
        final BandwidthClient client = BandwidthClient.getInstance();
        return get(client, id); 
    }
74464
def get_resource(self, resource_id):
        
        # resource_id could be a path such as '/asset/123' so quote
        uri = self._get_resource_uri(guid=resource_id)
        return self.service._get(uri)