\ No newline at end of file
diff --git a/lib/Bio/KBase/workspace/Client.pm b/lib/Bio/KBase/workspace/Client.pm
index 4bb973e9..133e004a 100644
--- a/lib/Bio/KBase/workspace/Client.pm
+++ b/lib/Bio/KBase/workspace/Client.pm
@@ -2304,6 +2304,7 @@ obj_ref is a string
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -2332,6 +2333,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -2396,6 +2411,7 @@ obj_ref is a string
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -2424,6 +2440,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -2541,6 +2571,7 @@ $results is a Workspace.GetObjects2Results
GetObjects2Params is a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
ignoreErrors has a value which is a Workspace.boolean
+ infostruct has a value which is a Workspace.boolean
no_data has a value which is a Workspace.boolean
skip_external_system_updates has a value which is a Workspace.boolean
batch_external_system_updates has a value which is a Workspace.boolean
@@ -2581,6 +2612,7 @@ GetObjects2Results is a reference to a hash where the following keys are defined
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -2609,6 +2641,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -2658,6 +2704,7 @@ $results is a Workspace.GetObjects2Results
GetObjects2Params is a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
ignoreErrors has a value which is a Workspace.boolean
+ infostruct has a value which is a Workspace.boolean
no_data has a value which is a Workspace.boolean
skip_external_system_updates has a value which is a Workspace.boolean
batch_external_system_updates has a value which is a Workspace.boolean
@@ -2698,6 +2745,7 @@ GetObjects2Results is a reference to a hash where the following keys are defined
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -2726,6 +2774,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -2857,6 +2919,7 @@ boolean is an int
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -2885,6 +2948,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -2953,6 +3030,7 @@ boolean is an int
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -2981,6 +3059,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -3521,6 +3613,7 @@ obj_ref is a string
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -3549,6 +3642,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -3614,6 +3721,7 @@ obj_ref is a string
ObjectData is a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+ infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -3642,6 +3750,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
ProvenanceAction is a reference to a hash where the following keys are defined:
time has a value which is a Workspace.timestamp
epoch has a value which is a Workspace.epoch
@@ -4922,6 +5044,7 @@ $params is a Workspace.GetObjectInfo3Params
$results is a Workspace.GetObjectInfo3Results
GetObjectInfo3Params is a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
+ infostruct has a value which is a Workspace.boolean
includeMetadata has a value which is a Workspace.boolean
ignoreErrors has a value which is a Workspace.boolean
ObjectSpecification is a reference to a hash where the following keys are defined:
@@ -4959,6 +5082,7 @@ object_path is a string
GetObjectInfo3Results is a reference to a hash where the following keys are defined:
infos has a value which is a reference to a list where each element is a Workspace.object_info
paths has a value which is a reference to a list where each element is a reference to a list where each element is a Workspace.obj_ref
+ infostructs has a value which is a reference to a list where each element is a Workspace.ObjectInfo
object_info is a reference to a list containing 11 items:
0: (objid) a Workspace.obj_id
1: (name) a Workspace.obj_name
@@ -4975,6 +5099,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
@@ -4986,6 +5124,7 @@ $params is a Workspace.GetObjectInfo3Params
$results is a Workspace.GetObjectInfo3Results
GetObjectInfo3Params is a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
+ infostruct has a value which is a Workspace.boolean
includeMetadata has a value which is a Workspace.boolean
ignoreErrors has a value which is a Workspace.boolean
ObjectSpecification is a reference to a hash where the following keys are defined:
@@ -5023,6 +5162,7 @@ object_path is a string
GetObjectInfo3Results is a reference to a hash where the following keys are defined:
infos has a value which is a reference to a list where each element is a Workspace.object_info
paths has a value which is a reference to a list where each element is a reference to a list where each element is a Workspace.obj_ref
+ infostructs has a value which is a reference to a list where each element is a Workspace.ObjectInfo
object_info is a reference to a list containing 11 items:
0: (objid) a Workspace.obj_id
1: (name) a Workspace.obj_name
@@ -5039,6 +5179,20 @@ type_string is a string
timestamp is a string
username is a string
usermeta is a reference to a hash where the key is a string and the value is a string
+ObjectInfo is a reference to a hash where the following keys are defined:
+ objid has a value which is a Workspace.obj_id
+ name has a value which is a Workspace.obj_name
+ type has a value which is a Workspace.type_string
+ save_date has a value which is a Workspace.timestamp
+ version has a value which is an int
+ saved_by has a value which is a Workspace.username
+ wsid has a value which is a Workspace.ws_id
+ workspace has a value which is a Workspace.ws_name
+ chsum has a value which is a string
+ size has a value which is an int
+ meta has a value which is a Workspace.usermeta
+ adminmeta has a value which is a Workspace.usermeta
+ path has a value which is a reference to a list where each element is a Workspace.obj_ref
=end text
@@ -8065,6 +8219,127 @@ Get the administrative role for the current user.
+=head2 alter_admin_object_metadata
+
+ $obj->alter_admin_object_metadata($params)
+
+=over 4
+
+=item Parameter and return types
+
+=begin html
+
+
+$params is a Workspace.AlterAdminObjectMetadataParams
+AlterAdminObjectMetadataParams is a reference to a hash where the following keys are defined:
+ updates has a value which is a reference to a list where each element is a Workspace.ObjectMetadataUpdate
+ObjectMetadataUpdate is a reference to a hash where the following keys are defined:
+ oi has a value which is a Workspace.ObjectIdentity
+ new has a value which is a Workspace.usermeta
+ remove has a value which is a reference to a list where each element is a string
+ObjectIdentity is a reference to a hash where the following keys are defined:
+ workspace has a value which is a Workspace.ws_name
+ wsid has a value which is a Workspace.ws_id
+ name has a value which is a Workspace.obj_name
+ objid has a value which is a Workspace.obj_id
+ ver has a value which is a Workspace.obj_ver
+ ref has a value which is a Workspace.obj_ref
+ws_name is a string
+ws_id is an int
+obj_name is a string
+obj_id is an int
+obj_ver is an int
+obj_ref is a string
+usermeta is a reference to a hash where the key is a string and the value is a string
+
+
+
+=end html
+
+=begin text
+
+$params is a Workspace.AlterAdminObjectMetadataParams
+AlterAdminObjectMetadataParams is a reference to a hash where the following keys are defined:
+ updates has a value which is a reference to a list where each element is a Workspace.ObjectMetadataUpdate
+ObjectMetadataUpdate is a reference to a hash where the following keys are defined:
+ oi has a value which is a Workspace.ObjectIdentity
+ new has a value which is a Workspace.usermeta
+ remove has a value which is a reference to a list where each element is a string
+ObjectIdentity is a reference to a hash where the following keys are defined:
+ workspace has a value which is a Workspace.ws_name
+ wsid has a value which is a Workspace.ws_id
+ name has a value which is a Workspace.obj_name
+ objid has a value which is a Workspace.obj_id
+ ver has a value which is a Workspace.obj_ver
+ ref has a value which is a Workspace.obj_ref
+ws_name is a string
+ws_id is an int
+obj_name is a string
+obj_id is an int
+obj_ver is an int
+obj_ref is a string
+usermeta is a reference to a hash where the key is a string and the value is a string
+
+
+=end text
+
+=item Description
+
+Update admin metadata for an object. The user must have full workspace service
+administration privileges.
+
+=back
+
+=cut
+
+ sub alter_admin_object_metadata
+{
+ my($self, @args) = @_;
+
+# Authentication: required
+
+ if ((my $n = @args) != 1)
+ {
+ Bio::KBase::Exceptions::ArgumentValidationError->throw(error =>
+ "Invalid argument count for function alter_admin_object_metadata (received $n, expecting 1)");
+ }
+ {
+ my($params) = @args;
+
+ my @_bad_arguments;
+ (ref($params) eq 'HASH') or push(@_bad_arguments, "Invalid type for argument 1 \"params\" (value was \"$params\")");
+ if (@_bad_arguments) {
+ my $msg = "Invalid arguments passed to alter_admin_object_metadata:\n" . join("", map { "\t$_\n" } @_bad_arguments);
+ Bio::KBase::Exceptions::ArgumentValidationError->throw(error => $msg,
+ method_name => 'alter_admin_object_metadata');
+ }
+ }
+
+ my $url = $self->{url};
+ my $result = $self->{client}->call($url, $self->{headers}, {
+ method => "Workspace.alter_admin_object_metadata",
+ params => \@args,
+ });
+ if ($result) {
+ if ($result->is_error) {
+ Bio::KBase::Exceptions::JSONRPC->throw(error => $result->error_message,
+ code => $result->content->{error}->{code},
+ method_name => 'alter_admin_object_metadata',
+ data => $result->content->{error}->{error} # JSON::RPC::ReturnObject only supports JSONRPC 1.1 or 1.O
+ );
+ } else {
+ return;
+ }
+ } else {
+ Bio::KBase::Exceptions::HTTP->throw(error => "Error invoking method alter_admin_object_metadata",
+ status_line => $self->{client}->status_line,
+ method_name => 'alter_admin_object_metadata',
+ );
+ }
+}
+
+
+
=head2 administer
$response = $obj->administer($command)
@@ -9482,6 +9757,82 @@ a reference to a list containing 11 items:
+=head2 ObjectInfo
+
+=over 4
+
+
+
+=item Description
+
+Information about an object as a struct rather than a tuple.
+This allows adding fields in a backward compatible way in the future.
+Includes more fields than object_info.
+
+obj_id objid - the numerical id of the object.
+obj_name name - the name of the object.
+type_string type - the type of the object.
+timestamp save_date - the save date of the object.
+obj_ver ver - the version of the object.
+username saved_by - the user that saved or copied the object.
+ws_id wsid - the workspace containing the object.
+ws_name workspace - the workspace containing the object.
+string chsum - the md5 checksum of the object.
+int size - the size of the object in bytes.
+usermeta meta - arbitrary user-supplied metadata about the object.
+usermeta adminmeta - service administrator metadata set on an object. Unlike most
+ other object fields, admin metadata is mutable.
+list path - the path to the object.
+
+
+=item Definition
+
+=begin html
+
+
+a reference to a hash where the following keys are defined:
+objid has a value which is a Workspace.obj_id
+name has a value which is a Workspace.obj_name
+type has a value which is a Workspace.type_string
+save_date has a value which is a Workspace.timestamp
+version has a value which is an int
+saved_by has a value which is a Workspace.username
+wsid has a value which is a Workspace.ws_id
+workspace has a value which is a Workspace.ws_name
+chsum has a value which is a string
+size has a value which is an int
+meta has a value which is a Workspace.usermeta
+adminmeta has a value which is a Workspace.usermeta
+path has a value which is a reference to a list where each element is a Workspace.obj_ref
+
+
+
+=end html
+
+=begin text
+
+a reference to a hash where the following keys are defined:
+objid has a value which is a Workspace.obj_id
+name has a value which is a Workspace.obj_name
+type has a value which is a Workspace.type_string
+save_date has a value which is a Workspace.timestamp
+version has a value which is an int
+saved_by has a value which is a Workspace.username
+wsid has a value which is a Workspace.ws_id
+workspace has a value which is a Workspace.ws_name
+chsum has a value which is a string
+size has a value which is an int
+meta has a value which is a Workspace.usermeta
+adminmeta has a value which is a Workspace.usermeta
+path has a value which is a reference to a list where each element is a Workspace.obj_ref
+
+
+=end text
+
+=back
+
+
+
=head2 ExternalDataUnit
=over 4
@@ -10560,6 +10911,7 @@ The data and supplemental info for an object.
UnspecifiedObject data - the object's data or subset data.
object_info info - information about the object.
+ ObjectInfo infostruct - information about the object as a structure rather than a tuple.
list path - the path to the object through the object reference graph. All the
references in the path are absolute.
list provenance - the object's provenance.
@@ -10595,6 +10947,7 @@ The data and supplemental info for an object.
a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -10617,6 +10970,7 @@ handle_stacktrace has a value which is a string
a reference to a hash where the following keys are defined:
data has a value which is an UnspecifiedObject, which can hold any non-null object
info has a value which is a Workspace.object_info
+infostruct has a value which is a Workspace.ObjectInfo
path has a value which is a reference to a list where each element is a Workspace.obj_ref
provenance has a value which is a reference to a list where each element is a Workspace.ProvenanceAction
creator has a value which is a Workspace.username
@@ -10656,6 +11010,9 @@ Input parameters for the get_objects2 function.
boolean ignoreErrors - Don't throw an exception if an object cannot
be accessed; return null for that object's information instead.
Default false.
+ boolean infostruct - return the object information as a structure rather than a tuple.
+ Default false. If true, ObjectData.path will be null as it is provided in
+ the ObjectInfo data.
boolean no_data - return the provenance, references, and
object_info for this object without the object data. Default false.
boolean skip_external_system_updates - if the objects contain any external IDs, don't
@@ -10678,6 +11035,7 @@ Input parameters for the get_objects2 function.
a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
ignoreErrors has a value which is a Workspace.boolean
+infostruct has a value which is a Workspace.boolean
no_data has a value which is a Workspace.boolean
skip_external_system_updates has a value which is a Workspace.boolean
batch_external_system_updates has a value which is a Workspace.boolean
@@ -10691,6 +11049,7 @@ batch_external_system_updates has a value which is a Workspace.boolean
a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
ignoreErrors has a value which is a Workspace.boolean
+infostruct has a value which is a Workspace.boolean
no_data has a value which is a Workspace.boolean
skip_external_system_updates has a value which is a Workspace.boolean
batch_external_system_updates has a value which is a Workspace.boolean
@@ -11267,7 +11626,9 @@ Input parameters for the "get_object_info3" function.
ignored.
Optional arguments:
- boolean includeMetadata - include the object metadata in the returned
+ boolean infostruct - return information about the object as a structure rather than a tuple.
+ Default false. If true, infos and paths will be null.
+ boolean includeMetadata - include the user and admin metadata in the returned
information. Default false.
boolean ignoreErrors - Don't throw an exception if an object cannot
be accessed; return null for that object's information and path instead.
@@ -11281,6 +11642,7 @@ Input parameters for the "get_object_info3" function.
a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
+infostruct has a value which is a Workspace.boolean
includeMetadata has a value which is a Workspace.boolean
ignoreErrors has a value which is a Workspace.boolean
@@ -11292,6 +11654,7 @@ ignoreErrors has a value which is a Workspace.boolean
a reference to a hash where the following keys are defined:
objects has a value which is a reference to a list where each element is a Workspace.ObjectSpecification
+infostruct has a value which is a Workspace.boolean
includeMetadata has a value which is a Workspace.boolean
ignoreErrors has a value which is a Workspace.boolean
@@ -11315,6 +11678,7 @@ Output from the get_object_info3 function.
list infos - the object_info data for each object.
list paths - the path to the object through the object reference graph for
each object. All the references in the path are absolute.
+ list infostructs - the ObjectInfo data for each object.
=item Definition
@@ -11325,6 +11689,7 @@ Output from the get_object_info3 function.
a reference to a hash where the following keys are defined:
infos has a value which is a reference to a list where each element is a Workspace.object_info
paths has a value which is a reference to a list where each element is a reference to a list where each element is a Workspace.obj_ref
+infostructs has a value which is a reference to a list where each element is a Workspace.ObjectInfo
@@ -11335,6 +11700,7 @@ paths has a value which is a reference to a list where each element is a referen
a reference to a hash where the following keys are defined:
infos has a value which is a reference to a list where each element is a Workspace.object_info
paths has a value which is a reference to a list where each element is a reference to a list where each element is a Workspace.obj_ref
+infostructs has a value which is a reference to a list where each element is a Workspace.ObjectInfo
=end text
@@ -12451,6 +12817,93 @@ adminrole has a value which is a string
+=head2 ObjectMetadataUpdate
+
+=over 4
+
+
+
+=item Description
+
+An object metadata update specification.
+
+ Required arguments:
+ ObjectIdentity oi - the object to be altered
+
+ One or both of the following arguments are required:
+ usermeta new - metadata to assign to the workspace. Duplicate keys will
+ be overwritten.
+ list remove - these keys will be removed from the workspace
+ metadata key/value pairs.
+
+
+=item Definition
+
+=begin html
+
+
+a reference to a hash where the following keys are defined:
+oi has a value which is a Workspace.ObjectIdentity
+new has a value which is a Workspace.usermeta
+remove has a value which is a reference to a list where each element is a string
+
+
+
+=end html
+
+=begin text
+
+a reference to a hash where the following keys are defined:
+oi has a value which is a Workspace.ObjectIdentity
+new has a value which is a Workspace.usermeta
+remove has a value which is a reference to a list where each element is a string
+
+
+=end text
+
+=back
+
+
+
+=head2 AlterAdminObjectMetadataParams
+
+=over 4
+
+
+
+=item Description
+
+Input parameters for the alter_admin_object_metadata method.
+
+ updates - the metadata updates to apply to the objects. If the same object is specified
+ twice in the list, the update order is unspecified. At most 1000 updates are allowed
+ in one call.
+
+
+=item Definition
+
+=begin html
+
+
+a reference to a hash where the following keys are defined:
+updates has a value which is a reference to a list where each element is a Workspace.ObjectMetadataUpdate
+
+
+
+=end html
+
+=begin text
+
+a reference to a hash where the following keys are defined:
+updates has a value which is a reference to a list where each element is a Workspace.ObjectMetadataUpdate
+
+
+=end text
+
+=back
+
+
+
=cut
package Bio::KBase::workspace::Client::RpcClient;
diff --git a/lib/biokbase/workspace/client.py b/lib/biokbase/workspace/client.py
index 6c5c0ab6..c5be1a5f 100644
--- a/lib/biokbase/workspace/client.py
+++ b/lib/biokbase/workspace/client.py
@@ -1275,55 +1275,56 @@ def get_objects(self, object_ids, context=None):
:returns: instance of list of type "ObjectData" (The data and
supplemental info for an object. UnspecifiedObject data - the
object's data or subset data. object_info info - information about
- the object. list path - the path to the object through
- the object reference graph. All the references in the path are
- absolute. list provenance - the object's
- provenance. username creator - the user that first saved the
- object to the workspace. ws_id orig_wsid - the id of the workspace
- in which this object was originally saved. Missing for objects
- saved prior to version 0.4.1. timestamp created - the date the
- object was first saved to the workspace. epoch epoch - the date
- the object was first saved to the workspace. list refs -
- the references contained within the object. obj_ref copied - the
- reference of the source object if this object is a copy and the
- copy source exists and is accessible. null otherwise. boolean
- copy_source_inaccessible - true if the object was copied from
- another object, but that object is no longer accessible to the
- user. False otherwise. mapping>
- extracted_ids - any ids extracted from the object. string
- handle_error - if an error occurs while setting ACLs on embedded
- external IDs, it will be reported here. If not for historical
- reasons the parameter would be called "external_id_error". string
- handle_stacktrace - the stacktrace for handle_error. As above, the
- parameter should be called "external_id_stacktrace".) ->
- structure: parameter "data" of unspecified object, parameter
- "info" of type "object_info" (Information about an object,
- including user provided metadata. obj_id objid - the numerical id
- of the object. obj_name name - the name of the object. type_string
- type - the type of the object. timestamp save_date - the save date
- of the object. obj_ver ver - the version of the object. username
- saved_by - the user that saved or copied the object. ws_id wsid -
- the workspace containing the object. ws_name workspace - the
- workspace containing the object. string chsum - the md5 checksum
- of the object. int size - the size of the object in bytes.
- usermeta meta - arbitrary user-supplied metadata about the
- object.) -> tuple of size 11: parameter "objid" of type "obj_id"
- (The unique, permanent numerical ID of an object.), parameter
- "name" of type "obj_name" (A string used as a name for an object.
- Any string consisting of alphanumeric characters and the
- characters |._- that is not an integer is acceptable.), parameter
- "type" of type "type_string" (A type string. Specifies the type
- and its version in a single string in the format
- [module].[typename]-[major].[minor]: module - a string. The module
- name of the typespec containing the type. typename - a string. The
- name of the type as assigned by the typedef statement. major - an
- integer. The major version of the type. A change in the major
- version implies the type has changed in a non-backwards compatible
- way. minor - an integer. The minor version of the type. A change
- in the minor version implies that the type has changed in a way
- that is backwards compatible with previous type definitions. In
- many cases, the major and minor versions are optional, and if not
- provided the most recent version will be used. Example:
+ the object. ObjectInfo infostruct - information about the object
+ as a structure rather than a tuple. list path - the path
+ to the object through the object reference graph. All the
+ references in the path are absolute. list
+ provenance - the object's provenance. username creator - the user
+ that first saved the object to the workspace. ws_id orig_wsid -
+ the id of the workspace in which this object was originally saved.
+ Missing for objects saved prior to version 0.4.1. timestamp
+ created - the date the object was first saved to the workspace.
+ epoch epoch - the date the object was first saved to the
+ workspace. list refs - the references contained within
+ the object. obj_ref copied - the reference of the source object if
+ this object is a copy and the copy source exists and is
+ accessible. null otherwise. boolean copy_source_inaccessible -
+ true if the object was copied from another object, but that object
+ is no longer accessible to the user. False otherwise.
+ mapping> extracted_ids - any ids
+ extracted from the object. string handle_error - if an error
+ occurs while setting ACLs on embedded external IDs, it will be
+ reported here. If not for historical reasons the parameter would
+ be called "external_id_error". string handle_stacktrace - the
+ stacktrace for handle_error. As above, the parameter should be
+ called "external_id_stacktrace".) -> structure: parameter "data"
+ of unspecified object, parameter "info" of type "object_info"
+ (Information about an object, including user provided metadata.
+ obj_id objid - the numerical id of the object. obj_name name - the
+ name of the object. type_string type - the type of the object.
+ timestamp save_date - the save date of the object. obj_ver ver -
+ the version of the object. username saved_by - the user that saved
+ or copied the object. ws_id wsid - the workspace containing the
+ object. ws_name workspace - the workspace containing the object.
+ string chsum - the md5 checksum of the object. int size - the size
+ of the object in bytes. usermeta meta - arbitrary user-supplied
+ metadata about the object.) -> tuple of size 11: parameter "objid"
+ of type "obj_id" (The unique, permanent numerical ID of an
+ object.), parameter "name" of type "obj_name" (A string used as a
+ name for an object. Any string consisting of alphanumeric
+ characters and the characters |._- that is not an integer is
+ acceptable.), parameter "type" of type "type_string" (A type
+ string. Specifies the type and its version in a single string in
+ the format [module].[typename]-[major].[minor]: module - a string.
+ The module name of the typespec containing the type. typename - a
+ string. The name of the type as assigned by the typedef statement.
+ major - an integer. The major version of the type. A change in the
+ major version implies the type has changed in a non-backwards
+ compatible way. minor - an integer. The minor version of the type.
+ A change in the minor version implies that the type has changed in
+ a way that is backwards compatible with previous type definitions.
+ In many cases, the major and minor versions are optional, and if
+ not provided the most recent version will be used. Example:
MyModule.MyType-3.1), parameter "save_date" of type "timestamp" (A
time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the
character Z (representing the UTC timezone) or the difference in
@@ -1340,6 +1341,57 @@ def get_objects(self, object_ids, context=None):
kbasetest:my_workspace.), parameter "chsum" of String, parameter
"size" of Long, parameter "meta" of type "usermeta" (User provided
metadata about an object. Arbitrary key-value pairs provided by
+ the user.) -> mapping from String to String, parameter
+ "infostruct" of type "ObjectInfo" (Information about an object as
+ a struct rather than a tuple. This allows adding fields in a
+ backward compatible way in the future. Includes more fields than
+ object_info. obj_id objid - the numerical id of the object.
+ obj_name name - the name of the object. type_string type - the
+ type of the object. timestamp save_date - the save date of the
+ object. obj_ver ver - the version of the object. username saved_by
+ - the user that saved or copied the object. ws_id wsid - the
+ workspace containing the object. ws_name workspace - the workspace
+ containing the object. string chsum - the md5 checksum of the
+ object. int size - the size of the object in bytes. usermeta meta
+ - arbitrary user-supplied metadata about the object. usermeta
+ adminmeta - service administrator metadata set on an object.
+ Unlike most other object fields, admin metadata is mutable.
+ list path - the path to the object.) -> structure:
+ parameter "objid" of type "obj_id" (The unique, permanent
+ numerical ID of an object.), parameter "name" of type "obj_name"
+ (A string used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "type" of type "type_string" (A
+ type string. Specifies the type and its version in a single string
+ in the format [module].[typename]-[major].[minor]: module - a
+ string. The module name of the typespec containing the type.
+ typename - a string. The name of the type as assigned by the
+ typedef statement. major - an integer. The major version of the
+ type. A change in the major version implies the type has changed
+ in a non-backwards compatible way. minor - an integer. The minor
+ version of the type. A change in the minor version implies that
+ the type has changed in a way that is backwards compatible with
+ previous type definitions. In many cases, the major and minor
+ versions are optional, and if not provided the most recent version
+ will be used. Example: MyModule.MyType-3.1), parameter "save_date"
+ of type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ,
+ where Z is either the character Z (representing the UTC timezone)
+ or the difference in time to UTC in the format +/-HHMM, eg:
+ 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC
+ time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of
+ Long, parameter "saved_by" of type "username" (Login name of a
+ KBase user account.), parameter "wsid" of type "ws_id" (The
+ unique, permanent numerical ID of a workspace.), parameter
+ "workspace" of type "ws_name" (A string used as a name for a
+ workspace. Any string consisting of alphanumeric characters and
+ "_", ".", or "-" that is not an integer is acceptable. The name
+ may optionally be prefixed with the workspace owner's user name
+ and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of
+ String, parameter "size" of Long, parameter "meta" of type
+ "usermeta" (User provided metadata about an object. Arbitrary
+ key-value pairs provided by the user.) -> mapping from String to
+ String, parameter "adminmeta" of type "usermeta" (User provided
+ metadata about an object. Arbitrary key-value pairs provided by
the user.) -> mapping from String to String, parameter "path" of
list of type "obj_ref" (A string that uniquely identifies an
object in the workspace service. The format is [ws_name or
@@ -1350,51 +1402,60 @@ def get_objects(self, object_ids, context=None):
the object name Panic in workspace with id 42. Towel/1/6 would
identify the 6th version of the object with id 1 in the Towel
workspace.If the version number is omitted, the latest version of
- the object is assumed.), parameter "provenance" of list of type
- "ProvenanceAction" (A provenance action. A provenance action (PA)
- is an action taken while transforming one data object to another.
- There may be several PAs taken in series. A PA is typically
- running a script, running an api command, etc. All of the
- following fields are optional, but more information provided
- equates to better data provenance. If a provenance action has no
- fields defined at all, it is silently dropped from the list.
- resolved_ws_objects should never be set by the user; it is set by
- the workspace service when returning data. On input, only one of
- the time or epoch may be supplied. Both are supplied on output.
- The maximum size of the entire provenance object, including all
- actions, is 1MB. timestamp time - the time the action was started
- epoch epoch - the time the action was started. string caller - the
- name or id of the invoker of this provenance action. In most
- cases, this will be the same for all PAs. string service - the
- name of the service that performed this action. string service_ver
- - the version of the service that performed this action. string
- method - the method of the service that performed this action.
- list method_params - the parameters of the
- method that performed this action. If an object in the parameters
- is a workspace object, also put the object reference in the
- input_ws_object list. string script - the name of the script that
- performed this action. string script_ver - the version of the
- script that performed this action. string script_command_line -
- the command line provided to the script that performed this
- action. If workspace objects were provided in the command line,
- also put the object reference in the input_ws_object list.
- list input_ws_objects - the workspace objects that
- were used as input to this action; typically these will also be
- present as parts of the method_params or the script_command_line
- arguments. A reference path into the object graph may be supplied.
- list resolved_ws_objects - the workspace objects ids from
- input_ws_objects resolved to permanent workspace object references
- by the workspace service. list intermediate_incoming - if
- the previous action produced output that 1) was not stored in a
- referrable way, and 2) is used as input for this action, provide
- it with an arbitrary and unique ID here, in the order of the input
- arguments to this action. These IDs can be used in the
- method_params argument. list intermediate_outgoing - if
- this action produced output that 1) was not stored in a referrable
- way, and 2) is used as input for the next action, provide it with
- an arbitrary and unique ID here, in the order of the output values
- from this action. These IDs can be used in the
- intermediate_incoming argument in the next action.
+ the object is assumed.), parameter "path" of list of type
+ "obj_ref" (A string that uniquely identifies an object in the
+ workspace service. The format is [ws_name or id]/[obj_name or
+ id]/[obj_ver]. For example, MyFirstWorkspace/MyFirstObject/3 would
+ identify the third version of an object called MyFirstObject in
+ the workspace called MyFirstWorkspace. 42/Panic/1 would identify
+ the first version of the object name Panic in workspace with id
+ 42. Towel/1/6 would identify the 6th version of the object with id
+ 1 in the Towel workspace.If the version number is omitted, the
+ latest version of the object is assumed.), parameter "provenance"
+ of list of type "ProvenanceAction" (A provenance action. A
+ provenance action (PA) is an action taken while transforming one
+ data object to another. There may be several PAs taken in series.
+ A PA is typically running a script, running an api command, etc.
+ All of the following fields are optional, but more information
+ provided equates to better data provenance. If a provenance action
+ has no fields defined at all, it is silently dropped from the
+ list. resolved_ws_objects should never be set by the user; it is
+ set by the workspace service when returning data. On input, only
+ one of the time or epoch may be supplied. Both are supplied on
+ output. The maximum size of the entire provenance object,
+ including all actions, is 1MB. timestamp time - the time the
+ action was started epoch epoch - the time the action was started.
+ string caller - the name or id of the invoker of this provenance
+ action. In most cases, this will be the same for all PAs. string
+ service - the name of the service that performed this action.
+ string service_ver - the version of the service that performed
+ this action. string method - the method of the service that
+ performed this action. list method_params - the
+ parameters of the method that performed this action. If an object
+ in the parameters is a workspace object, also put the object
+ reference in the input_ws_object list. string script - the name of
+ the script that performed this action. string script_ver - the
+ version of the script that performed this action. string
+ script_command_line - the command line provided to the script that
+ performed this action. If workspace objects were provided in the
+ command line, also put the object reference in the input_ws_object
+ list. list input_ws_objects - the workspace objects
+ that were used as input to this action; typically these will also
+ be present as parts of the method_params or the
+ script_command_line arguments. A reference path into the object
+ graph may be supplied. list resolved_ws_objects - the
+ workspace objects ids from input_ws_objects resolved to permanent
+ workspace object references by the workspace service. list
+ intermediate_incoming - if the previous action produced output
+ that 1) was not stored in a referrable way, and 2) is used as
+ input for this action, provide it with an arbitrary and unique ID
+ here, in the order of the input arguments to this action. These
+ IDs can be used in the method_params argument. list
+ intermediate_outgoing - if this action produced output that 1) was
+ not stored in a referrable way, and 2) is used as input for the
+ next action, provide it with an arbitrary and unique ID here, in
+ the order of the output values from this action. These IDs can be
+ used in the intermediate_incoming argument in the next action.
list external_data - data external to the
workspace that was either imported to the workspace or used to
create a workspace object. list subactions - the
@@ -1530,11 +1591,14 @@ def get_objects2(self, params, context=None):
as a subset if specified). Optional parameters: boolean
ignoreErrors - Don't throw an exception if an object cannot be
accessed; return null for that object's information instead.
- Default false. boolean no_data - return the provenance,
- references, and object_info for this object without the object
- data. Default false. boolean skip_external_system_updates - if the
- objects contain any external IDs, don't contact external systems
- to perform any updates for those IDs (often ACL updates, e.g. for
+ Default false. boolean infostruct - return the object information
+ as a structure rather than a tuple. Default false. If true,
+ ObjectData.path will be null as it is provided in the ObjectInfo
+ data. boolean no_data - return the provenance, references, and
+ object_info for this object without the object data. Default
+ false. boolean skip_external_system_updates - if the objects
+ contain any external IDs, don't contact external systems to
+ perform any updates for those IDs (often ACL updates, e.g. for
handle / blobstore / sample IDs). In some cases this can speed up
fetching the data. Default false. boolean
batch_external_system_updates - if the objects contain any
@@ -1729,8 +1793,9 @@ def get_objects2(self, params, context=None):
of type "boolean" (A boolean. 0 = false, other = true.), parameter
"strict_arrays" of type "boolean" (A boolean. 0 = false, other =
true.), parameter "ignoreErrors" of type "boolean" (A boolean. 0 =
- false, other = true.), parameter "no_data" of type "boolean" (A
- boolean. 0 = false, other = true.), parameter
+ false, other = true.), parameter "infostruct" of type "boolean" (A
+ boolean. 0 = false, other = true.), parameter "no_data" of type
+ "boolean" (A boolean. 0 = false, other = true.), parameter
"skip_external_system_updates" of type "boolean" (A boolean. 0 =
false, other = true.), parameter "batch_external_system_updates"
of type "boolean" (A boolean. 0 = false, other = true.)
@@ -1739,19 +1804,20 @@ def get_objects2(self, params, context=None):
objects.) -> structure: parameter "data" of list of type
"ObjectData" (The data and supplemental info for an object.
UnspecifiedObject data - the object's data or subset data.
- object_info info - information about the object. list
- path - the path to the object through the object reference graph.
- All the references in the path are absolute.
- list provenance - the object's provenance.
- username creator - the user that first saved the object to the
- workspace. ws_id orig_wsid - the id of the workspace in which this
- object was originally saved. Missing for objects saved prior to
- version 0.4.1. timestamp created - the date the object was first
- saved to the workspace. epoch epoch - the date the object was
- first saved to the workspace. list refs - the references
- contained within the object. obj_ref copied - the reference of the
- source object if this object is a copy and the copy source exists
- and is accessible. null otherwise. boolean
+ object_info info - information about the object. ObjectInfo
+ infostruct - information about the object as a structure rather
+ than a tuple. list path - the path to the object through
+ the object reference graph. All the references in the path are
+ absolute. list provenance - the object's
+ provenance. username creator - the user that first saved the
+ object to the workspace. ws_id orig_wsid - the id of the workspace
+ in which this object was originally saved. Missing for objects
+ saved prior to version 0.4.1. timestamp created - the date the
+ object was first saved to the workspace. epoch epoch - the date
+ the object was first saved to the workspace. list refs -
+ the references contained within the object. obj_ref copied - the
+ reference of the source object if this object is a copy and the
+ copy source exists and is accessible. null otherwise. boolean
copy_source_inaccessible - true if the object was copied from
another object, but that object is no longer accessible to the
user. False otherwise. mapping>
@@ -1805,6 +1871,57 @@ def get_objects2(self, params, context=None):
kbasetest:my_workspace.), parameter "chsum" of String, parameter
"size" of Long, parameter "meta" of type "usermeta" (User provided
metadata about an object. Arbitrary key-value pairs provided by
+ the user.) -> mapping from String to String, parameter
+ "infostruct" of type "ObjectInfo" (Information about an object as
+ a struct rather than a tuple. This allows adding fields in a
+ backward compatible way in the future. Includes more fields than
+ object_info. obj_id objid - the numerical id of the object.
+ obj_name name - the name of the object. type_string type - the
+ type of the object. timestamp save_date - the save date of the
+ object. obj_ver ver - the version of the object. username saved_by
+ - the user that saved or copied the object. ws_id wsid - the
+ workspace containing the object. ws_name workspace - the workspace
+ containing the object. string chsum - the md5 checksum of the
+ object. int size - the size of the object in bytes. usermeta meta
+ - arbitrary user-supplied metadata about the object. usermeta
+ adminmeta - service administrator metadata set on an object.
+ Unlike most other object fields, admin metadata is mutable.
+ list path - the path to the object.) -> structure:
+ parameter "objid" of type "obj_id" (The unique, permanent
+ numerical ID of an object.), parameter "name" of type "obj_name"
+ (A string used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "type" of type "type_string" (A
+ type string. Specifies the type and its version in a single string
+ in the format [module].[typename]-[major].[minor]: module - a
+ string. The module name of the typespec containing the type.
+ typename - a string. The name of the type as assigned by the
+ typedef statement. major - an integer. The major version of the
+ type. A change in the major version implies the type has changed
+ in a non-backwards compatible way. minor - an integer. The minor
+ version of the type. A change in the minor version implies that
+ the type has changed in a way that is backwards compatible with
+ previous type definitions. In many cases, the major and minor
+ versions are optional, and if not provided the most recent version
+ will be used. Example: MyModule.MyType-3.1), parameter "save_date"
+ of type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ,
+ where Z is either the character Z (representing the UTC timezone)
+ or the difference in time to UTC in the format +/-HHMM, eg:
+ 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC
+ time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of
+ Long, parameter "saved_by" of type "username" (Login name of a
+ KBase user account.), parameter "wsid" of type "ws_id" (The
+ unique, permanent numerical ID of a workspace.), parameter
+ "workspace" of type "ws_name" (A string used as a name for a
+ workspace. Any string consisting of alphanumeric characters and
+ "_", ".", or "-" that is not an integer is acceptable. The name
+ may optionally be prefixed with the workspace owner's user name
+ and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of
+ String, parameter "size" of Long, parameter "meta" of type
+ "usermeta" (User provided metadata about an object. Arbitrary
+ key-value pairs provided by the user.) -> mapping from String to
+ String, parameter "adminmeta" of type "usermeta" (User provided
+ metadata about an object. Arbitrary key-value pairs provided by
the user.) -> mapping from String to String, parameter "path" of
list of type "obj_ref" (A string that uniquely identifies an
object in the workspace service. The format is [ws_name or
@@ -1815,51 +1932,60 @@ def get_objects2(self, params, context=None):
the object name Panic in workspace with id 42. Towel/1/6 would
identify the 6th version of the object with id 1 in the Towel
workspace.If the version number is omitted, the latest version of
- the object is assumed.), parameter "provenance" of list of type
- "ProvenanceAction" (A provenance action. A provenance action (PA)
- is an action taken while transforming one data object to another.
- There may be several PAs taken in series. A PA is typically
- running a script, running an api command, etc. All of the
- following fields are optional, but more information provided
- equates to better data provenance. If a provenance action has no
- fields defined at all, it is silently dropped from the list.
- resolved_ws_objects should never be set by the user; it is set by
- the workspace service when returning data. On input, only one of
- the time or epoch may be supplied. Both are supplied on output.
- The maximum size of the entire provenance object, including all
- actions, is 1MB. timestamp time - the time the action was started
- epoch epoch - the time the action was started. string caller - the
- name or id of the invoker of this provenance action. In most
- cases, this will be the same for all PAs. string service - the
- name of the service that performed this action. string service_ver
- - the version of the service that performed this action. string
- method - the method of the service that performed this action.
- list method_params - the parameters of the
- method that performed this action. If an object in the parameters
- is a workspace object, also put the object reference in the
- input_ws_object list. string script - the name of the script that
- performed this action. string script_ver - the version of the
- script that performed this action. string script_command_line -
- the command line provided to the script that performed this
- action. If workspace objects were provided in the command line,
- also put the object reference in the input_ws_object list.
- list input_ws_objects - the workspace objects that
- were used as input to this action; typically these will also be
- present as parts of the method_params or the script_command_line
- arguments. A reference path into the object graph may be supplied.
- list resolved_ws_objects - the workspace objects ids from
- input_ws_objects resolved to permanent workspace object references
- by the workspace service. list intermediate_incoming - if
- the previous action produced output that 1) was not stored in a
- referrable way, and 2) is used as input for this action, provide
- it with an arbitrary and unique ID here, in the order of the input
- arguments to this action. These IDs can be used in the
- method_params argument. list intermediate_outgoing - if
- this action produced output that 1) was not stored in a referrable
- way, and 2) is used as input for the next action, provide it with
- an arbitrary and unique ID here, in the order of the output values
- from this action. These IDs can be used in the
- intermediate_incoming argument in the next action.
+ the object is assumed.), parameter "path" of list of type
+ "obj_ref" (A string that uniquely identifies an object in the
+ workspace service. The format is [ws_name or id]/[obj_name or
+ id]/[obj_ver]. For example, MyFirstWorkspace/MyFirstObject/3 would
+ identify the third version of an object called MyFirstObject in
+ the workspace called MyFirstWorkspace. 42/Panic/1 would identify
+ the first version of the object name Panic in workspace with id
+ 42. Towel/1/6 would identify the 6th version of the object with id
+ 1 in the Towel workspace.If the version number is omitted, the
+ latest version of the object is assumed.), parameter "provenance"
+ of list of type "ProvenanceAction" (A provenance action. A
+ provenance action (PA) is an action taken while transforming one
+ data object to another. There may be several PAs taken in series.
+ A PA is typically running a script, running an api command, etc.
+ All of the following fields are optional, but more information
+ provided equates to better data provenance. If a provenance action
+ has no fields defined at all, it is silently dropped from the
+ list. resolved_ws_objects should never be set by the user; it is
+ set by the workspace service when returning data. On input, only
+ one of the time or epoch may be supplied. Both are supplied on
+ output. The maximum size of the entire provenance object,
+ including all actions, is 1MB. timestamp time - the time the
+ action was started epoch epoch - the time the action was started.
+ string caller - the name or id of the invoker of this provenance
+ action. In most cases, this will be the same for all PAs. string
+ service - the name of the service that performed this action.
+ string service_ver - the version of the service that performed
+ this action. string method - the method of the service that
+ performed this action. list method_params - the
+ parameters of the method that performed this action. If an object
+ in the parameters is a workspace object, also put the object
+ reference in the input_ws_object list. string script - the name of
+ the script that performed this action. string script_ver - the
+ version of the script that performed this action. string
+ script_command_line - the command line provided to the script that
+ performed this action. If workspace objects were provided in the
+ command line, also put the object reference in the input_ws_object
+ list. list input_ws_objects - the workspace objects
+ that were used as input to this action; typically these will also
+ be present as parts of the method_params or the
+ script_command_line arguments. A reference path into the object
+ graph may be supplied. list resolved_ws_objects - the
+ workspace objects ids from input_ws_objects resolved to permanent
+ workspace object references by the workspace service. list
+ intermediate_incoming - if the previous action produced output
+ that 1) was not stored in a referrable way, and 2) is used as
+ input for this action, provide it with an arbitrary and unique ID
+ here, in the order of the input arguments to this action. These
+ IDs can be used in the method_params argument. list
+ intermediate_outgoing - if this action produced output that 1) was
+ not stored in a referrable way, and 2) is used as input for the
+ next action, provide it with an arbitrary and unique ID here, in
+ the order of the output values from this action. These IDs can be
+ used in the intermediate_incoming argument in the next action.
list external_data - data external to the
workspace that was either imported to the workspace or used to
create a workspace object. list subactions - the
@@ -2057,55 +2183,56 @@ def get_object_subset(self, sub_object_ids, context=None):
:returns: instance of list of type "ObjectData" (The data and
supplemental info for an object. UnspecifiedObject data - the
object's data or subset data. object_info info - information about
- the object. list path - the path to the object through
- the object reference graph. All the references in the path are
- absolute. list provenance - the object's
- provenance. username creator - the user that first saved the
- object to the workspace. ws_id orig_wsid - the id of the workspace
- in which this object was originally saved. Missing for objects
- saved prior to version 0.4.1. timestamp created - the date the
- object was first saved to the workspace. epoch epoch - the date
- the object was first saved to the workspace. list refs -
- the references contained within the object. obj_ref copied - the
- reference of the source object if this object is a copy and the
- copy source exists and is accessible. null otherwise. boolean
- copy_source_inaccessible - true if the object was copied from
- another object, but that object is no longer accessible to the
- user. False otherwise. mapping>
- extracted_ids - any ids extracted from the object. string
- handle_error - if an error occurs while setting ACLs on embedded
- external IDs, it will be reported here. If not for historical
- reasons the parameter would be called "external_id_error". string
- handle_stacktrace - the stacktrace for handle_error. As above, the
- parameter should be called "external_id_stacktrace".) ->
- structure: parameter "data" of unspecified object, parameter
- "info" of type "object_info" (Information about an object,
- including user provided metadata. obj_id objid - the numerical id
- of the object. obj_name name - the name of the object. type_string
- type - the type of the object. timestamp save_date - the save date
- of the object. obj_ver ver - the version of the object. username
- saved_by - the user that saved or copied the object. ws_id wsid -
- the workspace containing the object. ws_name workspace - the
- workspace containing the object. string chsum - the md5 checksum
- of the object. int size - the size of the object in bytes.
- usermeta meta - arbitrary user-supplied metadata about the
- object.) -> tuple of size 11: parameter "objid" of type "obj_id"
- (The unique, permanent numerical ID of an object.), parameter
- "name" of type "obj_name" (A string used as a name for an object.
- Any string consisting of alphanumeric characters and the
- characters |._- that is not an integer is acceptable.), parameter
- "type" of type "type_string" (A type string. Specifies the type
- and its version in a single string in the format
- [module].[typename]-[major].[minor]: module - a string. The module
- name of the typespec containing the type. typename - a string. The
- name of the type as assigned by the typedef statement. major - an
- integer. The major version of the type. A change in the major
- version implies the type has changed in a non-backwards compatible
- way. minor - an integer. The minor version of the type. A change
- in the minor version implies that the type has changed in a way
- that is backwards compatible with previous type definitions. In
- many cases, the major and minor versions are optional, and if not
- provided the most recent version will be used. Example:
+ the object. ObjectInfo infostruct - information about the object
+ as a structure rather than a tuple. list path - the path
+ to the object through the object reference graph. All the
+ references in the path are absolute. list
+ provenance - the object's provenance. username creator - the user
+ that first saved the object to the workspace. ws_id orig_wsid -
+ the id of the workspace in which this object was originally saved.
+ Missing for objects saved prior to version 0.4.1. timestamp
+ created - the date the object was first saved to the workspace.
+ epoch epoch - the date the object was first saved to the
+ workspace. list refs - the references contained within
+ the object. obj_ref copied - the reference of the source object if
+ this object is a copy and the copy source exists and is
+ accessible. null otherwise. boolean copy_source_inaccessible -
+ true if the object was copied from another object, but that object
+ is no longer accessible to the user. False otherwise.
+ mapping> extracted_ids - any ids
+ extracted from the object. string handle_error - if an error
+ occurs while setting ACLs on embedded external IDs, it will be
+ reported here. If not for historical reasons the parameter would
+ be called "external_id_error". string handle_stacktrace - the
+ stacktrace for handle_error. As above, the parameter should be
+ called "external_id_stacktrace".) -> structure: parameter "data"
+ of unspecified object, parameter "info" of type "object_info"
+ (Information about an object, including user provided metadata.
+ obj_id objid - the numerical id of the object. obj_name name - the
+ name of the object. type_string type - the type of the object.
+ timestamp save_date - the save date of the object. obj_ver ver -
+ the version of the object. username saved_by - the user that saved
+ or copied the object. ws_id wsid - the workspace containing the
+ object. ws_name workspace - the workspace containing the object.
+ string chsum - the md5 checksum of the object. int size - the size
+ of the object in bytes. usermeta meta - arbitrary user-supplied
+ metadata about the object.) -> tuple of size 11: parameter "objid"
+ of type "obj_id" (The unique, permanent numerical ID of an
+ object.), parameter "name" of type "obj_name" (A string used as a
+ name for an object. Any string consisting of alphanumeric
+ characters and the characters |._- that is not an integer is
+ acceptable.), parameter "type" of type "type_string" (A type
+ string. Specifies the type and its version in a single string in
+ the format [module].[typename]-[major].[minor]: module - a string.
+ The module name of the typespec containing the type. typename - a
+ string. The name of the type as assigned by the typedef statement.
+ major - an integer. The major version of the type. A change in the
+ major version implies the type has changed in a non-backwards
+ compatible way. minor - an integer. The minor version of the type.
+ A change in the minor version implies that the type has changed in
+ a way that is backwards compatible with previous type definitions.
+ In many cases, the major and minor versions are optional, and if
+ not provided the most recent version will be used. Example:
MyModule.MyType-3.1), parameter "save_date" of type "timestamp" (A
time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the
character Z (representing the UTC timezone) or the difference in
@@ -2122,6 +2249,57 @@ def get_object_subset(self, sub_object_ids, context=None):
kbasetest:my_workspace.), parameter "chsum" of String, parameter
"size" of Long, parameter "meta" of type "usermeta" (User provided
metadata about an object. Arbitrary key-value pairs provided by
+ the user.) -> mapping from String to String, parameter
+ "infostruct" of type "ObjectInfo" (Information about an object as
+ a struct rather than a tuple. This allows adding fields in a
+ backward compatible way in the future. Includes more fields than
+ object_info. obj_id objid - the numerical id of the object.
+ obj_name name - the name of the object. type_string type - the
+ type of the object. timestamp save_date - the save date of the
+ object. obj_ver ver - the version of the object. username saved_by
+ - the user that saved or copied the object. ws_id wsid - the
+ workspace containing the object. ws_name workspace - the workspace
+ containing the object. string chsum - the md5 checksum of the
+ object. int size - the size of the object in bytes. usermeta meta
+ - arbitrary user-supplied metadata about the object. usermeta
+ adminmeta - service administrator metadata set on an object.
+ Unlike most other object fields, admin metadata is mutable.
+ list path - the path to the object.) -> structure:
+ parameter "objid" of type "obj_id" (The unique, permanent
+ numerical ID of an object.), parameter "name" of type "obj_name"
+ (A string used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "type" of type "type_string" (A
+ type string. Specifies the type and its version in a single string
+ in the format [module].[typename]-[major].[minor]: module - a
+ string. The module name of the typespec containing the type.
+ typename - a string. The name of the type as assigned by the
+ typedef statement. major - an integer. The major version of the
+ type. A change in the major version implies the type has changed
+ in a non-backwards compatible way. minor - an integer. The minor
+ version of the type. A change in the minor version implies that
+ the type has changed in a way that is backwards compatible with
+ previous type definitions. In many cases, the major and minor
+ versions are optional, and if not provided the most recent version
+ will be used. Example: MyModule.MyType-3.1), parameter "save_date"
+ of type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ,
+ where Z is either the character Z (representing the UTC timezone)
+ or the difference in time to UTC in the format +/-HHMM, eg:
+ 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC
+ time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of
+ Long, parameter "saved_by" of type "username" (Login name of a
+ KBase user account.), parameter "wsid" of type "ws_id" (The
+ unique, permanent numerical ID of a workspace.), parameter
+ "workspace" of type "ws_name" (A string used as a name for a
+ workspace. Any string consisting of alphanumeric characters and
+ "_", ".", or "-" that is not an integer is acceptable. The name
+ may optionally be prefixed with the workspace owner's user name
+ and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of
+ String, parameter "size" of Long, parameter "meta" of type
+ "usermeta" (User provided metadata about an object. Arbitrary
+ key-value pairs provided by the user.) -> mapping from String to
+ String, parameter "adminmeta" of type "usermeta" (User provided
+ metadata about an object. Arbitrary key-value pairs provided by
the user.) -> mapping from String to String, parameter "path" of
list of type "obj_ref" (A string that uniquely identifies an
object in the workspace service. The format is [ws_name or
@@ -2132,51 +2310,60 @@ def get_object_subset(self, sub_object_ids, context=None):
the object name Panic in workspace with id 42. Towel/1/6 would
identify the 6th version of the object with id 1 in the Towel
workspace.If the version number is omitted, the latest version of
- the object is assumed.), parameter "provenance" of list of type
- "ProvenanceAction" (A provenance action. A provenance action (PA)
- is an action taken while transforming one data object to another.
- There may be several PAs taken in series. A PA is typically
- running a script, running an api command, etc. All of the
- following fields are optional, but more information provided
- equates to better data provenance. If a provenance action has no
- fields defined at all, it is silently dropped from the list.
- resolved_ws_objects should never be set by the user; it is set by
- the workspace service when returning data. On input, only one of
- the time or epoch may be supplied. Both are supplied on output.
- The maximum size of the entire provenance object, including all
- actions, is 1MB. timestamp time - the time the action was started
- epoch epoch - the time the action was started. string caller - the
- name or id of the invoker of this provenance action. In most
- cases, this will be the same for all PAs. string service - the
- name of the service that performed this action. string service_ver
- - the version of the service that performed this action. string
- method - the method of the service that performed this action.
- list method_params - the parameters of the
- method that performed this action. If an object in the parameters
- is a workspace object, also put the object reference in the
- input_ws_object list. string script - the name of the script that
- performed this action. string script_ver - the version of the
- script that performed this action. string script_command_line -
- the command line provided to the script that performed this
- action. If workspace objects were provided in the command line,
- also put the object reference in the input_ws_object list.
- list input_ws_objects - the workspace objects that
- were used as input to this action; typically these will also be
- present as parts of the method_params or the script_command_line
- arguments. A reference path into the object graph may be supplied.
- list resolved_ws_objects - the workspace objects ids from
- input_ws_objects resolved to permanent workspace object references
- by the workspace service. list intermediate_incoming - if
- the previous action produced output that 1) was not stored in a
- referrable way, and 2) is used as input for this action, provide
- it with an arbitrary and unique ID here, in the order of the input
- arguments to this action. These IDs can be used in the
- method_params argument. list intermediate_outgoing - if
- this action produced output that 1) was not stored in a referrable
- way, and 2) is used as input for the next action, provide it with
- an arbitrary and unique ID here, in the order of the output values
- from this action. These IDs can be used in the
- intermediate_incoming argument in the next action.
+ the object is assumed.), parameter "path" of list of type
+ "obj_ref" (A string that uniquely identifies an object in the
+ workspace service. The format is [ws_name or id]/[obj_name or
+ id]/[obj_ver]. For example, MyFirstWorkspace/MyFirstObject/3 would
+ identify the third version of an object called MyFirstObject in
+ the workspace called MyFirstWorkspace. 42/Panic/1 would identify
+ the first version of the object name Panic in workspace with id
+ 42. Towel/1/6 would identify the 6th version of the object with id
+ 1 in the Towel workspace.If the version number is omitted, the
+ latest version of the object is assumed.), parameter "provenance"
+ of list of type "ProvenanceAction" (A provenance action. A
+ provenance action (PA) is an action taken while transforming one
+ data object to another. There may be several PAs taken in series.
+ A PA is typically running a script, running an api command, etc.
+ All of the following fields are optional, but more information
+ provided equates to better data provenance. If a provenance action
+ has no fields defined at all, it is silently dropped from the
+ list. resolved_ws_objects should never be set by the user; it is
+ set by the workspace service when returning data. On input, only
+ one of the time or epoch may be supplied. Both are supplied on
+ output. The maximum size of the entire provenance object,
+ including all actions, is 1MB. timestamp time - the time the
+ action was started epoch epoch - the time the action was started.
+ string caller - the name or id of the invoker of this provenance
+ action. In most cases, this will be the same for all PAs. string
+ service - the name of the service that performed this action.
+ string service_ver - the version of the service that performed
+ this action. string method - the method of the service that
+ performed this action. list method_params - the
+ parameters of the method that performed this action. If an object
+ in the parameters is a workspace object, also put the object
+ reference in the input_ws_object list. string script - the name of
+ the script that performed this action. string script_ver - the
+ version of the script that performed this action. string
+ script_command_line - the command line provided to the script that
+ performed this action. If workspace objects were provided in the
+ command line, also put the object reference in the input_ws_object
+ list. list input_ws_objects - the workspace objects
+ that were used as input to this action; typically these will also
+ be present as parts of the method_params or the
+ script_command_line arguments. A reference path into the object
+ graph may be supplied. list resolved_ws_objects - the
+ workspace objects ids from input_ws_objects resolved to permanent
+ workspace object references by the workspace service. list
+ intermediate_incoming - if the previous action produced output
+ that 1) was not stored in a referrable way, and 2) is used as
+ input for this action, provide it with an arbitrary and unique ID
+ here, in the order of the input arguments to this action. These
+ IDs can be used in the method_params argument. list
+ intermediate_outgoing - if this action produced output that 1) was
+ not stored in a referrable way, and 2) is used as input for the
+ next action, provide it with an arbitrary and unique ID here, in
+ the order of the output values from this action. These IDs can be
+ used in the intermediate_incoming argument in the next action.
list external_data - data external to the
workspace that was either imported to the workspace or used to
create a workspace object. list subactions - the
@@ -2561,55 +2748,56 @@ def get_referenced_objects(self, ref_chains, context=None):
:returns: instance of list of type "ObjectData" (The data and
supplemental info for an object. UnspecifiedObject data - the
object's data or subset data. object_info info - information about
- the object. list path - the path to the object through
- the object reference graph. All the references in the path are
- absolute. list provenance - the object's
- provenance. username creator - the user that first saved the
- object to the workspace. ws_id orig_wsid - the id of the workspace
- in which this object was originally saved. Missing for objects
- saved prior to version 0.4.1. timestamp created - the date the
- object was first saved to the workspace. epoch epoch - the date
- the object was first saved to the workspace. list refs -
- the references contained within the object. obj_ref copied - the
- reference of the source object if this object is a copy and the
- copy source exists and is accessible. null otherwise. boolean
- copy_source_inaccessible - true if the object was copied from
- another object, but that object is no longer accessible to the
- user. False otherwise. mapping>
- extracted_ids - any ids extracted from the object. string
- handle_error - if an error occurs while setting ACLs on embedded
- external IDs, it will be reported here. If not for historical
- reasons the parameter would be called "external_id_error". string
- handle_stacktrace - the stacktrace for handle_error. As above, the
- parameter should be called "external_id_stacktrace".) ->
- structure: parameter "data" of unspecified object, parameter
- "info" of type "object_info" (Information about an object,
- including user provided metadata. obj_id objid - the numerical id
- of the object. obj_name name - the name of the object. type_string
- type - the type of the object. timestamp save_date - the save date
- of the object. obj_ver ver - the version of the object. username
- saved_by - the user that saved or copied the object. ws_id wsid -
- the workspace containing the object. ws_name workspace - the
- workspace containing the object. string chsum - the md5 checksum
- of the object. int size - the size of the object in bytes.
- usermeta meta - arbitrary user-supplied metadata about the
- object.) -> tuple of size 11: parameter "objid" of type "obj_id"
- (The unique, permanent numerical ID of an object.), parameter
- "name" of type "obj_name" (A string used as a name for an object.
- Any string consisting of alphanumeric characters and the
- characters |._- that is not an integer is acceptable.), parameter
- "type" of type "type_string" (A type string. Specifies the type
- and its version in a single string in the format
- [module].[typename]-[major].[minor]: module - a string. The module
- name of the typespec containing the type. typename - a string. The
- name of the type as assigned by the typedef statement. major - an
- integer. The major version of the type. A change in the major
- version implies the type has changed in a non-backwards compatible
- way. minor - an integer. The minor version of the type. A change
- in the minor version implies that the type has changed in a way
- that is backwards compatible with previous type definitions. In
- many cases, the major and minor versions are optional, and if not
- provided the most recent version will be used. Example:
+ the object. ObjectInfo infostruct - information about the object
+ as a structure rather than a tuple. list path - the path
+ to the object through the object reference graph. All the
+ references in the path are absolute. list
+ provenance - the object's provenance. username creator - the user
+ that first saved the object to the workspace. ws_id orig_wsid -
+ the id of the workspace in which this object was originally saved.
+ Missing for objects saved prior to version 0.4.1. timestamp
+ created - the date the object was first saved to the workspace.
+ epoch epoch - the date the object was first saved to the
+ workspace. list refs - the references contained within
+ the object. obj_ref copied - the reference of the source object if
+ this object is a copy and the copy source exists and is
+ accessible. null otherwise. boolean copy_source_inaccessible -
+ true if the object was copied from another object, but that object
+ is no longer accessible to the user. False otherwise.
+ mapping> extracted_ids - any ids
+ extracted from the object. string handle_error - if an error
+ occurs while setting ACLs on embedded external IDs, it will be
+ reported here. If not for historical reasons the parameter would
+ be called "external_id_error". string handle_stacktrace - the
+ stacktrace for handle_error. As above, the parameter should be
+ called "external_id_stacktrace".) -> structure: parameter "data"
+ of unspecified object, parameter "info" of type "object_info"
+ (Information about an object, including user provided metadata.
+ obj_id objid - the numerical id of the object. obj_name name - the
+ name of the object. type_string type - the type of the object.
+ timestamp save_date - the save date of the object. obj_ver ver -
+ the version of the object. username saved_by - the user that saved
+ or copied the object. ws_id wsid - the workspace containing the
+ object. ws_name workspace - the workspace containing the object.
+ string chsum - the md5 checksum of the object. int size - the size
+ of the object in bytes. usermeta meta - arbitrary user-supplied
+ metadata about the object.) -> tuple of size 11: parameter "objid"
+ of type "obj_id" (The unique, permanent numerical ID of an
+ object.), parameter "name" of type "obj_name" (A string used as a
+ name for an object. Any string consisting of alphanumeric
+ characters and the characters |._- that is not an integer is
+ acceptable.), parameter "type" of type "type_string" (A type
+ string. Specifies the type and its version in a single string in
+ the format [module].[typename]-[major].[minor]: module - a string.
+ The module name of the typespec containing the type. typename - a
+ string. The name of the type as assigned by the typedef statement.
+ major - an integer. The major version of the type. A change in the
+ major version implies the type has changed in a non-backwards
+ compatible way. minor - an integer. The minor version of the type.
+ A change in the minor version implies that the type has changed in
+ a way that is backwards compatible with previous type definitions.
+ In many cases, the major and minor versions are optional, and if
+ not provided the most recent version will be used. Example:
MyModule.MyType-3.1), parameter "save_date" of type "timestamp" (A
time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the
character Z (representing the UTC timezone) or the difference in
@@ -2626,6 +2814,57 @@ def get_referenced_objects(self, ref_chains, context=None):
kbasetest:my_workspace.), parameter "chsum" of String, parameter
"size" of Long, parameter "meta" of type "usermeta" (User provided
metadata about an object. Arbitrary key-value pairs provided by
+ the user.) -> mapping from String to String, parameter
+ "infostruct" of type "ObjectInfo" (Information about an object as
+ a struct rather than a tuple. This allows adding fields in a
+ backward compatible way in the future. Includes more fields than
+ object_info. obj_id objid - the numerical id of the object.
+ obj_name name - the name of the object. type_string type - the
+ type of the object. timestamp save_date - the save date of the
+ object. obj_ver ver - the version of the object. username saved_by
+ - the user that saved or copied the object. ws_id wsid - the
+ workspace containing the object. ws_name workspace - the workspace
+ containing the object. string chsum - the md5 checksum of the
+ object. int size - the size of the object in bytes. usermeta meta
+ - arbitrary user-supplied metadata about the object. usermeta
+ adminmeta - service administrator metadata set on an object.
+ Unlike most other object fields, admin metadata is mutable.
+ list path - the path to the object.) -> structure:
+ parameter "objid" of type "obj_id" (The unique, permanent
+ numerical ID of an object.), parameter "name" of type "obj_name"
+ (A string used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "type" of type "type_string" (A
+ type string. Specifies the type and its version in a single string
+ in the format [module].[typename]-[major].[minor]: module - a
+ string. The module name of the typespec containing the type.
+ typename - a string. The name of the type as assigned by the
+ typedef statement. major - an integer. The major version of the
+ type. A change in the major version implies the type has changed
+ in a non-backwards compatible way. minor - an integer. The minor
+ version of the type. A change in the minor version implies that
+ the type has changed in a way that is backwards compatible with
+ previous type definitions. In many cases, the major and minor
+ versions are optional, and if not provided the most recent version
+ will be used. Example: MyModule.MyType-3.1), parameter "save_date"
+ of type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ,
+ where Z is either the character Z (representing the UTC timezone)
+ or the difference in time to UTC in the format +/-HHMM, eg:
+ 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC
+ time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of
+ Long, parameter "saved_by" of type "username" (Login name of a
+ KBase user account.), parameter "wsid" of type "ws_id" (The
+ unique, permanent numerical ID of a workspace.), parameter
+ "workspace" of type "ws_name" (A string used as a name for a
+ workspace. Any string consisting of alphanumeric characters and
+ "_", ".", or "-" that is not an integer is acceptable. The name
+ may optionally be prefixed with the workspace owner's user name
+ and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of
+ String, parameter "size" of Long, parameter "meta" of type
+ "usermeta" (User provided metadata about an object. Arbitrary
+ key-value pairs provided by the user.) -> mapping from String to
+ String, parameter "adminmeta" of type "usermeta" (User provided
+ metadata about an object. Arbitrary key-value pairs provided by
the user.) -> mapping from String to String, parameter "path" of
list of type "obj_ref" (A string that uniquely identifies an
object in the workspace service. The format is [ws_name or
@@ -2636,51 +2875,60 @@ def get_referenced_objects(self, ref_chains, context=None):
the object name Panic in workspace with id 42. Towel/1/6 would
identify the 6th version of the object with id 1 in the Towel
workspace.If the version number is omitted, the latest version of
- the object is assumed.), parameter "provenance" of list of type
- "ProvenanceAction" (A provenance action. A provenance action (PA)
- is an action taken while transforming one data object to another.
- There may be several PAs taken in series. A PA is typically
- running a script, running an api command, etc. All of the
- following fields are optional, but more information provided
- equates to better data provenance. If a provenance action has no
- fields defined at all, it is silently dropped from the list.
- resolved_ws_objects should never be set by the user; it is set by
- the workspace service when returning data. On input, only one of
- the time or epoch may be supplied. Both are supplied on output.
- The maximum size of the entire provenance object, including all
- actions, is 1MB. timestamp time - the time the action was started
- epoch epoch - the time the action was started. string caller - the
- name or id of the invoker of this provenance action. In most
- cases, this will be the same for all PAs. string service - the
- name of the service that performed this action. string service_ver
- - the version of the service that performed this action. string
- method - the method of the service that performed this action.
- list method_params - the parameters of the
- method that performed this action. If an object in the parameters
- is a workspace object, also put the object reference in the
- input_ws_object list. string script - the name of the script that
- performed this action. string script_ver - the version of the
- script that performed this action. string script_command_line -
- the command line provided to the script that performed this
- action. If workspace objects were provided in the command line,
- also put the object reference in the input_ws_object list.
- list input_ws_objects - the workspace objects that
- were used as input to this action; typically these will also be
- present as parts of the method_params or the script_command_line
- arguments. A reference path into the object graph may be supplied.
- list resolved_ws_objects - the workspace objects ids from
- input_ws_objects resolved to permanent workspace object references
- by the workspace service. list intermediate_incoming - if
- the previous action produced output that 1) was not stored in a
- referrable way, and 2) is used as input for this action, provide
- it with an arbitrary and unique ID here, in the order of the input
- arguments to this action. These IDs can be used in the
- method_params argument. list intermediate_outgoing - if
- this action produced output that 1) was not stored in a referrable
- way, and 2) is used as input for the next action, provide it with
- an arbitrary and unique ID here, in the order of the output values
- from this action. These IDs can be used in the
- intermediate_incoming argument in the next action.
+ the object is assumed.), parameter "path" of list of type
+ "obj_ref" (A string that uniquely identifies an object in the
+ workspace service. The format is [ws_name or id]/[obj_name or
+ id]/[obj_ver]. For example, MyFirstWorkspace/MyFirstObject/3 would
+ identify the third version of an object called MyFirstObject in
+ the workspace called MyFirstWorkspace. 42/Panic/1 would identify
+ the first version of the object name Panic in workspace with id
+ 42. Towel/1/6 would identify the 6th version of the object with id
+ 1 in the Towel workspace.If the version number is omitted, the
+ latest version of the object is assumed.), parameter "provenance"
+ of list of type "ProvenanceAction" (A provenance action. A
+ provenance action (PA) is an action taken while transforming one
+ data object to another. There may be several PAs taken in series.
+ A PA is typically running a script, running an api command, etc.
+ All of the following fields are optional, but more information
+ provided equates to better data provenance. If a provenance action
+ has no fields defined at all, it is silently dropped from the
+ list. resolved_ws_objects should never be set by the user; it is
+ set by the workspace service when returning data. On input, only
+ one of the time or epoch may be supplied. Both are supplied on
+ output. The maximum size of the entire provenance object,
+ including all actions, is 1MB. timestamp time - the time the
+ action was started epoch epoch - the time the action was started.
+ string caller - the name or id of the invoker of this provenance
+ action. In most cases, this will be the same for all PAs. string
+ service - the name of the service that performed this action.
+ string service_ver - the version of the service that performed
+ this action. string method - the method of the service that
+ performed this action. list method_params - the
+ parameters of the method that performed this action. If an object
+ in the parameters is a workspace object, also put the object
+ reference in the input_ws_object list. string script - the name of
+ the script that performed this action. string script_ver - the
+ version of the script that performed this action. string
+ script_command_line - the command line provided to the script that
+ performed this action. If workspace objects were provided in the
+ command line, also put the object reference in the input_ws_object
+ list. list input_ws_objects - the workspace objects
+ that were used as input to this action; typically these will also
+ be present as parts of the method_params or the
+ script_command_line arguments. A reference path into the object
+ graph may be supplied. list resolved_ws_objects - the
+ workspace objects ids from input_ws_objects resolved to permanent
+ workspace object references by the workspace service. list
+ intermediate_incoming - if the previous action produced output
+ that 1) was not stored in a referrable way, and 2) is used as
+ input for this action, provide it with an arbitrary and unique ID
+ here, in the order of the input arguments to this action. These
+ IDs can be used in the method_params argument. list
+ intermediate_outgoing - if this action produced output that 1) was
+ not stored in a referrable way, and 2) is used as input for the
+ next action, provide it with an arbitrary and unique ID here, in
+ the order of the output values from this action. These IDs can be
+ used in the intermediate_incoming argument in the next action.
list external_data - data external to the
workspace that was either imported to the workspace or used to
create a workspace object. list subactions - the
@@ -3635,12 +3883,14 @@ def get_object_info3(self, params, context=None):
parameters for the "get_object_info3" function. Required
arguments: list objects - the objects for
which the information should be fetched. Subsetting related
- parameters are ignored. Optional arguments: boolean
- includeMetadata - include the object metadata in the returned
- information. Default false. boolean ignoreErrors - Don't throw an
- exception if an object cannot be accessed; return null for that
- object's information and path instead. Default false.) ->
- structure: parameter "objects" of list of type
+ parameters are ignored. Optional arguments: boolean infostruct -
+ return information about the object as a structure rather than a
+ tuple. Default false. If true, infos and paths will be null.
+ boolean includeMetadata - include the user and admin metadata in
+ the returned information. Default false. boolean ignoreErrors -
+ Don't throw an exception if an object cannot be accessed; return
+ null for that object's information and path instead. Default
+ false.) -> structure: parameter "objects" of list of type
"ObjectSpecification" (An Object Specification (OS). Inherits from
ObjectIdentity (OI). Specifies which object, and which parts of
that object, to retrieve from the Workspace Service. The fields
@@ -3824,60 +4074,124 @@ def get_object_info3(self, params, context=None):
here: http://tools.ietf.org/html/rfc6901), parameter "strict_maps"
of type "boolean" (A boolean. 0 = false, other = true.), parameter
"strict_arrays" of type "boolean" (A boolean. 0 = false, other =
- true.), parameter "includeMetadata" of type "boolean" (A boolean.
- 0 = false, other = true.), parameter "ignoreErrors" of type
- "boolean" (A boolean. 0 = false, other = true.)
+ true.), parameter "infostruct" of type "boolean" (A boolean. 0 =
+ false, other = true.), parameter "includeMetadata" of type
+ "boolean" (A boolean. 0 = false, other = true.), parameter
+ "ignoreErrors" of type "boolean" (A boolean. 0 = false, other =
+ true.)
:returns: instance of type "GetObjectInfo3Results" (Output from the
get_object_info3 function. list infos - the
object_info data for each object. list paths - the
path to the object through the object reference graph for each
- object. All the references in the path are absolute.) ->
- structure: parameter "infos" of list of type "object_info"
- (Information about an object, including user provided metadata.
- obj_id objid - the numerical id of the object. obj_name name - the
- name of the object. type_string type - the type of the object.
- timestamp save_date - the save date of the object. obj_ver ver -
- the version of the object. username saved_by - the user that saved
- or copied the object. ws_id wsid - the workspace containing the
- object. ws_name workspace - the workspace containing the object.
- string chsum - the md5 checksum of the object. int size - the size
- of the object in bytes. usermeta meta - arbitrary user-supplied
- metadata about the object.) -> tuple of size 11: parameter "objid"
- of type "obj_id" (The unique, permanent numerical ID of an
- object.), parameter "name" of type "obj_name" (A string used as a
- name for an object. Any string consisting of alphanumeric
- characters and the characters |._- that is not an integer is
- acceptable.), parameter "type" of type "type_string" (A type
- string. Specifies the type and its version in a single string in
- the format [module].[typename]-[major].[minor]: module - a string.
- The module name of the typespec containing the type. typename - a
- string. The name of the type as assigned by the typedef statement.
- major - an integer. The major version of the type. A change in the
- major version implies the type has changed in a non-backwards
- compatible way. minor - an integer. The minor version of the type.
- A change in the minor version implies that the type has changed in
- a way that is backwards compatible with previous type definitions.
- In many cases, the major and minor versions are optional, and if
- not provided the most recent version will be used. Example:
- MyModule.MyType-3.1), parameter "save_date" of type "timestamp" (A
- time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the
- character Z (representing the UTC timezone) or the difference in
- time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500
- (EST time) 2013-04-03T08:56:32+0000 (UTC time)
- 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long,
- parameter "saved_by" of type "username" (Login name of a KBase
- user account.), parameter "wsid" of type "ws_id" (The unique,
- permanent numerical ID of a workspace.), parameter "workspace" of
- type "ws_name" (A string used as a name for a workspace. Any
- string consisting of alphanumeric characters and "_", ".", or "-"
- that is not an integer is acceptable. The name may optionally be
- prefixed with the workspace owner's user name and a colon, e.g.
- kbasetest:my_workspace.), parameter "chsum" of String, parameter
- "size" of Long, parameter "meta" of type "usermeta" (User provided
+ object. All the references in the path are absolute.
+ list infostructs - the ObjectInfo data for each
+ object.) -> structure: parameter "infos" of list of type
+ "object_info" (Information about an object, including user
+ provided metadata. obj_id objid - the numerical id of the object.
+ obj_name name - the name of the object. type_string type - the
+ type of the object. timestamp save_date - the save date of the
+ object. obj_ver ver - the version of the object. username saved_by
+ - the user that saved or copied the object. ws_id wsid - the
+ workspace containing the object. ws_name workspace - the workspace
+ containing the object. string chsum - the md5 checksum of the
+ object. int size - the size of the object in bytes. usermeta meta
+ - arbitrary user-supplied metadata about the object.) -> tuple of
+ size 11: parameter "objid" of type "obj_id" (The unique, permanent
+ numerical ID of an object.), parameter "name" of type "obj_name"
+ (A string used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "type" of type "type_string" (A
+ type string. Specifies the type and its version in a single string
+ in the format [module].[typename]-[major].[minor]: module - a
+ string. The module name of the typespec containing the type.
+ typename - a string. The name of the type as assigned by the
+ typedef statement. major - an integer. The major version of the
+ type. A change in the major version implies the type has changed
+ in a non-backwards compatible way. minor - an integer. The minor
+ version of the type. A change in the minor version implies that
+ the type has changed in a way that is backwards compatible with
+ previous type definitions. In many cases, the major and minor
+ versions are optional, and if not provided the most recent version
+ will be used. Example: MyModule.MyType-3.1), parameter "save_date"
+ of type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ,
+ where Z is either the character Z (representing the UTC timezone)
+ or the difference in time to UTC in the format +/-HHMM, eg:
+ 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC
+ time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of
+ Long, parameter "saved_by" of type "username" (Login name of a
+ KBase user account.), parameter "wsid" of type "ws_id" (The
+ unique, permanent numerical ID of a workspace.), parameter
+ "workspace" of type "ws_name" (A string used as a name for a
+ workspace. Any string consisting of alphanumeric characters and
+ "_", ".", or "-" that is not an integer is acceptable. The name
+ may optionally be prefixed with the workspace owner's user name
+ and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of
+ String, parameter "size" of Long, parameter "meta" of type
+ "usermeta" (User provided metadata about an object. Arbitrary
+ key-value pairs provided by the user.) -> mapping from String to
+ String, parameter "paths" of list of list of type "obj_ref" (A
+ string that uniquely identifies an object in the workspace
+ service. The format is [ws_name or id]/[obj_name or id]/[obj_ver].
+ For example, MyFirstWorkspace/MyFirstObject/3 would identify the
+ third version of an object called MyFirstObject in the workspace
+ called MyFirstWorkspace. 42/Panic/1 would identify the first
+ version of the object name Panic in workspace with id 42.
+ Towel/1/6 would identify the 6th version of the object with id 1
+ in the Towel workspace.If the version number is omitted, the
+ latest version of the object is assumed.), parameter "infostructs"
+ of list of type "ObjectInfo" (Information about an object as a
+ struct rather than a tuple. This allows adding fields in a
+ backward compatible way in the future. Includes more fields than
+ object_info. obj_id objid - the numerical id of the object.
+ obj_name name - the name of the object. type_string type - the
+ type of the object. timestamp save_date - the save date of the
+ object. obj_ver ver - the version of the object. username saved_by
+ - the user that saved or copied the object. ws_id wsid - the
+ workspace containing the object. ws_name workspace - the workspace
+ containing the object. string chsum - the md5 checksum of the
+ object. int size - the size of the object in bytes. usermeta meta
+ - arbitrary user-supplied metadata about the object. usermeta
+ adminmeta - service administrator metadata set on an object.
+ Unlike most other object fields, admin metadata is mutable.
+ list path - the path to the object.) -> structure:
+ parameter "objid" of type "obj_id" (The unique, permanent
+ numerical ID of an object.), parameter "name" of type "obj_name"
+ (A string used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "type" of type "type_string" (A
+ type string. Specifies the type and its version in a single string
+ in the format [module].[typename]-[major].[minor]: module - a
+ string. The module name of the typespec containing the type.
+ typename - a string. The name of the type as assigned by the
+ typedef statement. major - an integer. The major version of the
+ type. A change in the major version implies the type has changed
+ in a non-backwards compatible way. minor - an integer. The minor
+ version of the type. A change in the minor version implies that
+ the type has changed in a way that is backwards compatible with
+ previous type definitions. In many cases, the major and minor
+ versions are optional, and if not provided the most recent version
+ will be used. Example: MyModule.MyType-3.1), parameter "save_date"
+ of type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ,
+ where Z is either the character Z (representing the UTC timezone)
+ or the difference in time to UTC in the format +/-HHMM, eg:
+ 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC
+ time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of
+ Long, parameter "saved_by" of type "username" (Login name of a
+ KBase user account.), parameter "wsid" of type "ws_id" (The
+ unique, permanent numerical ID of a workspace.), parameter
+ "workspace" of type "ws_name" (A string used as a name for a
+ workspace. Any string consisting of alphanumeric characters and
+ "_", ".", or "-" that is not an integer is acceptable. The name
+ may optionally be prefixed with the workspace owner's user name
+ and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of
+ String, parameter "size" of Long, parameter "meta" of type
+ "usermeta" (User provided metadata about an object. Arbitrary
+ key-value pairs provided by the user.) -> mapping from String to
+ String, parameter "adminmeta" of type "usermeta" (User provided
metadata about an object. Arbitrary key-value pairs provided by
- the user.) -> mapping from String to String, parameter "paths" of
- list of list of type "obj_ref" (A string that uniquely identifies
- an object in the workspace service. The format is [ws_name or
+ the user.) -> mapping from String to String, parameter "path" of
+ list of type "obj_ref" (A string that uniquely identifies an
+ object in the workspace service. The format is [ws_name or
id]/[obj_name or id]/[obj_ver]. For example,
MyFirstWorkspace/MyFirstObject/3 would identify the third version
of an object called MyFirstObject in the workspace called
@@ -5248,6 +5562,59 @@ def get_admin_role(self, context=None):
return self._client.call_method('Workspace.get_admin_role',
[], self._service_ver, context)
+ def alter_admin_object_metadata(self, params, context=None):
+ """
+ Update admin metadata for an object. The user must have full workspace service
+ administration privileges.
+ :param params: instance of type "AlterAdminObjectMetadataParams"
+ (Input parameters for the alter_admin_object_metadata method.
+ updates - the metadata updates to apply to the objects. If the
+ same object is specified twice in the list, the update order is
+ unspecified. At most 1000 updates are allowed in one call.) ->
+ structure: parameter "updates" of list of type
+ "ObjectMetadataUpdate" (An object metadata update specification.
+ Required arguments: ObjectIdentity oi - the object to be altered
+ One or both of the following arguments are required: usermeta new
+ - metadata to assign to the workspace. Duplicate keys will be
+ overwritten. list remove - these keys will be removed from
+ the workspace metadata key/value pairs.) -> structure: parameter
+ "oi" of type "ObjectIdentity" (An object identifier. Select an
+ object by either: One, and only one, of the numerical id or name
+ of the workspace. ws_id wsid - the numerical ID of the workspace.
+ ws_name workspace - the name of the workspace. AND One, and only
+ one, of the numerical id or name of the object. obj_id objid- the
+ numerical ID of the object. obj_name name - name of the object.
+ OPTIONALLY obj_ver ver - the version of the object. OR an object
+ reference string: obj_ref ref - an object reference string.) ->
+ structure: parameter "workspace" of type "ws_name" (A string used
+ as a name for a workspace. Any string consisting of alphanumeric
+ characters and "_", ".", or "-" that is not an integer is
+ acceptable. The name may optionally be prefixed with the workspace
+ owner's user name and a colon, e.g. kbasetest:my_workspace.),
+ parameter "wsid" of type "ws_id" (The unique, permanent numerical
+ ID of a workspace.), parameter "name" of type "obj_name" (A string
+ used as a name for an object. Any string consisting of
+ alphanumeric characters and the characters |._- that is not an
+ integer is acceptable.), parameter "objid" of type "obj_id" (The
+ unique, permanent numerical ID of an object.), parameter "ver" of
+ type "obj_ver" (An object version. The version of the object,
+ starting at 1.), parameter "ref" of type "obj_ref" (A string that
+ uniquely identifies an object in the workspace service. The format
+ is [ws_name or id]/[obj_name or id]/[obj_ver]. For example,
+ MyFirstWorkspace/MyFirstObject/3 would identify the third version
+ of an object called MyFirstObject in the workspace called
+ MyFirstWorkspace. 42/Panic/1 would identify the first version of
+ the object name Panic in workspace with id 42. Towel/1/6 would
+ identify the 6th version of the object with id 1 in the Towel
+ workspace.If the version number is omitted, the latest version of
+ the object is assumed.), parameter "new" of type "usermeta" (User
+ provided metadata about an object. Arbitrary key-value pairs
+ provided by the user.) -> mapping from String to String, parameter
+ "remove" of list of String
+ """
+ return self._client.call_method('Workspace.alter_admin_object_metadata',
+ [params], self._service_ver, context)
+
def administer(self, command, context=None):
"""
The administration interface.
diff --git a/lib/javascript/workspace/Client.js b/lib/javascript/workspace/Client.js
index 426be2e9..aab26a3a 100644
--- a/lib/javascript/workspace/Client.js
+++ b/lib/javascript/workspace/Client.js
@@ -813,6 +813,19 @@ function Workspace(url, auth, auth_cb, timeout, async_job_check_time_ms, service
[], 1, _callback, _errorCallback);
};
+ this.alter_admin_object_metadata = function (params, _callback, _errorCallback) {
+ if (typeof params === 'function')
+ throw 'Argument params can not be a function';
+ if (_callback && typeof _callback !== 'function')
+ throw 'Argument _callback must be a function if defined';
+ if (_errorCallback && typeof _errorCallback !== 'function')
+ throw 'Argument _errorCallback must be a function if defined';
+ if (typeof arguments === 'function' && arguments.length > 1+2)
+ throw 'Too many arguments ('+arguments.length+' instead of '+(1+2)+')';
+ return json_call_ajax(_url, "Workspace.alter_admin_object_metadata",
+ [params], 0, _callback, _errorCallback);
+ };
+
this.administer = function (command, _callback, _errorCallback) {
if (typeof command === 'function')
throw 'Argument command can not be a function';
diff --git a/src/us/kbase/workspace/AlterAdminObjectMetadataParams.java b/src/us/kbase/workspace/AlterAdminObjectMetadataParams.java
index 2b248559..62c056ca 100644
--- a/src/us/kbase/workspace/AlterAdminObjectMetadataParams.java
+++ b/src/us/kbase/workspace/AlterAdminObjectMetadataParams.java
@@ -17,7 +17,8 @@
*
* Input parameters for the alter_admin_object_metadata method.
* updates - the metadata updates to apply to the objects. If the same object is specified
- * twice in the list, the update order is unspecified.
+ * twice in the list, the update order is unspecified. At most 1000 updates are allowed
+ * in one call.
*
*
*/
diff --git a/src/us/kbase/workspace/GetObjectInfo3Params.java b/src/us/kbase/workspace/GetObjectInfo3Params.java
index e0065c83..e1704a5d 100644
--- a/src/us/kbase/workspace/GetObjectInfo3Params.java
+++ b/src/us/kbase/workspace/GetObjectInfo3Params.java
@@ -21,7 +21,9 @@
* information should be fetched. Subsetting related parameters are
* ignored.
* Optional arguments:
- * boolean includeMetadata - include the object metadata in the returned
+ * boolean infostruct - return information about the object as a structure rather than a tuple.
+ * Default false. If true, infos and paths will be null.
+ * boolean includeMetadata - include the user and admin metadata in the returned
* information. Default false.
* boolean ignoreErrors - Don't throw an exception if an object cannot
* be accessed; return null for that object's information and path instead.
@@ -33,6 +35,7 @@
@Generated("com.googlecode.jsonschema2pojo")
@JsonPropertyOrder({
"objects",
+ "infostruct",
"includeMetadata",
"ignoreErrors"
})
@@ -40,6 +43,8 @@ public class GetObjectInfo3Params {
@JsonProperty("objects")
private List objects;
+ @JsonProperty("infostruct")
+ private Long infostruct;
@JsonProperty("includeMetadata")
private Long includeMetadata;
@JsonProperty("ignoreErrors")
@@ -61,6 +66,21 @@ public GetObjectInfo3Params withObjects(List objects) {
return this;
}
+ @JsonProperty("infostruct")
+ public Long getInfostruct() {
+ return infostruct;
+ }
+
+ @JsonProperty("infostruct")
+ public void setInfostruct(Long infostruct) {
+ this.infostruct = infostruct;
+ }
+
+ public GetObjectInfo3Params withInfostruct(Long infostruct) {
+ this.infostruct = infostruct;
+ return this;
+ }
+
@JsonProperty("includeMetadata")
public Long getIncludeMetadata() {
return includeMetadata;
@@ -103,7 +123,7 @@ public void setAdditionalProperties(String name, Object value) {
@Override
public String toString() {
- return ((((((((("GetObjectInfo3Params"+" [objects=")+ objects)+", includeMetadata=")+ includeMetadata)+", ignoreErrors=")+ ignoreErrors)+", additionalProperties=")+ additionalProperties)+"]");
+ return ((((((((((("GetObjectInfo3Params"+" [objects=")+ objects)+", infostruct=")+ infostruct)+", includeMetadata=")+ includeMetadata)+", ignoreErrors=")+ ignoreErrors)+", additionalProperties=")+ additionalProperties)+"]");
}
}
diff --git a/src/us/kbase/workspace/GetObjectInfo3Results.java b/src/us/kbase/workspace/GetObjectInfo3Results.java
index 783e7daa..2e652ecb 100644
--- a/src/us/kbase/workspace/GetObjectInfo3Results.java
+++ b/src/us/kbase/workspace/GetObjectInfo3Results.java
@@ -20,6 +20,7 @@
* list infos - the object_info data for each object.
* list paths - the path to the object through the object reference graph for
* each object. All the references in the path are absolute.
+ * list infostructs - the ObjectInfo data for each object.
*
*
*/
@@ -27,7 +28,8 @@
@Generated("com.googlecode.jsonschema2pojo")
@JsonPropertyOrder({
"infos",
- "paths"
+ "paths",
+ "infostructs"
})
public class GetObjectInfo3Results {
@@ -35,6 +37,8 @@ public class GetObjectInfo3Results {
private List>> infos;
@JsonProperty("paths")
private List> paths;
+ @JsonProperty("infostructs")
+ private List infostructs;
private Map additionalProperties = new HashMap();
@JsonProperty("infos")
@@ -67,6 +71,21 @@ public GetObjectInfo3Results withPaths(List> paths) {
return this;
}
+ @JsonProperty("infostructs")
+ public List getInfostructs() {
+ return infostructs;
+ }
+
+ @JsonProperty("infostructs")
+ public void setInfostructs(List infostructs) {
+ this.infostructs = infostructs;
+ }
+
+ public GetObjectInfo3Results withInfostructs(List infostructs) {
+ this.infostructs = infostructs;
+ return this;
+ }
+
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
@@ -79,7 +98,7 @@ public void setAdditionalProperties(java.lang.String name, Object value) {
@Override
public java.lang.String toString() {
- return ((((((("GetObjectInfo3Results"+" [infos=")+ infos)+", paths=")+ paths)+", additionalProperties=")+ additionalProperties)+"]");
+ return ((((((((("GetObjectInfo3Results"+" [infos=")+ infos)+", paths=")+ paths)+", infostructs=")+ infostructs)+", additionalProperties=")+ additionalProperties)+"]");
}
}
diff --git a/src/us/kbase/workspace/GetObjects2Params.java b/src/us/kbase/workspace/GetObjects2Params.java
index 50e5c8c9..2084f8f2 100644
--- a/src/us/kbase/workspace/GetObjects2Params.java
+++ b/src/us/kbase/workspace/GetObjects2Params.java
@@ -24,6 +24,9 @@
* boolean ignoreErrors - Don't throw an exception if an object cannot
* be accessed; return null for that object's information instead.
* Default false.
+ * boolean infostruct - return the object information as a structure rather than a tuple.
+ * Default false. If true, ObjectData.path will be null as it is provided in
+ * the ObjectInfo data.
* boolean no_data - return the provenance, references, and
* object_info for this object without the object data. Default false.
* boolean skip_external_system_updates - if the objects contain any external IDs, don't
@@ -44,6 +47,7 @@
@JsonPropertyOrder({
"objects",
"ignoreErrors",
+ "infostruct",
"no_data",
"skip_external_system_updates",
"batch_external_system_updates"
@@ -54,6 +58,8 @@ public class GetObjects2Params {
private List objects;
@JsonProperty("ignoreErrors")
private Long ignoreErrors;
+ @JsonProperty("infostruct")
+ private Long infostruct;
@JsonProperty("no_data")
private Long noData;
@JsonProperty("skip_external_system_updates")
@@ -92,6 +98,21 @@ public GetObjects2Params withIgnoreErrors(Long ignoreErrors) {
return this;
}
+ @JsonProperty("infostruct")
+ public Long getInfostruct() {
+ return infostruct;
+ }
+
+ @JsonProperty("infostruct")
+ public void setInfostruct(Long infostruct) {
+ this.infostruct = infostruct;
+ }
+
+ public GetObjects2Params withInfostruct(Long infostruct) {
+ this.infostruct = infostruct;
+ return this;
+ }
+
@JsonProperty("no_data")
public Long getNoData() {
return noData;
@@ -149,7 +170,7 @@ public void setAdditionalProperties(String name, Object value) {
@Override
public String toString() {
- return ((((((((((((("GetObjects2Params"+" [objects=")+ objects)+", ignoreErrors=")+ ignoreErrors)+", noData=")+ noData)+", skipExternalSystemUpdates=")+ skipExternalSystemUpdates)+", batchExternalSystemUpdates=")+ batchExternalSystemUpdates)+", additionalProperties=")+ additionalProperties)+"]");
+ return ((((((((((((((("GetObjects2Params"+" [objects=")+ objects)+", ignoreErrors=")+ ignoreErrors)+", infostruct=")+ infostruct)+", noData=")+ noData)+", skipExternalSystemUpdates=")+ skipExternalSystemUpdates)+", batchExternalSystemUpdates=")+ batchExternalSystemUpdates)+", additionalProperties=")+ additionalProperties)+"]");
}
}
diff --git a/src/us/kbase/workspace/ObjectData.java b/src/us/kbase/workspace/ObjectData.java
index 9abe31d3..ea40dc17 100644
--- a/src/us/kbase/workspace/ObjectData.java
+++ b/src/us/kbase/workspace/ObjectData.java
@@ -20,6 +20,7 @@
* The data and supplemental info for an object.
* UnspecifiedObject data - the object's data or subset data.
* object_info info - information about the object.
+ * ObjectInfo infostruct - information about the object as a structure rather than a tuple.
* list path - the path to the object through the object reference graph. All the
* references in the path are absolute.
* list provenance - the object's provenance.
@@ -53,6 +54,7 @@
@JsonPropertyOrder({
"data",
"info",
+ "infostruct",
"path",
"provenance",
"creator",
@@ -72,6 +74,31 @@ public class ObjectData {
private UObject data;
@JsonProperty("info")
private Tuple11 > info;
+ /**
+ *
Original spec-file type: ObjectInfo
+ *
+ * Information about an object as a struct rather than a tuple.
+ * This allows adding fields in a backward compatible way in the future.
+ * Includes more fields than object_info.
+ * obj_id objid - the numerical id of the object.
+ * obj_name name - the name of the object.
+ * type_string type - the type of the object.
+ * timestamp save_date - the save date of the object.
+ * obj_ver ver - the version of the object.
+ * username saved_by - the user that saved or copied the object.
+ * ws_id wsid - the workspace containing the object.
+ * ws_name workspace - the workspace containing the object.
+ * string chsum - the md5 checksum of the object.
+ * int size - the size of the object in bytes.
+ * usermeta meta - arbitrary user-supplied metadata about the object.
+ * usermeta adminmeta - service administrator metadata set on an object. Unlike most
+ * other object fields, admin metadata is mutable.
+ * list path - the path to the object.
+ *
+ *
+ */
+ @JsonProperty("infostruct")
+ private ObjectInfo infostruct;
@JsonProperty("path")
private List path;
@JsonProperty("provenance")
@@ -128,6 +155,67 @@ public ObjectData withInfo(Tuple11 Original spec-file type: ObjectInfo
+ *
+ * Information about an object as a struct rather than a tuple.
+ * This allows adding fields in a backward compatible way in the future.
+ * Includes more fields than object_info.
+ * obj_id objid - the numerical id of the object.
+ * obj_name name - the name of the object.
+ * type_string type - the type of the object.
+ * timestamp save_date - the save date of the object.
+ * obj_ver ver - the version of the object.
+ * username saved_by - the user that saved or copied the object.
+ * ws_id wsid - the workspace containing the object.
+ * ws_name workspace - the workspace containing the object.
+ * string chsum - the md5 checksum of the object.
+ * int size - the size of the object in bytes.
+ * usermeta meta - arbitrary user-supplied metadata about the object.
+ * usermeta adminmeta - service administrator metadata set on an object. Unlike most
+ * other object fields, admin metadata is mutable.
+ * list path - the path to the object.
+ *
+ * Information about an object as a struct rather than a tuple.
+ * This allows adding fields in a backward compatible way in the future.
+ * Includes more fields than object_info.
+ * obj_id objid - the numerical id of the object.
+ * obj_name name - the name of the object.
+ * type_string type - the type of the object.
+ * timestamp save_date - the save date of the object.
+ * obj_ver ver - the version of the object.
+ * username saved_by - the user that saved or copied the object.
+ * ws_id wsid - the workspace containing the object.
+ * ws_name workspace - the workspace containing the object.
+ * string chsum - the md5 checksum of the object.
+ * int size - the size of the object in bytes.
+ * usermeta meta - arbitrary user-supplied metadata about the object.
+ * usermeta adminmeta - service administrator metadata set on an object. Unlike most
+ * other object fields, admin metadata is mutable.
+ * list path - the path to the object.
+ *
+ * Information about an object as a struct rather than a tuple.
+ * This allows adding fields in a backward compatible way in the future.
+ * Includes more fields than object_info.
+ * obj_id objid - the numerical id of the object.
+ * obj_name name - the name of the object.
+ * type_string type - the type of the object.
+ * timestamp save_date - the save date of the object.
+ * obj_ver ver - the version of the object.
+ * username saved_by - the user that saved or copied the object.
+ * ws_id wsid - the workspace containing the object.
+ * ws_name workspace - the workspace containing the object.
+ * string chsum - the md5 checksum of the object.
+ * int size - the size of the object in bytes.
+ * usermeta meta - arbitrary user-supplied metadata about the object.
+ * usermeta adminmeta - service administrator metadata set on an object. Unlike most
+ * other object fields, admin metadata is mutable.
+ * list path - the path to the object.
+ *