idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
12,300 | public static void waitUntilNoActivityUpTo ( Jenkins jenkins , int timeout ) throws Exception { long startTime = System . currentTimeMillis ( ) ; int streak = 0 ; while ( true ) { Thread . sleep ( 10 ) ; if ( isSomethingHappening ( jenkins ) ) { streak = 0 ; } else { streak ++ ; } if ( streak > 5 ) { return ; } if ( Sy... | Waits until Hudson finishes building everything including those in the queue or fail the test if the specified timeout milliseconds is |
12,301 | public boolean waitUp ( String cloudId , DockerSlaveTemplate dockerSlaveTemplate , InspectContainerResponse containerInspect ) { if ( isFalse ( containerInspect . getState ( ) . getRunning ( ) ) ) { throw new IllegalStateException ( "Container '" + containerInspect . getId ( ) + "' is not running!" ) ; } return true ; ... | Wait until slave is up and ready for connection . |
12,302 | public ClientBuilderForConnector forConnector ( DockerConnector connector ) throws UnrecoverableKeyException , NoSuchAlgorithmException , KeyStoreException , KeyManagementException { LOG . debug ( "Building connection to docker host '{}'" , connector . getServerUrl ( ) ) ; withCredentialsId ( connector . getCredentials... | Provides ready to use docker client with information from docker connector |
12,303 | public ClientBuilderForConnector withCredentialsId ( String credentialsId ) throws UnrecoverableKeyException , NoSuchAlgorithmException , KeyStoreException , KeyManagementException { if ( isNotBlank ( credentialsId ) ) { withCredentials ( lookupSystemCredentials ( credentialsId ) ) ; } else { withSslConfig ( null ) ; }... | Sets SSLConfig from defined credentials id . |
12,304 | public static Credentials lookupSystemCredentials ( String credentialsId ) { return firstOrNull ( lookupCredentials ( Credentials . class , Jenkins . getInstance ( ) , ACL . SYSTEM , emptyList ( ) ) , withId ( credentialsId ) ) ; } | Util method to find credential by id in jenkins |
12,305 | public List < DockerSlaveTemplate > getTemplates ( Label label ) { List < DockerSlaveTemplate > dockerSlaveTemplates = new ArrayList < > ( ) ; for ( DockerSlaveTemplate t : templates ) { if ( isNull ( label ) && t . getMode ( ) == Node . Mode . NORMAL ) { dockerSlaveTemplates . add ( t ) ; } if ( nonNull ( label ) && l... | Multiple templates may have the same label . |
12,306 | public void setTemplates ( List < DockerSlaveTemplate > replaceTemplates ) { if ( replaceTemplates != null ) { templates = new ArrayList < > ( replaceTemplates ) ; } else { templates = Collections . emptyList ( ) ; } } | Set list of available templates |
12,307 | protected void decrementAmiSlaveProvision ( DockerSlaveTemplate container ) { synchronized ( provisionedImages ) { int currentProvisioning = 0 ; if ( provisionedImages . containsKey ( container ) ) { currentProvisioning = provisionedImages . get ( container ) ; } provisionedImages . put ( container , Math . max ( curre... | Decrease the count of slaves being provisioned . |
12,308 | public void execInternal ( final DockerClient client , final String imageName , TaskListener listener ) throws IOException { PrintStream llog = listener . getLogger ( ) ; if ( shouldPullImage ( client , imageName ) ) { LOG . info ( "Pulling image '{}'. This may take awhile..." , imageName ) ; llog . println ( String . ... | Action around image with defined configuration |
12,309 | public void resolveCreds ( ) { final AuthConfigurations authConfigs = new AuthConfigurations ( ) ; for ( Map . Entry < String , String > entry : creds . entrySet ( ) ) { final String registry = entry . getKey ( ) ; final String credId = entry . getValue ( ) ; final Credentials credentials = ClientBuilderForConnector . ... | Fill additional object with resolved creds . For example before transfering object to remote . |
12,310 | protected List < DockerCloud > getAvailableDockerClouds ( Label label ) { return getAllDockerClouds ( ) . stream ( ) . filter ( cloud -> cloud . canProvision ( label ) && ( countCurrentDockerSlaves ( cloud ) >= 0 ) && ( countCurrentDockerSlaves ( cloud ) < cloud . getContainerCap ( ) ) ) . collect ( Collectors . toList... | Get a list of available DockerCloud clouds which are not at max capacity . |
12,311 | public static AppEngineDescriptor parse ( InputStream in ) throws IOException , SAXException { Preconditions . checkNotNull ( in , "Null input" ) ; try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; documentBuilderFactory . setNamespaceAware ( true ) ; return new AppEngineD... | Parses an appengine - web . xml file . |
12,312 | public String getRuntime ( ) throws AppEngineException { String runtime = getText ( getNode ( document , "appengine-web-app" , "runtime" ) ) ; if ( runtime == null ) { runtime = "java7" ; } return runtime ; } | Returns runtime from the < ; runtime> ; element of the appengine - web . xml or the default one when it is missing . |
12,313 | public String getServiceId ( ) throws AppEngineException { String serviceId = getText ( getNode ( document , "appengine-web-app" , "service" ) ) ; if ( serviceId != null ) { return serviceId ; } return getText ( getNode ( document , "appengine-web-app" , "module" ) ) ; } | Returns service ID from the < ; service> ; element of the appengine - web . xml or null if it is missing . Will also look at module ID . |
12,314 | private static Map < String , String > getAttributeMap ( Node parent , String nodeName , String keyAttributeName , String valueAttributeName ) throws AppEngineException { Map < String , String > nameValueAttributeMap = new HashMap < > ( ) ; if ( parent . hasChildNodes ( ) ) { for ( int i = 0 ; i < parent . getChildNode... | Returns a map formed from the attributes of the nodes contained within the parent node . |
12,315 | private static Node getNode ( Document doc , String parentNodeName , String targetNodeName ) { NodeList parentElements = doc . getElementsByTagNameNS ( APP_ENGINE_NAMESPACE , parentNodeName ) ; if ( parentElements . getLength ( ) > 0 ) { Node parent = parentElements . item ( 0 ) ; if ( parent . hasChildNodes ( ) ) { fo... | Returns the first node found matching the given name contained within the parent node . |
12,316 | public void login ( ) throws AppEngineException { try { runner . run ( ImmutableList . of ( "auth" , "login" ) , null ) ; } catch ( ProcessHandlerException | IOException ex ) { throw new AppEngineException ( ex ) ; } } | Launches the gcloud auth login flow . |
12,317 | public void activateServiceAccount ( Path jsonFile ) throws AppEngineException { Preconditions . checkArgument ( Files . exists ( jsonFile ) , "File does not exist: " + jsonFile ) ; try { List < String > args = new ArrayList < > ( 3 ) ; args . add ( "auth" ) ; args . add ( "activate-service-account" ) ; args . addAll (... | Activates a service account based on a configured json key file . |
12,318 | public int compareTo ( CloudSdkVersion other ) { Preconditions . checkNotNull ( other ) ; if ( "HEAD" . equals ( version ) && ! "HEAD" . equals ( other . version ) ) { return 1 ; } else if ( ! "HEAD" . equals ( version ) && "HEAD" . equals ( other . version ) ) { return - 1 ; } List < Integer > mine = ImmutableList . o... | Compares this to another CloudSdkVersion per the Semantic Versioning 2 . 0 . 0 specification . |
12,319 | public void deploy ( DeployConfiguration config ) throws AppEngineException { Preconditions . checkNotNull ( config ) ; Preconditions . checkNotNull ( config . getDeployables ( ) ) ; Preconditions . checkArgument ( config . getDeployables ( ) . size ( ) > 0 ) ; Path workingDirectory = null ; List < String > arguments =... | Deploys a project to App Engine . |
12,320 | public int compareTo ( CloudSdkVersionPreRelease other ) { Preconditions . checkNotNull ( other ) ; int index = 0 ; while ( index < this . segments . size ( ) && index < other . segments . size ( ) ) { int result = this . segments . get ( index ) . compareTo ( other . segments . get ( index ) ) ; if ( result != 0 ) { r... | Compares this to another CloudSdkVersionPreRelease . |
12,321 | public static boolean contains ( String className ) { if ( className . startsWith ( "javax." ) ) { return ! isBundledInJre ( className ) || WHITELIST . contains ( className ) ; } else if ( className . startsWith ( "java." ) || className . startsWith ( "sun.util." ) || className . startsWith ( "org.xml.sax." ) || classN... | Determine whether class is allowed in App Engine Standard . |
12,322 | private static boolean isBundledInJre ( String className ) { if ( className . startsWith ( "javax.accessibility." ) || className . startsWith ( "javax.activation." ) || className . startsWith ( "javax.activity." ) || className . startsWith ( "javax.annotation." ) || className . startsWith ( "javax.crypto." ) || classNa... | javax packages are tricky . Some are in the JRE . Some aren t . |
12,323 | public boolean isInstalled ( ) throws ManagedSdkVerificationException , ManagedSdkVersionMismatchException { if ( getSdkHome ( ) == null ) { return false ; } if ( ! Files . isDirectory ( getSdkHome ( ) ) ) { return false ; } if ( ! Files . isRegularFile ( getGcloudPath ( ) ) ) { return false ; } if ( version != Version... | Simple check to verify Cloud SDK installed by verifying the existence of gcloud . |
12,324 | public boolean isUpToDate ( ) throws ManagedSdkVerificationException { if ( ! Files . isRegularFile ( getGcloudPath ( ) ) ) { return false ; } if ( version != Version . LATEST ) { return true ; } List < String > updateAvailableCommand = Arrays . asList ( getGcloudPath ( ) . toString ( ) , "components" , "list" , "--for... | Query gcloud to see if SDK is up to date . Gcloud makes a call to the server to check this . |
12,325 | public Extractor newExtractor ( Path archive , Path destination , ProgressListener progressListener ) throws UnknownArchiveTypeException { if ( archive . toString ( ) . toLowerCase ( ) . endsWith ( ".tar.gz" ) ) { return new Extractor ( archive , destination , new TarGzExtractorProvider ( ) , progressListener ) ; } if ... | Creates a new extractor based on filetype . Filetype determination is based on the filename string this method makes no attempt to validate the file contents to verify they are the type defined by the file extension . |
12,326 | @ SuppressWarnings ( "unchecked" ) public static AppYaml parse ( InputStream input ) throws AppEngineException { try { Yaml yaml = new Yaml ( new SafeConstructor ( ) ) ; Map < String , ? > contents = ( Map < String , ? > ) yaml . load ( input ) ; return new AppYaml ( contents ) ; } catch ( YAMLException ex ) { throw ne... | Parse an app . yaml file to an AppYaml object . |
12,327 | public Builder toBuilder ( ) { Builder builder = builder ( getServices ( ) ) . additionalArguments ( getAdditionalArguments ( ) ) . automaticRestart ( automaticRestart ) . defaultGcsBucketName ( defaultGcsBucketName ) . environment ( getEnvironment ( ) ) . host ( host ) . jvmFlags ( getJvmFlags ( ) ) . port ( port ) . ... | Returns a mutable builder initialized with the values of this runtime configuration . |
12,328 | public void handleStream ( final InputStream inputStream ) { if ( executorService . isShutdown ( ) ) { throw new IllegalStateException ( "Cannot re-use " + this . getClass ( ) . getName ( ) ) ; } result . setFuture ( executorService . submit ( ( ) -> consumeBytes ( inputStream ) ) ) ; executorService . shutdown ( ) ; } | Handle an input stream on a separate thread . |
12,329 | public static SdkUpdater newUpdater ( OsInfo . Name osName , Path gcloudPath ) { switch ( osName ) { case WINDOWS : return new SdkUpdater ( gcloudPath , CommandRunner . newRunner ( ) , new WindowsBundledPythonCopier ( gcloudPath , CommandCaller . newCaller ( ) ) ) ; default : return new SdkUpdater ( gcloudPath , Comman... | Configure and create a new Updater instance . |
12,330 | public void stageArchive ( AppYamlProjectStageConfiguration config ) throws AppEngineException { Preconditions . checkNotNull ( config ) ; Path stagingDirectory = config . getStagingDirectory ( ) ; if ( ! Files . exists ( stagingDirectory ) ) { throw new AppEngineException ( "Staging directory does not exist. Location:... | Stages an app . yaml based App Engine project for deployment . Copies app . yaml the project artifact and any user defined extra files . Will also copy the Docker directory for flex projects . |
12,331 | public void extract ( ) throws IOException , InterruptedException { try { extractorProvider . extract ( archive , destination , progressListener ) ; } catch ( IOException ex ) { try { logger . warning ( "Extraction failed, cleaning up " + destination ) ; cleanUp ( destination ) ; } catch ( IOException exx ) { logger . ... | Extract an archive . |
12,332 | public void start ( VersionsSelectionConfiguration configuration ) throws AppEngineException { Preconditions . checkNotNull ( configuration ) ; Preconditions . checkNotNull ( configuration . getVersions ( ) ) ; Preconditions . checkArgument ( configuration . getVersions ( ) . size ( ) > 0 ) ; List < String > arguments ... | Starts serving a specific version or versions . |
12,333 | public void list ( VersionsListConfiguration configuration ) throws AppEngineException { Preconditions . checkNotNull ( configuration ) ; List < String > arguments = new ArrayList < > ( ) ; arguments . add ( "app" ) ; arguments . add ( "versions" ) ; arguments . add ( "list" ) ; arguments . addAll ( GcloudArgs . get ( ... | Lists the versions for a service or every version of every service if no service is specified . |
12,334 | public void onOutputLine ( String line ) { if ( waitLatch . getCount ( ) > 0 && message != null && line . matches ( message ) ) { waitLatch . countDown ( ) ; } } | Monitors the output of the process to check whether the wait condition is satisfied . |
12,335 | public List < CloudSdkComponent > getComponents ( ) throws ProcessHandlerException , JsonSyntaxException , CloudSdkNotFoundException , CloudSdkOutOfDateException , CloudSdkVersionFileException , IOException { sdk . validateCloudSdk ( ) ; List < String > command = new ImmutableList . Builder < String > ( ) . add ( "comp... | Returns the list of Cloud SDK Components and their settings reported by the current gcloud installation . Unlike other methods in this class that call gcloud this method always uses a synchronous ProcessRunner and will block until the gcloud process returns . |
12,336 | public CloudSdkConfig getConfig ( ) throws CloudSdkNotFoundException , CloudSdkOutOfDateException , CloudSdkVersionFileException , IOException , ProcessHandlerException { sdk . validateCloudSdk ( ) ; List < String > command = new ImmutableList . Builder < String > ( ) . add ( "config" , "list" ) . addAll ( GcloudArgs .... | Returns a representation of gcloud config it makes a synchronous call to gcloud config list to do so . |
12,337 | public String runCommand ( List < String > args ) throws CloudSdkNotFoundException , IOException , ProcessHandlerException { sdk . validateCloudSdkLocation ( ) ; StringBuilderProcessOutputLineListener stdOutListener = StringBuilderProcessOutputLineListener . newListener ( ) ; StringBuilderProcessOutputLineListener stdE... | Run short lived gcloud commands . |
12,338 | public void run ( List < String > args ) throws ProcessHandlerException , AppEngineJavaComponentsNotInstalledException , InvalidJavaSdkException , IOException { sdk . validateAppEngineJavaComponents ( ) ; sdk . validateJdk ( ) ; System . setProperty ( "appengine.sdk.root" , sdk . getAppEngineSdkForJavaPath ( ) . toStri... | Executes an App Engine SDK CLI command . |
12,339 | public void generate ( GenRepoInfoFileConfiguration configuration ) throws AppEngineException { List < String > arguments = new ArrayList < > ( ) ; arguments . add ( "beta" ) ; arguments . add ( "debug" ) ; arguments . add ( "source" ) ; arguments . add ( "gen-repo-info-file" ) ; arguments . addAll ( GcloudArgs . get (... | Generates source context files . |
12,340 | public void download ( ) throws IOException , InterruptedException { if ( ! Files . exists ( destinationFile . getParent ( ) ) ) { Files . createDirectories ( destinationFile . getParent ( ) ) ; } if ( Files . exists ( destinationFile ) ) { throw new FileAlreadyExistsException ( destinationFile . toString ( ) ) ; } URL... | Download an archive this will NOT overwrite a previously existing file . |
12,341 | public CloudSdkVersion getVersion ( ) throws CloudSdkVersionFileException { Path versionFile = getPath ( ) . resolve ( VERSION_FILE_NAME ) ; if ( ! Files . isRegularFile ( versionFile ) ) { throw new CloudSdkVersionFileNotFoundException ( "Cloud SDK version file not found at " + versionFile . toString ( ) ) ; } String ... | Returns the version of the Cloud SDK installation . Version is determined by reading the VERSION file located in the Cloud SDK directory . |
12,342 | public Path getGCloudPath ( ) { String gcloud = GCLOUD ; if ( IS_WINDOWS ) { gcloud += ".cmd" ; } return getPath ( ) . resolve ( gcloud ) ; } | Get an OS specific path to gcloud . |
12,343 | public Path getAppEngineSdkForJavaPath ( ) { Path resolved = getPath ( ) . resolve ( APPENGINE_SDK_FOR_JAVA_PATH ) ; if ( resolved == null ) { throw new RuntimeException ( "Misconfigured App Engine SDK for Java" ) ; } return resolved ; } | Returns the directory containing JAR files bundled with the Cloud SDK . |
12,344 | public void validateAppEngineJavaComponents ( ) throws AppEngineJavaComponentsNotInstalledException { if ( ! Files . isDirectory ( getAppEngineSdkForJavaPath ( ) ) ) { throw new AppEngineJavaComponentsNotInstalledException ( "Validation Error: Java App Engine components not installed." + " Fix by running 'gcloud compon... | Checks whether the App Engine Java components are installed in the expected location in the Cloud SDK . |
12,345 | public Path getAppEngineToolsJar ( ) { Path path = jarLocations . get ( JAVA_TOOLS_JAR ) ; if ( path == null ) { throw new RuntimeException ( "Misconfigured Cloud SDK" ) ; } return path ; } | Locates appengine - tools - api . jar . |
12,346 | public void installComponent ( SdkComponent component , ProgressListener progressListener , ConsoleListener consoleListener ) throws InterruptedException , CommandExitException , CommandExecutionException { progressListener . start ( "Installing " + component . toString ( ) , ProgressListener . UNKNOWN ) ; Map < String... | Install a component . |
12,347 | public static SdkComponentInstaller newComponentInstaller ( OsInfo . Name osName , Path gcloudPath ) { switch ( osName ) { case WINDOWS : return new SdkComponentInstaller ( gcloudPath , CommandRunner . newRunner ( ) , new WindowsBundledPythonCopier ( gcloudPath , CommandCaller . newCaller ( ) ) ) ; default : return new... | Configure and create a new Component Installer instance . |
12,348 | public Path install ( final ProgressListener progressListener , final ConsoleListener consoleListener ) throws IOException , InterruptedException , SdkInstallerException , CommandExecutionException , CommandExitException { FileResourceProvider fileResourceProvider = fileResourceProviderFactory . newFileResourceProvider... | Download and install a new Cloud SDK . |
12,349 | public static SdkInstaller newInstaller ( Path managedSdkDirectory , Version version , OsInfo osInfo , String userAgentString , boolean usageReporting ) { DownloaderFactory downloaderFactory = new DownloaderFactory ( userAgentString ) ; ExtractorFactory extractorFactory = new ExtractorFactory ( ) ; InstallerFactory ins... | Configure and create a new Installer instance . |
12,350 | public void run ( RunConfiguration config ) throws AppEngineException { Preconditions . checkNotNull ( config ) ; Preconditions . checkNotNull ( config . getServices ( ) ) ; Preconditions . checkArgument ( config . getServices ( ) . size ( ) > 0 ) ; List < String > arguments = new ArrayList < > ( ) ; List < String > jv... | Starts the local development server synchronously or asynchronously . |
12,351 | public void stop ( StopConfiguration configuration ) throws AppEngineException { Preconditions . checkNotNull ( configuration ) ; HttpURLConnection connection = null ; String host = configuration . getHost ( ) != null ? configuration . getHost ( ) : DEFAULT_HOST ; int port = configuration . getPort ( ) != null ? config... | Stops the local development server . |
12,352 | public Path getCloudSdkPath ( ) { List < String > possiblePaths = getLocationsFromPath ( System . getenv ( "PATH" ) ) ; possiblePaths . add ( System . getenv ( "GOOGLE_CLOUD_SDK_HOME" ) ) ; if ( IS_WINDOWS ) { possiblePaths . add ( getLocalAppDataLocation ( ) ) ; possiblePaths . add ( getProgramFilesLocation ( ) ) ; } ... | Attempts to find the path to Google Cloud SDK . |
12,353 | private static String getLocalAppDataLocation ( ) { String localAppData = System . getenv ( "LOCALAPPDATA" ) ; if ( localAppData != null ) { return localAppData + "\\Google\\Cloud SDK\\google-cloud-sdk" ; } else { return null ; } } | The default location for a single - user install of Cloud SDK on Windows . |
12,354 | static void getLocationsFromLink ( List < String > possiblePaths , Path link ) { try { Path resolvedLink = link . toRealPath ( ) ; Path possibleBinDir = resolvedLink . getParent ( ) ; if ( possibleBinDir != null && possibleBinDir . getFileName ( ) . toString ( ) . equals ( "bin" ) ) { Path possibleCloudSdkHome = possib... | resolve symlinks to a path that could be the bin directory of the cloud sdk |
12,355 | public void stageStandard ( AppEngineWebXmlProjectStageConfiguration config ) throws AppEngineException { Preconditions . checkNotNull ( config ) ; Preconditions . checkNotNull ( config . getSourceDirectory ( ) ) ; Preconditions . checkNotNull ( config . getStagingDirectory ( ) ) ; List < String > arguments = new Array... | Stages an appengine - web . xml based project for deployment . Calls out to appcfg to execute this staging . |
12,356 | public void start ( ) { config . serverConfigs ( ) . forEach ( ( key , serverConfig ) -> servers . put ( key , EbeanServerFactory . create ( serverConfig ) ) ) ; } | Initialise the Ebean servers . |
12,357 | public void create ( ) { if ( ! environment . isProd ( ) ) { config . serverConfigs ( ) . forEach ( ( key , serverConfig ) -> { String evolutionScript = generateEvolutionScript ( servers . get ( key ) ) ; if ( evolutionScript != null ) { File evolutions = environment . getFile ( "conf/evolutions/" + key + "/1.sql" ) ; ... | Generate evolutions . |
12,358 | public static String generateEvolutionScript ( EbeanServer server ) { try { SpiEbeanServer spiServer = ( SpiEbeanServer ) server ; CurrentModel ddl = new CurrentModel ( spiServer ) ; String ups = ddl . getCreateDdl ( ) ; String downs = ddl . getDropAllDdl ( ) ; if ( ups == null || ups . trim ( ) . isEmpty ( ) ) { retur... | Helper method that generates the required evolution to properly run Ebean . |
12,359 | public static EbeanParsedConfig parseFromConfig ( Config config ) { Config playEbeanConfig = config . getConfig ( "play.ebean" ) ; String defaultDatasource = playEbeanConfig . getString ( "defaultDatasource" ) ; String ebeanConfigKey = playEbeanConfig . getString ( "config" ) ; Map < String , List < String > > datasour... | Parse a play configuration . |
12,360 | public ArrayList < String > serviceName_renewCertificate_POST ( String serviceName , String domain ) throws IOException { String qPath = "/sslGateway/{serviceName}/renewCertificate" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "d... | Renew your SSL certificates |
12,361 | public OvhServer serviceName_server_POST ( String serviceName , String address , Long port ) throws IOException { String qPath = "/sslGateway/{serviceName}/server" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "address" , address ... | Add a new server to your SSL Gateway |
12,362 | public ArrayList < OvhTask > serviceName_update_POST ( String serviceName , String ip , String password , Long port , String username ) throws IOException { String qPath = "/veeam/veeamEnterprise/{serviceName}/update" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < Stri... | Update Veeam enterprise configuration |
12,363 | public OvhSecret retrieve_POST ( String id ) throws IOException { String qPath = "/secret/retrieve" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "id" , id ) ; String resp = execN ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( ... | Retrieve a secret sent by email |
12,364 | public OvhCustomSslMessage serviceName_ssl_PUT ( String serviceName , OvhInputCustomSsl body ) throws IOException { String qPath = "/caas/containers/{serviceName}/ssl" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , body ) ; return convertTo ( resp , OvhCusto... | Update the custom SSL certificate and private |
12,365 | public void serviceName_frameworks_frameworkId_password_PUT ( String serviceName , String frameworkId , OvhPassword body ) throws IOException { String qPath = "/caas/containers/{serviceName}/frameworks/{frameworkId}/password" ; StringBuilder sb = path ( qPath , serviceName , frameworkId ) ; exec ( qPath , "PUT" , sb . ... | Update the framework access password |
12,366 | public OvhApplication serviceName_frameworks_frameworkId_apps_GET ( String serviceName , String frameworkId ) throws IOException { String qPath = "/caas/containers/{serviceName}/frameworks/{frameworkId}/apps" ; StringBuilder sb = path ( qPath , serviceName , frameworkId ) ; String resp = exec ( qPath , "GET" , sb . toS... | List apps in the framework |
12,367 | public OvhFramework serviceName_frameworks_frameworkId_GET ( String serviceName , String frameworkId ) throws IOException { String qPath = "/caas/containers/{serviceName}/frameworks/{frameworkId}" ; StringBuilder sb = path ( qPath , serviceName , frameworkId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , ... | Inspect the stack framework |
12,368 | public OvhSlave serviceName_slaves_slaveId_GET ( String serviceName , String slaveId ) throws IOException { String qPath = "/caas/containers/{serviceName}/slaves/{slaveId}" ; StringBuilder sb = path ( qPath , serviceName , slaveId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( ... | Inspect the argument user slave instance |
12,369 | public OvhRegistryCredentials serviceName_registry_credentials_credentialsId_PUT ( String serviceName , String credentialsId , OvhInputCustomSsl body ) throws IOException { String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}" ; StringBuilder sb = path ( qPath , serviceName , credentialsI... | Update the registry credentials . |
12,370 | public OvhRegistryCredentials serviceName_registry_credentials_credentialsId_GET ( String serviceName , String credentialsId ) throws IOException { String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}" ; StringBuilder sb = path ( qPath , serviceName , credentialsId ) ; String resp = exec ... | Inspect the image registry credentials associated to the stack |
12,371 | public void serviceName_registry_credentials_credentialsId_DELETE ( String serviceName , String credentialsId ) throws IOException { String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}" ; StringBuilder sb = path ( qPath , serviceName , credentialsId ) ; exec ( qPath , "DELETE" , sb . toS... | Delete the registry credentials . |
12,372 | public OvhBackend serviceName_domains_domain_backends_POST ( String serviceName , String domain , String ip ) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/backends" ; StringBuilder sb = path ( qPath , serviceName , domain ) ; HashMap < String , Object > o = new HashMap < String , O... | Add a backend IP |
12,373 | public OvhCacheRule serviceName_domains_domain_cacheRules_POST ( String serviceName , String domain , OvhCacheRuleCacheTypeEnum cacheType , String fileMatch , OvhCacheRuleFileTypeEnum fileType , Long ttl ) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules" ; StringBuilder sb ... | Add a cache rule to a domain |
12,374 | public ArrayList < OvhStatsDataType > serviceName_domains_domain_statistics_GET ( String serviceName , String domain , OvhStatsPeriodEnum period , OvhStatsTypeEnum type , OvhStatsValueEnum value ) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/statistics" ; StringBuilder sb = path ( ... | Return stats about a domain |
12,375 | public ArrayList < OvhStatsDataType > serviceName_quota_GET ( String serviceName , OvhStatsPeriodEnum period ) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/quota" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "period" , period ) ; String resp = exec ( qPath , "GET" , sb . toStrin... | Return quota history |
12,376 | public ArrayList < OvhOfferEnum > availableOffer_GET ( String domain ) throws IOException { String qPath = "/hosting/web/availableOffer" ; StringBuilder sb = path ( qPath ) ; query ( sb , "domain" , domain ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t2 ) ; } | Get available offer |
12,377 | public OvhTask serviceName_ovhConfig_id_changeConfiguration_POST ( String serviceName , Long id , OvhContainerEnum container , OvhEngineNameEnum engineName , OvhAvailableEngineVersionEnum engineVersion , OvhEnvironmentEnum environment , OvhHttpFirewallEnum httpFirewall ) throws IOException { String qPath = "/hosting/we... | Apply a new configuration on this path |
12,378 | public ArrayList < Long > serviceName_ovhConfig_GET ( String serviceName , Boolean historical , String path ) throws IOException { String qPath = "/hosting/web/{serviceName}/ovhConfig" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "historical" , historical ) ; query ( sb , "path" , path ) ; String re... | Configuration used on your hosting |
12,379 | public ArrayList < OvhTypeEnum > serviceName_runtimeAvailableTypes_GET ( String serviceName , String language ) throws IOException { String qPath = "/hosting/web/{serviceName}/runtimeAvailableTypes" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "language" , language ) ; String resp = exec ( qPath , "... | List available runtime configurations available backend types |
12,380 | public ArrayList < Date > serviceName_boostHistory_GET ( String serviceName , Date date ) throws IOException { String qPath = "/hosting/web/{serviceName}/boostHistory" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "date" , date ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; ret... | History of your hosting boost |
12,381 | public String serviceName_userLogsToken_GET ( String serviceName , String attachedDomain , Boolean remoteCheck , Long ttl ) throws IOException { String qPath = "/hosting/web/{serviceName}/userLogsToken" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "attachedDomain" , attachedDomain ) ; query ( sb , "... | Get a temporary token to access the your web hosting logs interface |
12,382 | public ArrayList < Long > serviceName_runtime_GET ( String serviceName , String name , OvhTypeEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}/runtime" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "name" , name ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath ... | List of runtime configurations to your hosting |
12,383 | public OvhTask serviceName_runtime_POST ( String serviceName , String appBootstrap , OvhEnvEnum appEnv , String [ ] attachedDomains , Boolean isDefault , String name , String publicDir , OvhTypeEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}/runtime" ; StringBuilder sb = path ( qPath , servi... | Request the creation of a new runtime configuration |
12,384 | public ArrayList < OvhChartSerie < OvhChartTimestampValue > > serviceName_statistics_GET ( String serviceName , OvhStatisticsPeriodEnum period , OvhStatisticsTypeEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}/statistics" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "peri... | Get statistics about this web hosting |
12,385 | public ArrayList < String > serviceName_freedom_GET ( String serviceName , net . minidev . ovh . api . hosting . web . freedom . OvhStatusEnum status ) throws IOException { String qPath = "/hosting/web/{serviceName}/freedom" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "status" , status ) ; String r... | Freedom linked to this hosting account |
12,386 | public OvhTask serviceName_request_POST ( String serviceName , OvhRequestActionEnum action ) throws IOException { String qPath = "/hosting/web/{serviceName}/request" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "action" , action ... | Request specific operation for your hosting |
12,387 | public OvhAvailableVersionStruct serviceName_databaseAvailableVersion_GET ( String serviceName , OvhDatabaseTypeEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}/databaseAvailableVersion" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "type" , type ) ; String resp = exec ( qP... | List available database version following a type |
12,388 | public ArrayList < Long > serviceName_localSeo_account_GET ( String serviceName , String email ) throws IOException { String qPath = "/hosting/web/{serviceName}/localSeo/account" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "email" , email ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) ,... | Local SEO accounts associated to the hosting |
12,389 | public String serviceName_ownLogs_id_userLogs_login_DELETE ( String serviceName , Long id , String login ) throws IOException { String qPath = "/hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}" ; StringBuilder sb = path ( qPath , serviceName , id , login ) ; String resp = exec ( qPath , "DELETE" , sb . toString... | Delete the userLogs |
12,390 | public String serviceName_ownLogs_id_userLogs_login_changePassword_POST ( String serviceName , Long id , String login , String password ) throws IOException { String qPath = "/hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}/changePassword" ; StringBuilder sb = path ( qPath , serviceName , id , login ) ; HashMap... | Request a password change |
12,391 | public OvhTask serviceName_restoreSnapshot_POST ( String serviceName , net . minidev . ovh . api . hosting . web . backup . OvhTypeEnum backup ) throws IOException { String qPath = "/hosting/web/{serviceName}/restoreSnapshot" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMa... | Restore this snapshot ALL CURRENT DATA WILL BE REPLACED BY YOUR SNAPSHOT |
12,392 | public ArrayList < String > serviceName_database_GET ( String serviceName , OvhModeEnum mode , String name , String server , OvhDatabaseTypeEnum type , String user ) throws IOException { String qPath = "/hosting/web/{serviceName}/database" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "mode" , mode )... | Databases linked to your hosting |
12,393 | public OvhTask serviceName_database_POST ( String serviceName , OvhDatabaseCapabilitiesTypeEnum capabilitie , String password , OvhExtraSqlQuotaEnum quota , OvhDatabaseTypeEnum type , String user , OvhVersionEnum version ) throws IOException { String qPath = "/hosting/web/{serviceName}/database" ; StringBuilder sb = pa... | Install new database |
12,394 | public OvhTask serviceName_database_name_request_POST ( String serviceName , String name , net . minidev . ovh . api . hosting . web . database . OvhRequestActionEnum action ) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/request" ; StringBuilder sb = path ( qPath , serviceName , name ... | Request specific operation for your database |
12,395 | public ArrayList < Long > serviceName_database_name_dump_GET ( String serviceName , String name , Date creationDate , Date deletionDate , OvhDateEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/dump" ; StringBuilder sb = path ( qPath , serviceName , name ) ; query ( sb , "crea... | Dump available for your databases |
12,396 | public OvhTask serviceName_database_name_dump_POST ( String serviceName , String name , OvhDateEnum date , Boolean sendEmail ) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/dump" ; StringBuilder sb = path ( qPath , serviceName , name ) ; HashMap < String , Object > o = new HashMap < St... | Request the dump from your database |
12,397 | public ArrayList < OvhChartSerie < OvhChartTimestampValue > > serviceName_database_name_statistics_GET ( String serviceName , String name , OvhStatisticsPeriodEnum period , net . minidev . ovh . api . hosting . web . database . OvhStatisticsTypeEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}... | Get statistics about this database |
12,398 | public ArrayList < OvhLanguageEnum > serviceName_cronAvailableLanguage_GET ( String serviceName ) throws IOException { String qPath = "/hosting/web/{serviceName}/cronAvailableLanguage" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ... | List available cron language |
12,399 | public ArrayList < OvhDatabaseTypeEnum > serviceName_databaseAvailableType_GET ( String serviceName ) throws IOException { String qPath = "/hosting/web/{serviceName}/databaseAvailableType" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return conver... | List available database type |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.