forked from loafle/openapi-generator-original
* Add comments in SWGConfiguration.h * Change `Date` to `date` in ObjcClientCodegen.java * Update comments in model body template
116 lines
2.4 KiB
Objective-C
116 lines
2.4 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
/** The `SWGConfiguration` class manages the configurations for the sdk.
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen
|
|
* Do not edit the class manually.
|
|
*/
|
|
@interface SWGConfiguration : NSObject
|
|
|
|
|
|
/**
|
|
* Api key values for Api Key type Authentication
|
|
*
|
|
* To add or remove api key, use `setApiKey:forApiKeyIdentifier:`.
|
|
*/
|
|
@property (readonly, nonatomic, strong) NSDictionary *apiKey;
|
|
|
|
/**
|
|
* Api key prefix values to be prepend to the respective api key
|
|
*
|
|
* To add or remove prefix, use `setApiKeyPrefix:forApiKeyPrefixIdentifier:`.
|
|
*/
|
|
@property (readonly, nonatomic, strong) NSDictionary *apiKeyPrefix;
|
|
|
|
/**
|
|
* Usename for HTTP Basic Authentication
|
|
*/
|
|
@property (nonatomic) NSString *username;
|
|
|
|
/**
|
|
* Password for HTTP Basic Authentication
|
|
*/
|
|
@property (nonatomic) NSString *password;
|
|
|
|
/**
|
|
* Temp folder for file download
|
|
*/
|
|
@property (nonatomic) NSString *tempFolderPath;
|
|
|
|
/**
|
|
* Logging Settings
|
|
*/
|
|
|
|
/**
|
|
* Debug switch, default false
|
|
*/
|
|
@property (nonatomic) BOOL debug;
|
|
|
|
/**
|
|
* Debug file location, default nil
|
|
*/
|
|
@property (nonatomic) NSString *loggingFile;
|
|
|
|
/**
|
|
* Log file handler, this property is used by sdk internally.
|
|
*/
|
|
@property (nonatomic, readonly) NSFileHandle *loggingFileHanlder;
|
|
|
|
/**
|
|
* Get configuration singleton instance
|
|
*/
|
|
+ (instancetype) sharedConfig;
|
|
|
|
/**
|
|
* Sets field in `apiKey`.
|
|
*
|
|
* To remove a apiKey for a identifier, just set the apiKey to nil.
|
|
*
|
|
* @param apiKey The apiKey value.
|
|
* @param identifier The apiKey name.
|
|
*
|
|
*/
|
|
- (void) setApiKey:(NSString *)apiKey forApiKeyIdentifier:(NSString*)identifier;
|
|
|
|
/**
|
|
* Remove api key
|
|
*
|
|
* @param identifier The apiKey name.
|
|
*/
|
|
- (void) removeApiKey:(NSString *)identifier;
|
|
|
|
/**
|
|
* Sets field in `apiKeyPrefix`
|
|
*
|
|
* To remove a apiKeyPrefix for a identifier, just set the apiKeyPrefix to nil.
|
|
*
|
|
* @param apiKeyPrefix The apiKeyPrefix value.
|
|
* @param identifier The apiKeyPrefix name.
|
|
*/
|
|
- (void) setApiKeyPrefix:(NSString *)prefix forApiKeyPrefixIdentifier:(NSString *)identifier;
|
|
|
|
/**
|
|
* Remove api key prefix
|
|
*
|
|
* @param identifier The apiKeyPrefix name.
|
|
*/
|
|
- (void) removeApiKeyPrefix:(NSString *)identifier;
|
|
|
|
/**
|
|
* Get API key (with prefix if set)
|
|
*/
|
|
- (NSString *) getApiKeyWithPrefix:(NSString *) key;
|
|
|
|
/**
|
|
* Get Basic Auth token
|
|
*/
|
|
- (NSString *) getBasicAuthToken;
|
|
|
|
/**
|
|
* Get Authentication Setings
|
|
*/
|
|
- (NSDictionary *) authSettings;
|
|
|
|
@end
|