getDBRPsWithHttpInfo method
List database retention policy mappings
Note: This method returns the HTTP Response
.
Parameters:
-
String zapTraceSpan: OpenTracing span context
-
String orgID: Specifies the organization ID to filter on
-
String org: Specifies the organization name to filter on
-
String id: Specifies the mapping ID to filter on
-
String bucketID: Specifies the bucket ID to filter on
-
bool default_: Specifies filtering on default
-
String db: Specifies the database to filter on
-
String rp: Specifies the retention policy to filter on
Implementation
Future<Response> getDBRPsWithHttpInfo({
String? zapTraceSpan,
String? orgID,
String? org,
String? id,
String? bucketID,
bool? default_,
String? db,
String? rp,
}) async {
final path = r'/dbrps';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (orgID != null) {
queryParams
.addAll(_convertParametersForCollectionFormat('', 'orgID', orgID));
}
if (org != null) {
queryParams.addAll(_convertParametersForCollectionFormat('', 'org', org));
}
if (id != null) {
queryParams.addAll(_convertParametersForCollectionFormat('', 'id', id));
}
if (bucketID != null) {
queryParams.addAll(
_convertParametersForCollectionFormat('', 'bucketID', bucketID));
}
if (default_ != null) {
queryParams.addAll(
_convertParametersForCollectionFormat('', 'default', default_));
}
if (db != null) {
queryParams.addAll(_convertParametersForCollectionFormat('', 'db', db));
}
if (rp != null) {
queryParams.addAll(_convertParametersForCollectionFormat('', 'rp', rp));
}
if (zapTraceSpan != null) {
headerParams[r'Zap-Trace-Span'] = parameterToString(zapTraceSpan);
}
const authNames = <String>[
'BasicAuthentication',
'QuerystringAuthentication',
'TokenAuthentication'
];
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes[0],
authNames,
);
}