def _fields(cls): # type: () -> Dict[str, ConjureFieldDefinition] return { 'aliases': ConjureFieldDefinition( 'aliases', DictType(RidAliasExample, DateTimeAliasExample)) }
def get_file_systems(self, auth_header): # type: (str) -> Dict[str, BackingFileSystem] """Returns a mapping from file system id to backing file system configuration.""" _headers = { 'Accept': 'application/json', 'Authorization': auth_header, } # type: Dict[str, Any] _params = {} # type: Dict[str, Any] _path_params = {} # type: Dict[str, Any] _json = None # type: Any _path = '/catalog/fileSystems' _path = _path.format(**_path_params) _response = self._request( # type: ignore 'GET', self._uri + _path, params=_params, headers=_headers, json=_json) _decoder = ConjureDecoder() return _decoder.decode(_response.json(), DictType(str, BackingFileSystem))
def _fields(cls): # type: () -> Dict[str, ConjureFieldDefinition] return { 'file_system_id': ConjureFieldDefinition('fileSystemId', str), 'base_uri': ConjureFieldDefinition('baseUri', str), 'configuration': ConjureFieldDefinition('configuration', DictType(str, str)) }
def _fields(cls): # type: () -> Dict[str, ConjureFieldDefinition] return { 'strings': ConjureFieldDefinition( 'strings', DictType(StringAliasExample, ManyFieldExample)), 'rids': ConjureFieldDefinition('rids', DictType(RidAliasExample, ManyFieldExample)), 'bearertokens': ConjureFieldDefinition( 'bearertokens', DictType(BearerTokenAliasExample, ManyFieldExample)), 'integers': ConjureFieldDefinition( 'integers', DictType(IntegerAliasExample, ManyFieldExample)), 'safelongs': ConjureFieldDefinition( 'safelongs', DictType(SafeLongAliasExample, ManyFieldExample)), 'datetimes': ConjureFieldDefinition( 'datetimes', DictType(DateTimeAliasExample, ManyFieldExample)), 'uuids': ConjureFieldDefinition( 'uuids', DictType(UuidAliasExample, ManyFieldExample)) }
def _fields(cls): # type: () -> Dict[str, ConjureFieldDefinition] return { 'string': ConjureFieldDefinition('string', str), 'integer': ConjureFieldDefinition('integer', int), 'double_value': ConjureFieldDefinition('doubleValue', float), 'optional_item': ConjureFieldDefinition('optionalItem', OptionalType(str)), 'items': ConjureFieldDefinition('items', ListType(str)), 'set': ConjureFieldDefinition('set', ListType(str)), 'map': ConjureFieldDefinition('map', DictType(str, str)), 'alias': ConjureFieldDefinition('alias', StringAliasExample) }
def _fields(cls): # type: () -> Dict[str, ConjureFieldDefinition] return {'items': ConjureFieldDefinition('items', DictType(str, str))}
def uuid(self): # type: () -> str return self._uuid BearerTokenAliasExample = str BinaryAliasExample = BinaryType() BooleanAliasExample = bool DateTimeAliasExample = str DoubleAliasExample = float IntegerAliasExample = int MapAliasExample = DictType(str, object) RecursiveObjectAlias = RecursiveObjectExample ReferenceAliasExample = AnyExample RidAliasExample = str SafeLongAliasExample = int StringAliasExample = str UuidAliasExample = str
return self._uuid RidAliasExample = str BinaryAliasExample = BinaryType() SafeLongAliasExample = int StringAliasExample = str UuidAliasExample = str RecursiveObjectAlias = RecursiveObjectExample CollectionAliasExample = DictType(StringAliasExample, RecursiveObjectAlias) NestedAliasExample = RecursiveObjectAlias BearerTokenAliasExample = str DateTimeAliasExample = str MapAliasExample = DictType(str, object) ReferenceAliasExample = AnyExample DoubleAliasExample = float IntegerAliasExample = int