Previous topic

2.1.5.1.1. mnclient.MemberNodeClient

Next topic

2.1.6. objectlistiterator

This Page

2.1.5.1.1. mnclient.MemberNodeClient

class mnclient.MemberNodeClient(base_url, timeout=30.0, defaultHeaders=None, cert_path=None, key_path=None, strict=True, capture_response_body=False, version='v1', types=<module 'd1_common.types.generated.dataoneTypes' from '/Users/pippin/.local/lib/python2.6/site-packages/DataONE_Common-1.0.0c7_SNAPSHOT-py2.6.egg/d1_common/types/generated/dataoneTypes.pyc'>)
__init__(base_url, timeout=30.0, defaultHeaders=None, cert_path=None, key_path=None, strict=True, capture_response_body=False, version='v1', types=<module 'd1_common.types.generated.dataoneTypes' from '/Users/pippin/.local/lib/python2.6/site-packages/DataONE_Common-1.0.0c7_SNAPSHOT-py2.6.egg/d1_common/types/generated/dataoneTypes.pyc'>)

Connect to a DataONE Member Node.

Parameters:
  • base_url – DataONE Node REST service BaseURL
  • timeout (integer) – Time in seconds that requests will wait for a response.
  • defaultHeaders (dictionary) – headers that will be sent with all requests.
  • cert_path (string) – Path to a PEM formatted certificate file.
  • key_path (string) – Path to a PEM formatted file that contains the private key for the certificate file. Only required if the certificate file does not itself contain a private key.
  • strict (boolean) – Raise BadStatusLine if the status line can’t be parsed as a valid HTTP/1.0 or 1.1 status line.
  • capture_response_body (boolean) – Capture the response body from the last operation and make it available in last_response_body.
  • version (string) – Value to insert in the URL version section.
  • types (PyXB) – The PyXB bindings to use for XML serialization and deserialization.
Returns:

None

Methods

DELETE(url[, query, headers, dump_path])
GET(url[, query, headers, dump_path]) GET, HEAD, DELETE:
HEAD(url[, query, headers, dump_path])
POST(url[, query, headers, fields, files, ...]) POST and PUT accepts the same parameters as GET, HEAD and DELETE.
PUT(url[, query, headers, fields, files, ...])
__init__(base_url[, timeout, ...]) Connect to a DataONE Member Node.
create(*args, **kwargs)
createResponse(*args, **kwargs)
delete(*args, **kwargs)
deleteResponse(*args, **kwargs)
describe(*args, **kwargs) Note: If the server returns a status code other than 200 OK, a
describeResponse(*args, **kwargs)
generateIdentifier(*args, **kwargs)
generateIdentifierResponse(*args, **kwargs)
get(pid[, vendorSpecific])
getCapabilities([vendorSpecific])
getCapabilitiesResponse([vendorSpecific])
getChecksum(*args, **kwargs)
getChecksumResponse(*args, **kwargs)
getLogRecords(*args, **kwargs)
getLogRecordsResponse(*args, **kwargs)
getReplica(pid[, vendorSpecific])
getResponse(*args, **kwargs)
getSystemMetadata(*args, **kwargs)
getSystemMetadataResponse(*args, **kwargs)
get_schema_version(method_signature) Find which schema version Node returns for a given method.
isAuthorized(*args, **kwargs)
isAuthorizedResponse(*args, **kwargs)
listObjects(*args, **kwargs)
listObjectsResponse(*args, **kwargs)
ping([vendorSpecific])
pingResponse(*args, **kwargs)
replicate(*args, **kwargs)
replicateResponse(*args, **kwargs)
synchronizationFailed(*args, **kwargs)
synchronizationFailedResponse(*args, **kwargs)
systemMetadataChanged(*args, **kwargs)
systemMetadataChangedResponse(*args, **kwargs)
update(*args, **kwargs)
updateResponse(*args, **kwargs)