idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
12,400
@ SafeVarargs public final void disable ( Option ... options ) { for ( Option o : options ) { optionSet . remove ( o ) ; } }
Disable options .
32
3
12,401
WrappedStatement compile ( String sql ) throws SQLException { WrappedStatement ws ; if ( ! isEnabled ( Option . REUSE_STATEMENTS ) ) { ws = new WrappedStatement ( connection . prepareStatement ( sql ) , false ) ; } else { if ( pool == null ) { pool = new IdentityHashMap <> ( ) ; } String sqlI = sql . intern ( ) ; ws = pool . get ( sqlI ) ; if ( ws == null ) { ws = new WrappedStatement ( connection . prepareStatement ( sql ) , true ) ; pool . put ( sqlI , ws ) ; } } return ws ; }
Compile a SQL statement .
143
6
12,402
void save ( CallInfo callInfo ) { access ( callInfo , ( ) -> { if ( ! savepointSupport ) { throw new UnsupportedOperationException ( "Savepoints are not supported by the database driver." ) ; } logSetup ( callInfo ) ; clearSavePointIfSet ( ) ; if ( connection . getAutoCommit ( ) ) { throw new InvalidOperationException ( "Auto-commit is set for database connection." ) ; } savepoint = connection . setSavepoint ( ) ; return 0 ; } ) ; }
Set JDBDT save - point .
111
8
12,403
void commit ( CallInfo callInfo ) { access ( callInfo , ( ) -> { logSetup ( callInfo ) ; clearSavePointIfSet ( ) ; connection . commit ( ) ; return 0 ; } ) ; }
Commit changes in the current transaction .
46
8
12,404
void restore ( CallInfo callInfo ) { // Note: this is a conservative implementation, it sets another save-point // after roll-back, some engines seem to implicitly release the save point on roll-back // (an issue with HSQLDB) access ( callInfo , ( ) -> { logSetup ( callInfo ) ; try { if ( ! savepointSupport ) { throw new UnsupportedOperationException ( "Savepoints are not supported by the database driver." ) ; } if ( savepoint == null ) { throw new InvalidOperationException ( "Save point is not set." ) ; } Savepoint s = savepoint ; savepoint = null ; connection . rollback ( s ) ; return 0 ; } finally { clearSavePointIfSet ( ) ; } } ) ; }
Roll back changes to JDBDT save - point .
162
11
12,405
void teardown ( CallInfo callInfo , boolean closeConn ) { logSetup ( callInfo ) ; if ( pool != null ) { for ( WrappedStatement ws : pool . values ( ) ) { ignoreSQLException ( ws . getStatement ( ) :: close ) ; } pool . clear ( ) ; pool = null ; } clearSavePointIfSet ( ) ; log . close ( ) ; log = null ; if ( closeConn ) { ignoreSQLException ( connection :: close ) ; } }
Tear down the database handle freeing any internal resources .
112
11
12,406
< T > T access ( CallInfo callInfo , Access < T > op ) { try { return op . execute ( ) ; } catch ( SQLException e ) { if ( isEnabled ( DB . Option . LOG_DATABASE_EXCEPTIONS ) ) { log . write ( callInfo , e ) ; } throw new DBExecutionException ( e ) ; } }
Run a operation .
81
4
12,407
void logDataSetOperation ( CallInfo callInfo , DataSet data ) { if ( isEnabled ( Option . LOG_SETUP ) ) { log . write ( callInfo , data ) ; } }
Log insertion .
41
3
12,408
void logSetup ( CallInfo callInfo , String sql ) { if ( isEnabled ( Option . LOG_SETUP ) ) { log . writeSQL ( callInfo , sql ) ; } }
Log database setup command .
39
5
12,409
public OvhTag serviceName_namespaces_namespaceId_images_imageId_tags_tagId_GET ( String serviceName , String namespaceId , String imageId , String tagId ) throws IOException { String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/tags/{tagId}" ; StringBuilder sb = path ( qPath , serviceName , namespaceId , imageId , tagId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTag . class ) ; }
Inspect image tag
145
4
12,410
public void serviceName_namespaces_namespaceId_images_imageId_permissions_permissionId_DELETE ( String serviceName , String namespaceId , String imageId , String permissionId ) throws IOException { String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions/{permissionId}" ; StringBuilder sb = path ( qPath , serviceName , namespaceId , imageId , permissionId ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; }
Delete image permissions .
135
4
12,411
public OvhPermissions serviceName_namespaces_namespaceId_images_imageId_permissions_POST ( String serviceName , String namespaceId , String imageId , OvhInputPermissions body ) throws IOException { String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions" ; StringBuilder sb = path ( qPath , serviceName , namespaceId , imageId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , body ) ; return convertTo ( resp , OvhPermissions . class ) ; }
Create image permissions
142
3
12,412
@ SafeVarargs public final DataSet row ( Object ... columnValues ) { checkIfNotReadOnly ( ) ; if ( columnValues . length != source . getColumnCount ( ) ) { throw new InvalidOperationException ( source . getColumnCount ( ) + " columns expected, not " + columnValues . length + "." ) ; } addRow ( new Row ( columnValues ) ) ; return this ; }
Add a row to the data set .
86
8
12,413
public final DataSet add ( DataSet other ) { checkIfNotReadOnly ( ) ; if ( other . getSource ( ) != source ) { throw new InvalidOperationException ( "Data source mismatch." ) ; } rows . addAll ( other . rows ) ; return this ; }
Add rows of given data set to this data set .
59
11
12,414
public static DataSet subset ( DataSet data , int startIndex , int count ) { if ( data == null ) { throw new InvalidOperationException ( "Null data set" ) ; } if ( startIndex < 0 || count < 0 || startIndex + count > data . size ( ) ) { throw new InvalidOperationException ( "Invalid range." ) ; } DataSet sub = new DataSet ( data . getSource ( ) ) ; int endIndex = startIndex + count ; for ( int i = startIndex ; i < endIndex ; i ++ ) { sub . rows . add ( data . rows . get ( i ) ) ; } return sub ; }
Create a subset of the rows of given data set .
138
11
12,415
public static DataSet copyOf ( DataSet data ) { if ( data == null ) { throw new InvalidOperationException ( "Null data set" ) ; } DataSet r = new DataSet ( data . getSource ( ) ) ; r . getRows ( ) . addAll ( data . getRows ( ) ) ; return r ; }
Create data set with the same contents of given data set .
73
12
12,416
@ SafeVarargs public static DataSet join ( DataSet ... dataSets ) { if ( dataSets == null || dataSets . length == 0 ) { throw new InvalidOperationException ( "No source data sets given for joining." ) ; } DataSet r = copyOf ( dataSets [ 0 ] ) ; for ( int i = 1 ; i < dataSets . length ; i ++ ) { DataSet d = dataSets [ i ] ; if ( d . getSource ( ) != r . getSource ( ) ) { throw new InvalidOperationException ( "Data source mismatch." ) ; } r . getRows ( ) . addAll ( d . getRows ( ) ) ; } return r ; }
Create data set that results from joining several data sets .
154
11
12,417
public void registerHandler ( String method , String url , OphApiHandler handler ) { if ( mtdHandler == null ) mtdHandler = new TreeMap <> ( String . CASE_INSENSITIVE_ORDER ) ; TreeMap < String , OphApiHandler > reg ; if ( method == null ) method = "ALL" ; reg = mtdHandler . get ( method ) ; if ( reg == null ) { reg = new TreeMap <> ( String . CASE_INSENSITIVE_ORDER ) ; mtdHandler . put ( method , reg ) ; } reg . put ( url , handler ) ; }
register and handlet linked to a method
136
8
12,418
private void invalidateConsumerKey ( String nic , String currentCK ) throws IOException { config . invalidateConsumerKey ( nic , currentCK ) ; }
Discard a consumerKey from cache
34
7
12,419
public static ApiOvhCore getInstance ( ) { ApiOvhCore core = new ApiOvhCore ( ) ; // core._consumerKey = core.config.getConsumerKey(); core . _consumerKey = core . getConsumerKeyOrNull ( ) ; // config.getConsumerKey(); if ( core . _consumerKey == null ) { File file = ApiOvhConfigBasic . getOvhConfig ( ) ; String location = ApiOvhConfigBasic . configFiles ; if ( file != null ) location = file . getAbsolutePath ( ) ; String url = "" ; String CK = "" ; try { OvhCredential credential = core . requestToken ( null ) ; url = credential . validationUrl ; CK = credential . consumerKey ; } catch ( Exception e ) { log . error ( "Fail to request a new Credential" , e ) ; } log . error ( "activate the CK {} here: {}" , CK , url ) ; throw new NullPointerException ( "no 'consumer_key' present in " + location + " or environement 'OVH_CONSUMER_KEY', activate the CK '" + CK + "' here: " + url ) ; } return core ; }
Connect to the OVH API using a consumerKey contains in your ovh config file or environment variable
272
21
12,420
public static ApiOvhCore getInstance ( String consumerKey ) { ApiOvhCore core = new ApiOvhCore ( ) ; core . _consumerKey = consumerKey ; return core ; }
Connect to the OVH API using a consumerKey
47
11
12,421
private void syncTime ( ) { try { Long ovhTime = new ApiOvhAuth ( this ) . time_GET ( ) ; long myTime = System . currentTimeMillis ( ) / 1000L ; timeOffset = myTime - ovhTime ; } catch ( Exception e ) { log . error ( "Failed syncronized Ovh Clock" ) ; timeOffset = 0L ; } }
sync local and remote time
88
5
12,422
private String getTimestamp ( ) { if ( timeOffset == null ) syncTime ( ) ; long now = System . currentTimeMillis ( ) / 1000L ; now -= timeOffset ; return Long . toString ( now ) ; }
issue an time syncronized timestamp .
50
8
12,423
public void setLoginInfo ( String nic , String password , int timeInSec ) { nic = nic . toLowerCase ( ) ; this . nic = nic ; this . password = password ; this . timeInSec = timeInSec ; }
Store password based credential for an automatic certificate generation
51
9
12,424
public OvhCredential requestToken ( String redirection ) throws IOException { OvhAccessRule [ ] accessRules = new OvhAccessRule [ this . accessRules . length ] ; // {GET POST PUT DELETE} /* for ( int i = 0 ; i < this . accessRules . length ; i ++ ) { String rule = this . accessRules [ i ] ; int p = rule . indexOf ( " " ) ; if ( p == - 1 ) throw new IOException ( "Invalid rule " + rule ) ; String mtd = rule . substring ( 0 , p ) ; String path = rule . substring ( p + 1 ) ; accessRules [ i ] = new OvhAccessRule ( ) ; accessRules [ i ] . method = OvhMethodEnum . valueOf ( mtd . toUpperCase ( ) ) ; accessRules [ i ] . path = path ; } ApiOvhAuth auth = new ApiOvhAuth ( this ) ; return auth . credential_POST ( accessRules , redirection ) ; }
Request for a new Token with full access
228
8
12,425
public String exec ( String apiPath , String method , String query , Object payload , boolean needAuth ) throws IOException { if ( payload == null ) payload = "" ; String responseText = null ; boolean cached = false ; if ( cacheManager != null ) { responseText = cacheManager . getCache ( apiPath , method , query , payload ) ; if ( responseText != null ) cached = true ; } if ( responseText == null ) try { responseText = execInternal ( method , query , payload , needAuth ) ; } catch ( OvhException e0 ) { throw e0 ; } catch ( OvhServiceException e0 ) { throw e0 ; } catch ( SocketTimeoutException e1 ) { log . error ( "calling {} {} Failed by timeout. (ConnectTimeout:{} ReadTimeout:{})" , method , query , config . getConnectTimeout ( ) , config . getReadTimeout ( ) ) ; responseText = execInternal ( method , query , payload , needAuth ) ; } catch ( IOException e2 ) { log . error ( "API OVH IOException" , e2 ) ; throw e2 ; } if ( cacheManager != null && ! cached ) cacheManager . setCache ( apiPath , method , query , payload , responseText ) ; if ( mtdHandler != null ) { for ( String mtd : new String [ ] { method , "ALL" } ) { TreeMap < String , OphApiHandler > handlers = null ; OphApiHandler handler = null ; handlers = mtdHandler . get ( mtd ) ; if ( handlers == null ) continue ; handler = handlers . get ( apiPath ) ; if ( handler == null ) continue ; try { handler . accept ( method , method , payload , responseText ) ; } catch ( Exception e ) { log . warn ( "Handler throw exeption on {} {} : {}" , method , method , e ) ; } } } return responseText ; }
Call REST entry point and handle errors
414
7
12,426
public void templateModem_name_DELETE ( String name ) throws IOException { String qPath = "/xdsl/templateModem/{name}" ; StringBuilder sb = path ( qPath , name ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; }
Delete this Modem Template
71
5
12,427
public ArrayList < OvhCity > eligibility_cities_GET ( String zipCode ) throws IOException { String qPath = "/xdsl/eligibility/cities" ; StringBuilder sb = path ( qPath ) ; query ( sb , "zipCode" , zipCode ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t2 ) ; }
Get the cities from a zipCode
98
7
12,428
public OvhAsyncTaskArray < OvhLine > eligibility_lines_active_POST ( OvhCity city , String contactName , OvhStreet street , String streetNumber ) throws IOException { String qPath = "/xdsl/eligibility/lines/active" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "city" , city ) ; addBody ( o , "contactName" , contactName ) ; addBody ( o , "street" , street ) ; addBody ( o , "streetNumber" , streetNumber ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , t5 ) ; }
Get the active lines at given address
175
7
12,429
public ArrayList < OvhStreet > eligibility_streets_GET ( String inseeCode , String partialName ) throws IOException { String qPath = "/xdsl/eligibility/streets" ; StringBuilder sb = path ( qPath ) ; query ( sb , "inseeCode" , inseeCode ) ; query ( sb , "partialName" , partialName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t6 ) ; }
Get the streets from a city inseeCode and partial street name
119
13
12,430
public OvhAsyncTask < OvhMeetingSlots > eligibility_meetings_GET ( String eligibilityId , String offerLabel ) throws IOException { String qPath = "/xdsl/eligibility/meetings" ; StringBuilder sb = path ( qPath ) ; query ( sb , "eligibilityId" , eligibilityId ) ; query ( sb , "offerLabel" , offerLabel ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t7 ) ; }
Search for meeting time slot
123
5
12,431
public OvhDiagnostic serviceName_lines_number_diagnostic_run_POST ( String serviceName , String number , OvhCustomerActionsEnum [ ] actionsDone , OvhAnswers answers , OvhFaultTypeEnum faultType ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/diagnostic/run" ; StringBuilder sb = path ( qPath , serviceName , number ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "actionsDone" , actionsDone ) ; addBody ( o , "answers" , answers ) ; addBody ( o , "faultType" , faultType ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhDiagnostic . class ) ; }
Update and get advanced diagnostic of the line
202
8
12,432
public void serviceName_lines_number_diagnostic_cancel_POST ( String serviceName , String number ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/diagnostic/cancel" ; StringBuilder sb = path ( qPath , serviceName , number ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; }
Cancel line diagnostic if possible
91
6
12,433
public OvhUnitAndValues < OvhTimestampAndValue > serviceName_lines_number_statistics_GET ( String serviceName , String number , OvhStatisticsPeriodEnum period , OvhLineStatisticsTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/statistics" ; StringBuilder sb = path ( qPath , serviceName , number ) ; query ( sb , "period" , period ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t12 ) ; }
Get various statistics about the line
152
6
12,434
public OvhTask serviceName_lines_number_dslamPort_changeProfile_POST ( String serviceName , String number , Long dslamProfileId ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/changeProfile" ; StringBuilder sb = path ( qPath , serviceName , number ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "dslamProfileId" , dslamProfileId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Change the profile of the port
157
6
12,435
public ArrayList < OvhDslamPortLog > serviceName_lines_number_dslamPort_logs_GET ( String serviceName , String number , Long limit ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/logs" ; StringBuilder sb = path ( qPath , serviceName , number ) ; query ( sb , "limit" , limit ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t13 ) ; }
Get the logs emitted by the DSLAM for this port
130
11
12,436
public ArrayList < OvhDslamLineProfile > serviceName_lines_number_dslamPort_availableProfiles_GET ( String serviceName , String number ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/availableProfiles" ; StringBuilder sb = path ( qPath , serviceName , number ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t14 ) ; }
List all availables profiles for this port
117
8
12,437
public OvhUnitAndValues < OvhTimestampAndValue > serviceName_statistics_GET ( String serviceName , OvhStatisticsPeriodEnum period , OvhAccessStatisticsTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/statistics" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "period" , period ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t12 ) ; }
Get various statistics about this access
137
6
12,438
public OvhResiliationFollowUpDetail serviceName_resiliate_POST ( String serviceName , Date resiliationDate , OvhResiliationSurvey resiliationSurvey ) throws IOException { String qPath = "/xdsl/{serviceName}/resiliate" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "resiliationDate" , resiliationDate ) ; addBody ( o , "resiliationSurvey" , resiliationSurvey ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhResiliationFollowUpDetail . class ) ; }
Resiliate the access
168
4
12,439
public void serviceName_updateInvalidOrMissingRio_POST ( String serviceName , Boolean relaunchWithoutPortability , String rio ) throws IOException { String qPath = "/xdsl/{serviceName}/updateInvalidOrMissingRio" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "relaunchWithoutPortability" , relaunchWithoutPortability ) ; addBody ( o , "rio" , rio ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; }
Update RIO or disable portability for order in error because of missing or invalid RIO
142
18
12,440
public void serviceName_modem_duplicatePortMappingConfig_POST ( String serviceName , String accessName ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/duplicatePortMappingConfig" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "accessName" , accessName ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; }
Remove all the current port mapping rules and set the same config as the access given in parameters
124
18
12,441
public ArrayList < Long > serviceName_modem_availableWLANChannel_GET ( String serviceName , OvhWLANFrequencyEnum frequency ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/availableWLANChannel" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "frequency" , frequency ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t15 ) ; }
List available WLAN channel for this modem
119
8
12,442
public OvhTask serviceName_modem_reboot_POST ( String serviceName , Date todoDate ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/reboot" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "todoDate" , todoDate ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Reboot the modem
135
4
12,443
public OvhTask serviceName_modem_blocIp_POST ( String serviceName , OvhServiceStatusEnum status ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/blocIp" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "status" , status ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Change the status of the Bloc IP on modem
138
10
12,444
public OvhAsyncTask < OvhModemInfo > serviceName_modem_retrieveInfo_POST ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/retrieveInfo" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , null ) ; return convertTo ( resp , t16 ) ; }
get general Modem information
101
5
12,445
public OvhDHCPStaticAddress serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_POST ( String serviceName , String lanName , String dhcpName , String IPAddress , String MACAddress , String name ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses" ; StringBuilder sb = path ( qPath , serviceName , lanName , dhcpName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "IPAddress" , IPAddress ) ; addBody ( o , "MACAddress" , MACAddress ) ; addBody ( o , "name" , name ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhDHCPStaticAddress . class ) ; }
Add a DHCP static lease
223
5
12,446
public OvhTask serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_MACAddress_DELETE ( String serviceName , String lanName , String dhcpName , String MACAddress ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses/{MACAddress}" ; StringBuilder sb = path ( qPath , serviceName , lanName , dhcpName , MACAddress ) ; String resp = exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTask . class ) ; }
Delete this port mapping
162
4
12,447
public OvhTask serviceName_modem_reset_POST ( String serviceName , Boolean resetOvhConfig ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/reset" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "resetOvhConfig" , resetOvhConfig ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Reset the modem to its default configuration
139
8
12,448
public OvhPortMapping serviceName_modem_portMappings_POST ( String serviceName , String allowedRemoteIp , String description , Long externalPortEnd , Long externalPortStart , String internalClient , Long internalPort , String name , OvhProtocolTypeEnum protocol ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/portMappings" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowedRemoteIp" , allowedRemoteIp ) ; addBody ( o , "description" , description ) ; addBody ( o , "externalPortEnd" , externalPortEnd ) ; addBody ( o , "externalPortStart" , externalPortStart ) ; addBody ( o , "internalClient" , internalClient ) ; addBody ( o , "internalPort" , internalPort ) ; addBody ( o , "name" , name ) ; addBody ( o , "protocol" , protocol ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhPortMapping . class ) ; }
Add a port mapping
274
4
12,449
public ArrayList < Long > serviceName_monitoringNotifications_GET ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/monitoringNotifications" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t15 ) ; }
List the notifications for this access
91
6
12,450
public OvhMonitoringNotification serviceName_monitoringNotifications_POST ( String serviceName , Boolean allowIncident , Long downThreshold , String email , OvhFrequencyEnum frequency , String phone , String smsAccount , OvhTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/monitoringNotifications" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowIncident" , allowIncident ) ; addBody ( o , "downThreshold" , downThreshold ) ; addBody ( o , "email" , email ) ; addBody ( o , "frequency" , frequency ) ; addBody ( o , "phone" , phone ) ; addBody ( o , "smsAccount" , smsAccount ) ; addBody ( o , "type" , type ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhMonitoringNotification . class ) ; }
Add a notification
250
3
12,451
public void serviceName_ips_ip_DELETE ( String serviceName , String ip ) throws IOException { String qPath = "/xdsl/{serviceName}/ips/{ip}" ; StringBuilder sb = path ( qPath , serviceName , ip ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; }
Stop renewing this extra IPv4 option
82
8
12,452
public OvhEvidencesInfo serviceName_antiSpams_ip_evidences_GET ( String serviceName , String ip ) throws IOException { String qPath = "/xdsl/{serviceName}/antiSpams/{ip}/evidences" ; StringBuilder sb = path ( qPath , serviceName , ip ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhEvidencesInfo . class ) ; }
List of evidences stored on PCS for this ip
111
11
12,453
public ArrayList < OvhRadiusConnectionLog > serviceName_radiusConnectionLogs_GET ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/radiusConnectionLogs" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t17 ) ; }
List the radius connection logs
96
5
12,454
public OvhTask serviceName_requestTotalDeconsolidation_POST ( String serviceName , Boolean noPortability , String rio ) throws IOException { String qPath = "/xdsl/{serviceName}/requestTotalDeconsolidation" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "noPortability" , noPortability ) ; addBody ( o , "rio" , rio ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Switch this access to total deconsolidation
154
9
12,455
public void serviceName_sendOrderToProvider_POST ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/sendOrderToProvider" ; StringBuilder sb = path ( qPath , serviceName ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; }
Unlock order in waitingCustomer status . It only concerns orders whose modem is sent before anything have been forwarded to our provider
74
24
12,456
public ArrayList < OvhStep > serviceName_orderFollowup_GET ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/orderFollowup" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t18 ) ; }
Get the status of the order
91
6
12,457
public net . minidev . ovh . api . xdsl . email . pro . OvhTask email_pro_email_changePassword_POST ( String email , String password ) throws IOException { String qPath = "/xdsl/email/pro/{email}/changePassword" ; StringBuilder sb = path ( qPath , email ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "password" , password ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , net . minidev . ovh . api . xdsl . email . pro . OvhTask . class ) ; }
Change the email password
165
4
12,458
public ArrayList < Long > incidents_GET ( Date creationDate , Date endDate ) throws IOException { String qPath = "/xdsl/incidents" ; StringBuilder sb = path ( qPath ) ; query ( sb , "creationDate" , creationDate ) ; query ( sb , "endDate" , endDate ) ; String resp = execN ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t15 ) ; }
List of incidents
108
3
12,459
public void spare_spare_returnMerchandise_POST ( String spare ) throws IOException { String qPath = "/xdsl/spare/{spare}/returnMerchandise" ; StringBuilder sb = path ( qPath , spare ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; }
Return the broken equipment in instantRefund
77
8
12,460
static String toHexString ( byte [ ] data ) { char [ ] chArray = new char [ data . length * 2 ] ; int pos = 0 ; for ( byte b : data ) { chArray [ pos ++ ] = HEX_CHARS [ ( b >> 4 ) & 0x0f ] ; chArray [ pos ++ ] = HEX_CHARS [ b & 0x0f ] ; } return new String ( chArray ) ; }
Convert byte array to a hexa - string .
98
11
12,461
static byte [ ] fromHexString ( String str ) { if ( str . length ( ) % 2 != 0 ) { throw new InvalidOperationException ( "Hex-string has odd length!" ) ; } byte [ ] data = new byte [ str . length ( ) / 2 ] ; int spos = 0 ; for ( int dpos = 0 ; dpos < data . length ; dpos ++ ) { int d1 = Character . digit ( str . charAt ( spos ++ ) , 16 ) ; int d2 = Character . digit ( str . charAt ( spos ++ ) , 16 ) ; if ( d1 < 0 || d2 < 0 ) { throw new InvalidOperationException ( "Mal-formed hex-string!" ) ; } data [ dpos ] = ( byte ) ( ( d1 << 4 ) | d2 ) ; } return data ; }
Convert a hexa - string to a byte array .
185
12
12,462
static byte [ ] sha1 ( InputStream in ) { try { MessageDigest md = MessageDigest . getInstance ( SHA1_DIGEST ) ; byte [ ] buffer = new byte [ 4096 ] ; int bytes ; while ( ( bytes = in . read ( buffer ) ) > 0 ) { md . update ( buffer , 0 , bytes ) ; } return md . digest ( ) ; } catch ( NoSuchAlgorithmException | IOException e ) { throw new InternalErrorException ( e ) ; } }
Compute SHA - 1 hash value for a given input stream .
109
13
12,463
@ SafeVarargs static < T > String sqlArgumentList ( T ... values ) { StringBuilder sb = new StringBuilder ( ) ; if ( values . length != 0 ) { sb . append ( values [ 0 ] ) ; for ( int i = 1 ; i < values . length ; i ++ ) { sb . append ( ' ' ) . append ( ' ' ) . append ( values [ i ] ) ; } } return sb . toString ( ) ; }
Obtain string for SQL argument list from array .
102
10
12,464
public OvhPublicOffer offer_reference_GET ( String reference ) throws IOException { String qPath = "/dbaas/logs/offer/{reference}" ; StringBuilder sb = path ( qPath , reference ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhPublicOffer . class ) ; }
Display specified offer
89
3
12,465
public OvhEngine input_engine_engineId_GET ( String engineId ) throws IOException { String qPath = "/dbaas/logs/input/engine/{engineId}" ; StringBuilder sb = path ( qPath , engineId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhEngine . class ) ; }
Returns details of specified input engine
93
6
12,466
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_POST ( String serviceName , String clusterId , OvhClusterAllowedNetworkFlowTypeEnum flowType , String network ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork" ; StringBuilder sb = path ( qPath , serviceName , clusterId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "flowType" , flowType ) ; addBody ( o , "network" , network ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Allow an IP to contact cluster
178
6
12,467
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE ( String serviceName , String clusterId , String allowedNetworkId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , clusterId , allowedNetworkId ) ; String resp = exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOperation . class ) ; }
Remove the specified IP from the list of allowed networks
137
10
12,468
public OvhClusterAllowedNetwork serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET ( String serviceName , String clusterId , String allowedNetworkId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , clusterId , allowedNetworkId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhClusterAllowedNetwork . class ) ; }
Returns details of an allowed network
141
6
12,469
public OvhLogstashConfiguration serviceName_input_inputId_configuration_logstash_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhLogstashConfiguration . class ) ; }
Returns the logstash configuration
125
6
12,470
public OvhOperation serviceName_input_inputId_configuration_logstash_PUT ( String serviceName , String inputId , String filterSection , String inputSection , String patternSection ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "filterSection" , filterSection ) ; addBody ( o , "inputSection" , inputSection ) ; addBody ( o , "patternSection" , patternSection ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update the logstash configuration
193
6
12,471
public OvhFlowggerConfiguration serviceName_input_inputId_configuration_flowgger_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhFlowggerConfiguration . class ) ; }
Returns the flowgger configuration
121
5
12,472
public OvhOperation serviceName_input_inputId_configuration_flowgger_PUT ( String serviceName , String inputId , OvhFlowggerConfigurationLogFormatEnum logFormat , OvhFlowggerConfigurationLogFramingEnum logFraming ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "logFormat" , logFormat ) ; addBody ( o , "logFraming" , logFraming ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update the flowgger configuration
193
5
12,473
public OvhInput serviceName_input_inputId_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhInput . class ) ; }
Returns details of specified input
104
5
12,474
public OvhOperation serviceName_input_inputId_PUT ( String serviceName , String inputId , String description , String engineId , String exposedPort , String optionId , Boolean singleInstanceEnabled , String streamId , String title ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "description" , description ) ; addBody ( o , "engineId" , engineId ) ; addBody ( o , "exposedPort" , exposedPort ) ; addBody ( o , "optionId" , optionId ) ; addBody ( o , "singleInstanceEnabled" , singleInstanceEnabled ) ; addBody ( o , "streamId" , streamId ) ; addBody ( o , "title" , title ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update information of specified input object
248
6
12,475
public OvhOperation serviceName_input_inputId_allowedNetwork_POST ( String serviceName , String inputId , String network ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "network" , network ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Allow an ip to join input
146
6
12,476
public OvhAllowedNetwork serviceName_input_inputId_allowedNetwork_allowedNetworkId_GET ( String serviceName , String inputId , String allowedNetworkId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork/{allowedNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , inputId , allowedNetworkId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhAllowedNetwork . class ) ; }
List all network UUID allowed to join input
133
9
12,477
public ArrayList < OvhInputAction > serviceName_input_inputId_action_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/action" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t3 ) ; }
Returns actions of specified input
111
5
12,478
public OvhOption serviceName_option_optionId_GET ( String serviceName , String optionId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/option/{optionId}" ; StringBuilder sb = path ( qPath , serviceName , optionId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOption . class ) ; }
Returns details of a subscribed option
104
6
12,479
public OvhRole serviceName_role_roleId_GET ( String serviceName , String roleId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/role/{roleId}" ; StringBuilder sb = path ( qPath , serviceName , roleId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhRole . class ) ; }
Returns details of specified role
104
5
12,480
public OvhOperation serviceName_role_roleId_PUT ( String serviceName , String roleId , String description , String name , String optionId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/role/{roleId}" ; StringBuilder sb = path ( qPath , serviceName , roleId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "description" , description ) ; addBody ( o , "name" , name ) ; addBody ( o , "optionId" , optionId ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update information of specified role
172
5
12,481
public ArrayList < OvhPermission > serviceName_role_roleId_permission_permissionId_GET ( String serviceName , String roleId , String permissionId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/role/{roleId}/permission/{permissionId}" ; StringBuilder sb = path ( qPath , serviceName , roleId , permissionId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t5 ) ; }
Returns details of specified permission
129
5
12,482
public OvhOperation serviceName_role_roleId_member_POST ( String serviceName , String roleId , String note , String username ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/role/{roleId}/member" ; StringBuilder sb = path ( qPath , serviceName , roleId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "note" , note ) ; addBody ( o , "username" , username ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Append user into the member list of specified role
159
10
12,483
public OvhMember serviceName_role_roleId_member_username_GET ( String serviceName , String roleId , String username ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/role/{roleId}/member/{username}" ; StringBuilder sb = path ( qPath , serviceName , roleId , username ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhMember . class ) ; }
Returns the member metadata
119
4
12,484
public net . minidev . ovh . api . dbaas . logs . OvhService serviceName_GET ( String serviceName ) throws IOException { String qPath = "/dbaas/logs/{serviceName}" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , net . minidev . ovh . api . dbaas . logs . OvhService . class ) ; }
Returns the service object of connected identity .
119
8
12,485
public OvhOperation serviceName_PUT ( String serviceName , String displayName , Boolean isCapped ) throws IOException { String qPath = "/dbaas/logs/{serviceName}" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "displayName" , displayName ) ; addBody ( o , "isCapped" , isCapped ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update the service properties
144
4
12,486
public OvhOperation serviceName_output_graylog_dashboard_POST ( String serviceName , Boolean autoSelectOption , String description , String optionId , String title ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/dashboard" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "autoSelectOption" , autoSelectOption ) ; addBody ( o , "description" , description ) ; addBody ( o , "optionId" , optionId ) ; addBody ( o , "title" , title ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Register a new graylog dashboard
191
6
12,487
public OvhDashboard serviceName_output_graylog_dashboard_dashboardId_GET ( String serviceName , String dashboardId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/dashboard/{dashboardId}" ; StringBuilder sb = path ( qPath , serviceName , dashboardId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhDashboard . class ) ; }
Returns details of specified graylog dashboard
120
7
12,488
public OvhStream serviceName_output_graylog_stream_streamId_GET ( String serviceName , String streamId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}" ; StringBuilder sb = path ( qPath , serviceName , streamId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhStream . class ) ; }
Returns details of specified graylog stream
114
7
12,489
public OvhOperation serviceName_output_graylog_stream_streamId_PUT ( String serviceName , String streamId , OvhStreamColdStorageCompressionEnum coldStorageCompression , Boolean coldStorageEnabled , Boolean coldStorageNotifyEnabled , Long coldStorageRetention , String description , Boolean indexingEnabled , String optionId , String title , Boolean webSocketEnabled ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}" ; StringBuilder sb = path ( qPath , serviceName , streamId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "coldStorageCompression" , coldStorageCompression ) ; addBody ( o , "coldStorageEnabled" , coldStorageEnabled ) ; addBody ( o , "coldStorageNotifyEnabled" , coldStorageNotifyEnabled ) ; addBody ( o , "coldStorageRetention" , coldStorageRetention ) ; addBody ( o , "description" , description ) ; addBody ( o , "indexingEnabled" , indexingEnabled ) ; addBody ( o , "optionId" , optionId ) ; addBody ( o , "title" , title ) ; addBody ( o , "webSocketEnabled" , webSocketEnabled ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update information of specified graylog stream
328
7
12,490
public OvhOperation serviceName_output_graylog_stream_streamId_alert_POST ( String serviceName , String streamId , Long backlog , OvhStreamAlertConditionConditionTypeEnum conditionType , OvhStreamAlertConditionConstraintTypeEnum constraintType , String field , Long grace , String queryFilter , Boolean repeatNotificationsEnabled , Long threshold , OvhStreamAlertConditionThresholdTypeEnum thresholdType , Long time , String title , String value ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/alert" ; StringBuilder sb = path ( qPath , serviceName , streamId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "backlog" , backlog ) ; addBody ( o , "conditionType" , conditionType ) ; addBody ( o , "constraintType" , constraintType ) ; addBody ( o , "field" , field ) ; addBody ( o , "grace" , grace ) ; addBody ( o , "queryFilter" , queryFilter ) ; addBody ( o , "repeatNotificationsEnabled" , repeatNotificationsEnabled ) ; addBody ( o , "threshold" , threshold ) ; addBody ( o , "thresholdType" , thresholdType ) ; addBody ( o , "time" , time ) ; addBody ( o , "title" , title ) ; addBody ( o , "value" , value ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Register a new alert on specified graylog stream
373
9
12,491
public OvhStreamAlertCondition serviceName_output_graylog_stream_streamId_alert_alertId_GET ( String serviceName , String streamId , String alertId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/alert/{alertId}" ; StringBuilder sb = path ( qPath , serviceName , streamId , alertId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhStreamAlertCondition . class ) ; }
Returns details of specified graylog stream alert
137
8
12,492
public OvhArchive serviceName_output_graylog_stream_streamId_archive_archiveId_GET ( String serviceName , String streamId , String archiveId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/archive/{archiveId}" ; StringBuilder sb = path ( qPath , serviceName , streamId , archiveId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhArchive . class ) ; }
Returns details of specified archive
135
5
12,493
public OvhArchiveUrl serviceName_output_graylog_stream_streamId_archive_archiveId_url_POST ( String serviceName , String streamId , String archiveId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/archive/{archiveId}/url" ; StringBuilder sb = path ( qPath , serviceName , streamId , archiveId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhArchiveUrl . class ) ; }
Get a public temporary URL to access the archive
142
9
12,494
public ArrayList < OvhStreamRule > serviceName_output_graylog_stream_streamId_rule_ruleId_GET ( String serviceName , String streamId , String ruleId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/rule/{ruleId}" ; StringBuilder sb = path ( qPath , serviceName , streamId , ruleId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t6 ) ; }
Returns details of specified graylog stream rule
135
8
12,495
public OvhOperation serviceName_output_graylog_stream_streamId_rule_POST ( String serviceName , String streamId , String field , Boolean isInverted , OvhStreamRuleOperatorEnum operator , String value ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/rule" ; StringBuilder sb = path ( qPath , serviceName , streamId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "field" , field ) ; addBody ( o , "isInverted" , isInverted ) ; addBody ( o , "operator" , operator ) ; addBody ( o , "value" , value ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Register a new rule on specified graylog stream
212
9
12,496
public OvhOperation serviceName_output_elasticsearch_alias_aliasId_index_POST ( String serviceName , String aliasId , String indexId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/elasticsearch/alias/{aliasId}/index" ; StringBuilder sb = path ( qPath , serviceName , aliasId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "indexId" , indexId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Attach a elasticsearch index to specified elasticsearch alias
159
10
12,497
public OvhAlias serviceName_output_elasticsearch_alias_aliasId_GET ( String serviceName , String aliasId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/elasticsearch/alias/{aliasId}" ; StringBuilder sb = path ( qPath , serviceName , aliasId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhAlias . class ) ; }
Returns specified elasticsearch alias
116
5
12,498
public OvhOperation serviceName_output_elasticsearch_alias_aliasId_PUT ( String serviceName , String aliasId , String description , String optionId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/elasticsearch/alias/{aliasId}" ; StringBuilder sb = path ( qPath , serviceName , aliasId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "description" , description ) ; addBody ( o , "optionId" , optionId ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update specified elasticsearch alias
169
5
12,499
public OvhIndex serviceName_output_elasticsearch_index_indexId_GET ( String serviceName , String indexId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/elasticsearch/index/{indexId}" ; StringBuilder sb = path ( qPath , serviceName , indexId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhIndex . class ) ; }
Returns specified elasticsearch index
116
5