Return the ID of the resource to which this not is attached
545848
def get_ref(self):
        
        if self.ref_key == 'NETWORK':
            return self.network
        elif self.ref_key == 'NODE':
            return self.node
        elif self.ref_key == 'LINK':
            return self.link
        elif self.ref_key == 'GROUP':
            return self.group
        elif self.ref_key == 'SCENARIO':
            return self.scenario
        elif self.ref_key == 'PROJECT':
            return self.project
1226452
def get(self, logicalId):
        
        if logicalId not in self.resources:
            return None

        return SamResource(self.resources.get(logicalId))
535293
def find(self, resource_id, query=None, **kwargs):
        """"""

        if query is None:
            query = {}
        return self.client._get(
            self._url(resource_id),
            query,
            **kwargs
        )
1207291
def get_usedby_and_readonly(self, id):
        
        uri = self.URI + "/" + id + "/usedby/readonly"
        return self._client.get(uri)
1186246
def get_resource_ids(stack_resources, resource_type)
        resource_ids = {}
        stack_resources.each do |resource|
          if resource["ResourceType"] == resource_type
            key = resource["LogicalResourceId"]
            value = resource["PhysicalResourceId"]
            resource_ids[key] = value
          end
        end
        return resource_ids
      end
13351
def string_id(self):
    
    id = self.id()
    if not isinstance(id, basestring):
      id = None
    return id
135981
def id(self):
        """"""
        id = ''
        if (self.server_and_prefix is not None and
                self.server_and_prefix != ''):
            id += self.server_and_prefix + '/'
        if (self.identifier is not None):
            id += self.identifier
        return id
94251
def get_id(self):
        '''
        
        '''
        if self._dxid is not None:
            return self._dxid
        else:
            return 'app-' + self._name + '/' + self._alias
510107
def id(self):
        
        m = re.match(r'You are not authorized to access bug #(\d+)',
                     self.message)
        return m.group(1)
834679
def id
      id_attr = resource[:id]
      return id_attr.to_s if id_attr.present? && id_attr.is_a?(::Valkyrie::ID) && !id_attr.blank?
      return "" unless resource.respond_to?(:alternate_ids)
      resource.alternate_ids.first.to_s
    end
67657
def _get_pausable_id(self):
      
      queue = self.id
      if self.id.endswith("/"):
          queue = self.root_id
      return queue
1030510
public CmsUUID getId() {

        if (m_id != null) {
            return m_id;
        } else if (m_resource != null) {
            return m_resource.getStructureId();
        } else {
            // only in case of the default element view
            return CmsUUID.getNullUUID();
        }
    }
185626
public static String nameFromResourceId(String id) {
        return (id != null) ? ResourceId.fromString(id).name() : null;
    }
688389
def get_provenance_id(self):
        """"""
        if self.has_provenance():
            if 'provenanceId' in self.my_osid_object._my_map:
                return self.my_osid_object._my_map['provenanceId']
            else:
                return self.my_osid_object._my_map['provenanceItemId']
        raise IllegalState()
210321
private String getIdValue(Object source) throws IllegalAccessException {
		Field idField = configuration.getIdField(source.getClass());
		ResourceIdHandler handler = configuration.getIdHandler(source.getClass());

		return handler.asString(idField.get(source));
	}
1290541
def id(self):
        
        if self._id is None:
            self._id = int(self._element.get('id'))
        return self._id
1151556
def get_resource_url(self):
        

        name = self.__class__.resource_name
        url = self.__class__.rest_base_url()

        if self.id is not None:
            return "%s/%s/%s" % (url, name, self.id)

        return "%s/%s" % (url, name)