@param int    $LinodeID   [optional]
@param int    $DiskID     [required]
@param string $Label      [optional] The display label for this Disk
@param bool   $isReadOnly [optional] Enable forced read-only for this Disk

@return array
424190
public function update($LinodeID, $DiskID, $Label = null, $isReadOnly = null)
    {
        return $this->call('linode.disk.update', [
            'LinodeID'   => $LinodeID,
            'DiskID'     => $DiskID,
            'Label'      => $Label,
            'isReadOnly' => $isReadOnly,
        ]);
    }
1063427
public function getList($LinodeID, $JobID = null, $pendingOnly = null)
    {
        return $this->call('linode.job.list', [
            'LinodeID'    => $LinodeID,
            'JobID'       => $JobID,
            'pendingOnly' => $pendingOnly,
        ]);
    }
194612
def from_sysdisk(cls, label):
        """"""
        disks = cls.safe_call('hosting.disk.list', {'name': label})
        if len(disks):
            return disks[0]['id']
1139098
public function setReadonly($readonly)
    {
        if ($readonly) {
            $this->setAttribute('readonly', 'readonly');
        } else {
            $this->removeAttribute('readonly');
        }
        return parent::setReadonly($readonly);
    }
700985
private function doRenderStorageInfoMeta($postId = null, $readOnly = false) {
		global $post;

		if(empty($postId)) {
			$postId = $post->ID;
		}

		$meta = wp_get_attachment_metadata($postId);
		if(empty($meta)) {
			return;
		}

		if(!isset($meta['s3'])) {
			$meta = get_post_meta($postId, 'ilab_s3_info', true);
		}

		if(empty($meta) || !isset($meta['s3'])) {
			?>
            Not uploaded.
			<?php
			die;
		}

		$type = arrayPath($meta, 'type', false);
		if (empty($type)) {
			$type = get_post_mime_type($postId);
        }

		if(strpos($type, 'image') === 0) {
			$this->doRenderStoreageInfoMetaImage($postId, $meta, $readOnly);
		} else {
			$this->doRenderStorageinfoMetaDocument($postId, $meta, $readOnly);
		}
	}
160908
public function isReadOnly($object)
    {
        if ( ! is_object($object)) {
            throw ORMInvalidArgumentException::readOnlyRequiresManagedEntity($object);
        }

        return isset($this->readOnlyObjects[spl_object_hash($object)]);
    }
985219
public final void setReadOnly(boolean isReadOnly) throws SQLException 
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(this, tc, "Set readOnly to " + isReadOnly); 
        sqlConn.setReadOnly(isReadOnly);
        connectionPropertyChanged = true; 
    }
257465
public void setReadOnly(final String dataSourceName, final boolean readOnly) {
		Map<String, String> props = getConnPropsByDataSourceName(dataSourceName);
		props.put(PROPS_READ_ONLY, Boolean.toString(readOnly));
	}
303185
public function hasLabelOfNameAndUserId(string $labelName, string $userId): bool
    {
        /* @var GmailLabelInterface $label */
        if ($this->getLabelOfNameAndUserId($labelName, $userId) instanceof GmailLabelInterface) {
            return true;
        }

        return false;
    }
289009
function isReadable( $filename = false )
    {
        if ( !$filename )
            $filename = $this->FileName;
        return $this->doIsReadable( $filename );
    }
779207
protected function getResultData(ViewableData $record, $selected = false)
    {
        return [
            'id' => $record->{$this->getIDField()},
            'text' => $record->{$this->getTextField()},
            'formattedResult' => $this->getFormattedResult($record),
            'formattedSelection' => $this->getFormattedSelection($record),
            'selected' => $selected
        ];
    }
157102
public function getLabelOfNameAndUserId(string $labelName, string $userId)
    {
        foreach ($this->labels as $label) {
            /** @var GmailLabelInterface $label */
            if ($label->getName() === $labelName && $label->getUserId() === $userId) {
                return $label;
            }
        }

        return;
    }
884901
protected function getGerritSubmitRecordLabelByIdentifier($submitRecordId, $label)
    {
        $dbHandle = $this->getDatabase()->getDatabaseConnection();

        $query = 'SELECT `id`, `submit_record`, `label`, `status`, `by`
                  FROM ' . Database::TABLE_SUBMIT_RECORD_LABELS . '
                  WHERE `submit_record` = :submit_record_id
                        AND `label` = :label';
        $statement = $dbHandle->prepare($query);

        $statement->bindParam(':submit_record_id', $submitRecordId, \PDO::PARAM_INT);
        $statement->bindParam(':label', $label, \PDO::PARAM_STR);
        $executeResult = $statement->execute();

        $statement = $this->getDatabase()->checkQueryError($statement, $executeResult);
        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
203359
def _list_linodes(full=False):
    '''
    
    '''
    nodes = _query('linode', 'list')['DATA']
    ips = get_ips()

    ret = {}
    for node in nodes:
        this_node = {}
        linode_id = six.text_type(node['LINODEID'])

        this_node['id'] = linode_id
        this_node['image'] = node['DISTRIBUTIONVENDOR']
        this_node['name'] = node['LABEL']
        this_node['size'] = node['TOTALRAM']

        state = int(node['STATUS'])
        this_node['state'] = _get_status_descr_by_id(state)

        for key, val in six.iteritems(ips):
            if key == linode_id:
                this_node['private_ips'] = val['private_ips']
                this_node['public_ips'] = val['public_ips']

        if full:
            this_node['extra'] = node

        ret[node['LABEL']] = this_node

    return ret
1331144
public function open($id, $label = null) {
        return $this->webService->post("SELECT FROM 'PUSH'.'DOCUMENT'", array_filter([
            "id" => $id,
            "label" => $label
        ]));
    }
1138423
private void parseReadOnly(CloudTrailEventData eventData) throws IOException {
        jsonParser.nextToken();
        Boolean readOnly = null;
        if (jsonParser.getCurrentToken() != JsonToken.VALUE_NULL) {
            readOnly = jsonParser.getBooleanValue();
        }
        eventData.add(CloudTrailEventField.readOnly.name(), readOnly);
    }
374809
@Override
  public <T> boolean isCollectionReadonly(Class<T> entityClass) {
    return isCollectionReadonly(Util.determineCollectionName(entityClass));
  }