@ -11,6 +11,7 @@ import 'package:built_value/standard_json_plugin.dart';
import ' package:collection/collection.dart ' ;
import ' package:collection/collection.dart ' ;
import ' package:dynamite_runtime/content_string.dart ' ;
import ' package:dynamite_runtime/content_string.dart ' ;
import ' package:dynamite_runtime/http_client.dart ' ;
import ' package:dynamite_runtime/http_client.dart ' ;
import ' package:dynamite_runtime/utils.dart ' ;
import ' package:universal_io/io.dart ' ;
import ' package:universal_io/io.dart ' ;
export ' package:dynamite_runtime/http_client.dart ' ;
export ' package:dynamite_runtime/http_client.dart ' ;
@ -733,11 +734,7 @@ class ProvisioningApiGroupsClient {
}
}
/ / coverage: ignore - end
/ / coverage: ignore - end
if ( ! RegExp ( r'^.+$' ) . hasMatch ( groupId ) ) {
checkPattern ( groupId , RegExp ( r'^.+$' ) , ' groupId ' ) ; / / coverage: ignore - line
throw Exception (
' Invalid value " $ groupId " for parameter "groupId" with pattern " ${ r'^.+$' } " ' ,
) ; / / coverage: ignore - line
}
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
final response = await _rootClient . doRequest (
final response = await _rootClient . doRequest (
@ -787,11 +784,7 @@ class ProvisioningApiGroupsClient {
}
}
/ / coverage: ignore - end
/ / coverage: ignore - end
if ( ! RegExp ( r'^.+$' ) . hasMatch ( groupId ) ) {
checkPattern ( groupId , RegExp ( r'^.+$' ) , ' groupId ' ) ; / / coverage: ignore - line
throw Exception (
' Invalid value " $ groupId " for parameter "groupId" with pattern " ${ r'^.+$' } " ' ,
) ; / / coverage: ignore - line
}
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
if ( search ! = ' ' ) {
if ( search ! = ' ' ) {
queryParameters [ ' search ' ] = search ;
queryParameters [ ' search ' ] = search ;
@ -849,11 +842,7 @@ class ProvisioningApiGroupsClient {
}
}
/ / coverage: ignore - end
/ / coverage: ignore - end
if ( ! RegExp ( r'^.+$' ) . hasMatch ( groupId ) ) {
checkPattern ( groupId , RegExp ( r'^.+$' ) , ' groupId ' ) ; / / coverage: ignore - line
throw Exception (
' Invalid value " $ groupId " for parameter "groupId" with pattern " ${ r'^.+$' } " ' ,
) ; / / coverage: ignore - line
}
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
final response = await _rootClient . doRequest (
final response = await _rootClient . doRequest (
@ -901,11 +890,7 @@ class ProvisioningApiGroupsClient {
}
}
/ / coverage: ignore - end
/ / coverage: ignore - end
if ( ! RegExp ( r'^.+$' ) . hasMatch ( groupId ) ) {
checkPattern ( groupId , RegExp ( r'^.+$' ) , ' groupId ' ) ; / / coverage: ignore - line
throw Exception (
' Invalid value " $ groupId " for parameter "groupId" with pattern " ${ r'^.+$' } " ' ,
) ; / / coverage: ignore - line
}
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
final response = await _rootClient . doRequest (
final response = await _rootClient . doRequest (
@ -958,11 +943,7 @@ class ProvisioningApiGroupsClient {
/ / coverage: ignore - end
/ / coverage: ignore - end
queryParameters [ ' key ' ] = key ;
queryParameters [ ' key ' ] = key ;
queryParameters [ ' value ' ] = value ;
queryParameters [ ' value ' ] = value ;
if ( ! RegExp ( r'^.+$' ) . hasMatch ( groupId ) ) {
checkPattern ( groupId , RegExp ( r'^.+$' ) , ' groupId ' ) ; / / coverage: ignore - line
throw Exception (
' Invalid value " $ groupId " for parameter "groupId" with pattern " ${ r'^.+$' } " ' ,
) ; / / coverage: ignore - line
}
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
final response = await _rootClient . doRequest (
final response = await _rootClient . doRequest (
@ -1011,11 +992,7 @@ class ProvisioningApiGroupsClient {
}
}
/ / coverage: ignore - end
/ / coverage: ignore - end
if ( ! RegExp ( r'^.+$' ) . hasMatch ( groupId ) ) {
checkPattern ( groupId , RegExp ( r'^.+$' ) , ' groupId ' ) ; / / coverage: ignore - line
throw Exception (
' Invalid value " $ groupId " for parameter "groupId" with pattern " ${ r'^.+$' } " ' ,
) ; / / coverage: ignore - line
}
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
path = path . replaceAll ( ' {groupId} ' , Uri . encodeQueryComponent ( groupId ) ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
final response = await _rootClient . doRequest (
final response = await _rootClient . doRequest (
@ -1801,11 +1778,11 @@ class ProvisioningApiUsersClient {
queryParameters [ ' key ' ] = key ;
queryParameters [ ' key ' ] = key ;
queryParameters [ ' value ' ] = value ;
queryParameters [ ' value ' ] = value ;
path = path . replaceAll ( ' {userId} ' , Uri . encodeQueryComponent ( userId ) ) ;
path = path . replaceAll ( ' {userId} ' , Uri . encodeQueryComponent ( userId ) ) ;
if ( ! RegExp ( r'^(?!enable$|disable$)[a-zA-Z0-9_]*$' ) . hasMatch ( collectionName ) ) {
checkPattern (
throw Exception (
collectionName ,
' Invalid value " $ collectionName " for parameter "collectionName" with pattern " ${ r'^(?!enable$|disable$)[a-zA-Z0-9_]*$' } " ' ,
RegExp ( r'^(?!enable$|disable$)[a-zA-Z0-9_]*$' ) ,
) ; / / coverage: ignore - line
' collectionName ' ,
}
) ; / / coverage: ignore - line
path = path . replaceAll ( ' {collectionName} ' , Uri . encodeQueryComponent ( collectionName ) ) ;
path = path . replaceAll ( ' {collectionName} ' , Uri . encodeQueryComponent ( collectionName ) ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
headers [ ' OCS-APIRequest ' ] = oCSAPIRequest . toString ( ) ;
final response = await _rootClient . doRequest (
final response = await _rootClient . doRequest (