idx int64 0 41.2k | question stringlengths 74 4.21k | target stringlengths 5 888 |
|---|---|---|
28,400 | public Observable < ExtendedDatabaseBlobAuditingPolicyInner > getAsync ( String resourceGroupName , String serverName , String databaseName ) { return getWithServiceResponseAsync ( resourceGroupName , serverName , databaseName ) . map ( new Func1 < ServiceResponse < ExtendedDatabaseBlobAuditingPolicyInner > , ExtendedDatabaseBlobAuditingPolicyInner > ( ) { public ExtendedDatabaseBlobAuditingPolicyInner call ( ServiceResponse < ExtendedDatabaseBlobAuditingPolicyInner > response ) { return response . body ( ) ; } } ) ; } | Gets an extended database s blob auditing policy . |
28,401 | public Observable < ExtendedDatabaseBlobAuditingPolicyInner > createOrUpdateAsync ( String resourceGroupName , String serverName , String databaseName , ExtendedDatabaseBlobAuditingPolicyInner parameters ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , parameters ) . map ( new Func1 < ServiceResponse < ExtendedDatabaseBlobAuditingPolicyInner > , ExtendedDatabaseBlobAuditingPolicyInner > ( ) { public ExtendedDatabaseBlobAuditingPolicyInner call ( ServiceResponse < ExtendedDatabaseBlobAuditingPolicyInner > response ) { return response . body ( ) ; } } ) ; } | Creates or updates an extended database s blob auditing policy . |
28,402 | public Observable < Page < WorkloadProtectableItemResourceInner > > listNextAsync ( final String nextPageLink ) { return listNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < WorkloadProtectableItemResourceInner > > , Page < WorkloadProtectableItemResourceInner > > ( ) { public Page < WorkloadProtectableItemResourceInner > call ( ServiceResponse < Page < WorkloadProtectableItemResourceInner > > response ) { return response . body ( ) ; } } ) ; } | Based on the query filter and the pagination parameters this operation provides a pageable list of objects within the subscription that can be protected . |
28,403 | public Observable < Page < PolicyAssignmentInner > > listForResourceNextAsync ( final String nextPageLink ) { return listForResourceNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < PolicyAssignmentInner > > , Page < PolicyAssignmentInner > > ( ) { public Page < PolicyAssignmentInner > call ( ServiceResponse < Page < PolicyAssignmentInner > > response ) { return response . body ( ) ; } } ) ; } | Gets policy assignments for a resource . |
28,404 | public static EntityGetOperation < JobInfo > get ( String jobId ) { return new DefaultGetOperation < JobInfo > ( ENTITY_SET , jobId , JobInfo . class ) ; } | Create an operation object that will get the state of the given job . |
28,405 | public List < RestorePointInner > listByDatabase ( String resourceGroupName , String serverName , String databaseName ) { return listByDatabaseWithServiceResponseAsync ( resourceGroupName , serverName , databaseName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Gets a list of database restore points . |
28,406 | public Observable < ServerAzureADAdministratorInner > getAsync ( String resourceGroupName , String serverName ) { return getWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < ServerAzureADAdministratorInner > , ServerAzureADAdministratorInner > ( ) { public ServerAzureADAdministratorInner call ( ServiceResponse < ServerAzureADAdministratorInner > response ) { return response . body ( ) ; } } ) ; } | Returns an server Administrator . |
28,407 | public Observable < List < ServerAzureADAdministratorInner > > listByServerAsync ( String resourceGroupName , String serverName ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < List < ServerAzureADAdministratorInner > > , List < ServerAzureADAdministratorInner > > ( ) { public List < ServerAzureADAdministratorInner > call ( ServiceResponse < List < ServerAzureADAdministratorInner > > response ) { return response . body ( ) ; } } ) ; } | Returns a list of server Administrators . |
28,408 | public Observable < AppServicePlanInner > getByResourceGroupAsync ( String resourceGroupName , String name ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , name ) . map ( new Func1 < ServiceResponse < AppServicePlanInner > , AppServicePlanInner > ( ) { public AppServicePlanInner call ( ServiceResponse < AppServicePlanInner > response ) { return response . body ( ) ; } } ) ; } | Get an App Service plan . Get an App Service plan . |
28,409 | public Attributes withNotBefore ( DateTime notBefore ) { if ( notBefore == null ) { this . notBefore = null ; } else { this . notBefore = notBefore . toDateTime ( DateTimeZone . UTC ) . getMillis ( ) / 1000 ; } return this ; } | Set the notBefore value . |
28,410 | public Attributes withExpires ( DateTime expires ) { if ( expires == null ) { this . expires = null ; } else { this . expires = expires . toDateTime ( DateTimeZone . UTC ) . getMillis ( ) / 1000 ; } return this ; } | Set the expires value . |
28,411 | public Observable < DatabaseAccountInner > getByResourceGroupAsync ( String resourceGroupName , String accountName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , accountName ) . map ( new Func1 < ServiceResponse < DatabaseAccountInner > , DatabaseAccountInner > ( ) { public DatabaseAccountInner call ( ServiceResponse < DatabaseAccountInner > response ) { return response . body ( ) ; } } ) ; } | Retrieves the properties of an existing Azure Cosmos DB database account . |
28,412 | public Observable < Page < DatabaseAccountInner > > listByResourceGroupAsync ( String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < List < DatabaseAccountInner > > , Page < DatabaseAccountInner > > ( ) { public Page < DatabaseAccountInner > call ( ServiceResponse < List < DatabaseAccountInner > > response ) { PageImpl < DatabaseAccountInner > page = new PageImpl < > ( ) ; page . setItems ( response . body ( ) ) ; return page ; } } ) ; } | Lists all the Azure Cosmos DB database accounts available under the given resource group . |
28,413 | public Observable < DatabaseAccountListKeysResultInner > listKeysAsync ( String resourceGroupName , String accountName ) { return listKeysWithServiceResponseAsync ( resourceGroupName , accountName ) . map ( new Func1 < ServiceResponse < DatabaseAccountListKeysResultInner > , DatabaseAccountListKeysResultInner > ( ) { public DatabaseAccountListKeysResultInner call ( ServiceResponse < DatabaseAccountListKeysResultInner > response ) { return response . body ( ) ; } } ) ; } | Lists the access keys for the specified Azure Cosmos DB database account . |
28,414 | public Observable < Page < DomainInner > > listByResourceGroupAsync ( String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < List < DomainInner > > , Page < DomainInner > > ( ) { public Page < DomainInner > call ( ServiceResponse < List < DomainInner > > response ) { PageImpl < DomainInner > page = new PageImpl < > ( ) ; page . setItems ( response . body ( ) ) ; return page ; } } ) ; } | List domains under a resource group . List all the domains under a resource group . |
28,415 | public List < ErrorDetail > getErrorDetails ( ) { List < ErrorDetail > result = new ArrayList < ErrorDetail > ( ) ; List < ErrorDetailType > errorDetailTypes = getContent ( ) . getErrorDetails ( ) ; if ( errorDetailTypes != null ) { for ( ErrorDetailType errorDetailType : errorDetailTypes ) { ErrorDetail errorDetail = new ErrorDetail ( errorDetailType . getCode ( ) , errorDetailType . getMessage ( ) ) ; result . add ( errorDetail ) ; } return result ; } return null ; } | Gets the error details . |
28,416 | public List < TaskHistoricalEvent > getHistoricalEvents ( ) { List < TaskHistoricalEvent > result = new ArrayList < TaskHistoricalEvent > ( ) ; List < TaskHistoricalEventType > historicalEventTypes = getContent ( ) . getHistoricalEventTypes ( ) ; if ( historicalEventTypes != null ) { for ( TaskHistoricalEventType taskHistoricalEventType : historicalEventTypes ) { String message = taskHistoricalEventType . getMessage ( ) ; if ( ( message != null ) && ( message . isEmpty ( ) ) ) { message = null ; } TaskHistoricalEvent taskHistoricalEvent = new TaskHistoricalEvent ( taskHistoricalEventType . getCode ( ) , message , taskHistoricalEventType . getTimeStamp ( ) ) ; result . add ( taskHistoricalEvent ) ; } } return result ; } | Gets the task historical events . |
28,417 | public Observable < VaultExtendedInfoResourceInner > getAsync ( String resourceGroupName , String vaultName ) { return getWithServiceResponseAsync ( resourceGroupName , vaultName ) . map ( new Func1 < ServiceResponse < VaultExtendedInfoResourceInner > , VaultExtendedInfoResourceInner > ( ) { public VaultExtendedInfoResourceInner call ( ServiceResponse < VaultExtendedInfoResourceInner > response ) { return response . body ( ) ; } } ) ; } | Get the vault extended info . |
28,418 | public CompletableFuture < Void > unregisterEventProcessor ( ) { TRACE_LOGGER . info ( this . hostContext . withHost ( "Stopping event processing" ) ) ; if ( this . unregistered == null ) { this . unregistered = this . partitionManager . stopPartitions ( ) ; if ( this . weOwnExecutor ) { this . unregistered = this . unregistered . thenRunAsync ( ( ) -> { this . executorService . shutdown ( ) ; try { this . executorService . awaitTermination ( 10 , TimeUnit . MINUTES ) ; } catch ( InterruptedException e ) { throw new CompletionException ( e ) ; } } , ForkJoinPool . commonPool ( ) ) ; } } return this . unregistered ; } | Stop processing events and shut down this host instance . |
28,419 | public Observable < List < ApplicationInsightsComponentProactiveDetectionConfigurationInner > > listAsync ( String resourceGroupName , String resourceName ) { return listWithServiceResponseAsync ( resourceGroupName , resourceName ) . map ( new Func1 < ServiceResponse < List < ApplicationInsightsComponentProactiveDetectionConfigurationInner > > , List < ApplicationInsightsComponentProactiveDetectionConfigurationInner > > ( ) { public List < ApplicationInsightsComponentProactiveDetectionConfigurationInner > call ( ServiceResponse < List < ApplicationInsightsComponentProactiveDetectionConfigurationInner > > response ) { return response . body ( ) ; } } ) ; } | Gets a list of ProactiveDetection configurations of an Application Insights component . |
28,420 | public ServiceFuture < ProtectionContainerResourceInner > getAsync ( String vaultName , String resourceGroupName , String fabricName , String containerName , String operationId , final ServiceCallback < ProtectionContainerResourceInner > serviceCallback ) { return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( vaultName , resourceGroupName , fabricName , containerName , operationId ) , serviceCallback ) ; } | Fetches the result of any operation on the container . |
28,421 | public OperationStatusResponseInner delete ( String resourceGroupName , String availabilitySetName ) { return deleteWithServiceResponseAsync ( resourceGroupName , availabilitySetName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Delete an availability set . |
28,422 | public Observable < Page < AvailabilitySetInner > > listByResourceGroupAsync ( String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < List < AvailabilitySetInner > > , Page < AvailabilitySetInner > > ( ) { public Page < AvailabilitySetInner > call ( ServiceResponse < List < AvailabilitySetInner > > response ) { PageImpl < AvailabilitySetInner > page = new PageImpl < > ( ) ; page . setItems ( response . body ( ) ) ; return page ; } } ) ; } | Lists all availability sets in a resource group . |
28,423 | public Observable < List < VirtualMachineSizeInner > > listAvailableSizesAsync ( String resourceGroupName , String availabilitySetName ) { return listAvailableSizesWithServiceResponseAsync ( resourceGroupName , availabilitySetName ) . map ( new Func1 < ServiceResponse < List < VirtualMachineSizeInner > > , List < VirtualMachineSizeInner > > ( ) { public List < VirtualMachineSizeInner > call ( ServiceResponse < List < VirtualMachineSizeInner > > response ) { return response . body ( ) ; } } ) ; } | Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set . |
28,424 | private ClientResponse getActionClientResponse ( EntityActionOperation entityActionOperation ) { entityActionOperation . setProxyData ( createProxyData ( ) ) ; Builder webResource = getResource ( entityActionOperation . getUri ( ) ) . queryParams ( entityActionOperation . getQueryParameters ( ) ) . accept ( entityActionOperation . getAcceptType ( ) ) . accept ( MediaType . APPLICATION_XML_TYPE ) . type ( MediaType . APPLICATION_XML_TYPE ) ; if ( entityActionOperation . getRequestContents ( ) != null ) { webResource = webResource . entity ( entityActionOperation . getRequestContents ( ) , entityActionOperation . getContentType ( ) ) ; } return webResource . method ( entityActionOperation . getVerb ( ) , ClientResponse . class ) ; } | Gets the action client response . |
28,425 | public Observable < OperationResultInfoBaseResourceInner > getAsync ( String vaultName , String resourceGroupName , String operationId ) { return getWithServiceResponseAsync ( vaultName , resourceGroupName , operationId ) . map ( new Func1 < ServiceResponse < OperationResultInfoBaseResourceInner > , OperationResultInfoBaseResourceInner > ( ) { public OperationResultInfoBaseResourceInner call ( ServiceResponse < OperationResultInfoBaseResourceInner > response ) { return response . body ( ) ; } } ) ; } | Gets the operation result of operation triggered by Export Jobs API . If the operation is successful then it also contains URL of a Blob and a SAS key to access the same . The blob contains exported jobs in JSON serialized format . |
28,426 | public static EcKey fromJsonWebKey ( JsonWebKey jwk ) throws NoSuchAlgorithmException , InvalidAlgorithmParameterException , InvalidKeySpecException , NoSuchProviderException { return fromJsonWebKey ( jwk , false , null ) ; } | Converts JSON web key to EC key pair does not include the private key . |
28,427 | public Observable < List < WorkItemConfigurationInner > > listAsync ( String resourceGroupName , String resourceName ) { return listWithServiceResponseAsync ( resourceGroupName , resourceName ) . map ( new Func1 < ServiceResponse < List < WorkItemConfigurationInner > > , List < WorkItemConfigurationInner > > ( ) { public List < WorkItemConfigurationInner > call ( ServiceResponse < List < WorkItemConfigurationInner > > response ) { return response . body ( ) ; } } ) ; } | Gets the list work item configurations that exist for the application . |
28,428 | public ServiceFuture < RecordSetInner > updateAsync ( String resourceGroupName , String privateZoneName , RecordType recordType , String relativeRecordSetName , RecordSetInner parameters , final ServiceCallback < RecordSetInner > serviceCallback ) { return ServiceFuture . fromResponse ( updateWithServiceResponseAsync ( resourceGroupName , privateZoneName , recordType , relativeRecordSetName , parameters ) , serviceCallback ) ; } | Updates a record set within a Private DNS zone . |
28,429 | public Observable < List < LogFileInner > > listByServerAsync ( String resourceGroupName , String serverName ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < List < LogFileInner > > , List < LogFileInner > > ( ) { public List < LogFileInner > call ( ServiceResponse < List < LogFileInner > > response ) { return response . body ( ) ; } } ) ; } | List all the log files in a given server . |
28,430 | public static DelegatedTokenCredentials fromFile ( File authFile , String redirectUrl ) throws IOException { return new DelegatedTokenCredentials ( ApplicationTokenCredentials . fromFile ( authFile ) , redirectUrl ) ; } | Creates a new instance of the DelegatedTokenCredentials from an auth file . |
28,431 | public String generateAuthenticationUrl ( ResponseMode responseMode , String state ) { return String . format ( "%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=%s&state=%s" , environment ( ) . activeDirectoryEndpoint ( ) , domain ( ) , clientId ( ) , this . redirectUrl , responseMode . value , state ) ; } | Generate the URL to authenticate through OAuth2 . |
28,432 | public AzureAdAccessToken acquireAccessToken ( ) throws Exception { AuthenticationResult authResult = getToken ( ) . get ( ) ; return new AzureAdAccessToken ( authResult . getAccessToken ( ) , authResult . getExpiresOnDate ( ) ) ; } | Acquires an access token |
28,433 | public void delete ( String resourceGroupName , String accountName , String streamingEndpointName ) { deleteWithServiceResponseAsync ( resourceGroupName , accountName , streamingEndpointName ) . toBlocking ( ) . last ( ) . body ( ) ; } | Delete StreamingEndpoint . Deletes a StreamingEndpoint . |
28,434 | public Observable < Page < IntegrationAccountMapInner > > listByIntegrationAccountsNextAsync ( final String nextPageLink ) { return listByIntegrationAccountsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < IntegrationAccountMapInner > > , Page < IntegrationAccountMapInner > > ( ) { public Page < IntegrationAccountMapInner > call ( ServiceResponse < Page < IntegrationAccountMapInner > > response ) { return response . body ( ) ; } } ) ; } | Gets a list of integration account maps . |
28,435 | public void delete ( String resourceGroupName , String spatialAnchorsAccountName ) { deleteWithServiceResponseAsync ( resourceGroupName , spatialAnchorsAccountName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Delete a Spatial Anchors Account . |
28,436 | public Observable < List < ServerCommunicationLinkInner > > listByServerAsync ( String resourceGroupName , String serverName ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < List < ServerCommunicationLinkInner > > , List < ServerCommunicationLinkInner > > ( ) { public List < ServerCommunicationLinkInner > call ( ServiceResponse < List < ServerCommunicationLinkInner > > response ) { return response . body ( ) ; } } ) ; } | Gets a list of server communication links . |
28,437 | public void delete ( String resourceGroupName , String resourceName , String certificateName , String ifMatch ) { deleteWithServiceResponseAsync ( resourceGroupName , resourceName , certificateName , ifMatch ) . toBlocking ( ) . single ( ) . body ( ) ; } | Delete an X509 certificate . Deletes an existing X509 certificate or does nothing if it does not exist . |
28,438 | public Observable < CheckNameAvailabilityResponseInner > checkNameAvailabilityAsync ( String name ) { return checkNameAvailabilityWithServiceResponseAsync ( name ) . map ( new Func1 < ServiceResponse < CheckNameAvailabilityResponseInner > , CheckNameAvailabilityResponseInner > ( ) { public CheckNameAvailabilityResponseInner call ( ServiceResponse < CheckNameAvailabilityResponseInner > response ) { return response . body ( ) ; } } ) ; } | Determines whether a resource can be created with the specified name . |
28,439 | public Observable < ServerInner > createOrUpdateAsync ( String resourceGroupName , String serverName , ServerInner parameters ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , parameters ) . map ( new Func1 < ServiceResponse < ServerInner > , ServerInner > ( ) { public ServerInner call ( ServiceResponse < ServerInner > response ) { return response . body ( ) ; } } ) ; } | Creates or updates a new server . |
28,440 | public Observable < Page < TopicInner > > listByResourceGroupAsync ( String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < List < TopicInner > > , Page < TopicInner > > ( ) { public Page < TopicInner > call ( ServiceResponse < List < TopicInner > > response ) { PageImpl < TopicInner > page = new PageImpl < > ( ) ; page . setItems ( response . body ( ) ) ; return page ; } } ) ; } | List topics under a resource group . List all the topics under a resource group . |
28,441 | public ClusterInner update ( String resourceGroupName , String clusterName ) { return updateWithServiceResponseAsync ( resourceGroupName , clusterName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Patch HDInsight cluster with the specified parameters . |
28,442 | public HttpRequest withBody ( String content ) { final byte [ ] bodyBytes = content . getBytes ( StandardCharsets . UTF_8 ) ; return withBody ( bodyBytes ) ; } | Set the request content . |
28,443 | public HttpRequest withBody ( byte [ ] content ) { headers . set ( "Content-Length" , String . valueOf ( content . length ) ) ; return withBody ( Flux . defer ( ( ) -> Flux . just ( Unpooled . wrappedBuffer ( content ) ) ) ) ; } | Set the request content . The Content - Length header will be set based on the given content s length |
28,444 | public HttpRequest buffer ( ) { final HttpHeaders bufferedHeaders = new HttpHeaders ( headers ) ; return new HttpRequest ( httpMethod , url , bufferedHeaders , body ) ; } | Creates a clone of the request . |
28,445 | public Observable < ServiceResponse < OrchestratorVersionProfileListResultInner > > listOrchestratorsWithServiceResponseAsync ( String location ) { if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( location == null ) { throw new IllegalArgumentException ( "Parameter location is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } final String resourceType = null ; return service . listOrchestrators ( this . client . subscriptionId ( ) , location , this . client . apiVersion ( ) , resourceType , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < OrchestratorVersionProfileListResultInner > > > ( ) { public Observable < ServiceResponse < OrchestratorVersionProfileListResultInner > > call ( Response < ResponseBody > response ) { try { ServiceResponse < OrchestratorVersionProfileListResultInner > clientResponse = listOrchestratorsDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; } | Gets a list of supported orchestrators in the specified subscription . Gets a list of supported orchestrators in the specified subscription . The operation returns properties of each orchestrator including verison and available upgrades . |
28,446 | public void delete ( String resourceGroupName , String jobName , String functionName ) { deleteWithServiceResponseAsync ( resourceGroupName , jobName , functionName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Deletes a function from the streaming job . |
28,447 | public Observable < List < PartitionMetricInner > > listMetricsAsync ( String resourceGroupName , String accountName , String databaseRid , String collectionRid , String filter ) { return listMetricsWithServiceResponseAsync ( resourceGroupName , accountName , databaseRid , collectionRid , filter ) . map ( new Func1 < ServiceResponse < List < PartitionMetricInner > > , List < PartitionMetricInner > > ( ) { public List < PartitionMetricInner > call ( ServiceResponse < List < PartitionMetricInner > > response ) { return response . body ( ) ; } } ) ; } | Retrieves the metrics determined by the given filter for the given collection split by partition . |
28,448 | public void delete ( String resourceGroupName , String cacheName , String ruleName ) { deleteWithServiceResponseAsync ( resourceGroupName , cacheName , ruleName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Deletes a single firewall rule in a specified redis cache . |
28,449 | public Observable < List < ApplicationInsightsComponentExportConfigurationInner > > listAsync ( String resourceGroupName , String resourceName ) { return listWithServiceResponseAsync ( resourceGroupName , resourceName ) . map ( new Func1 < ServiceResponse < List < ApplicationInsightsComponentExportConfigurationInner > > , List < ApplicationInsightsComponentExportConfigurationInner > > ( ) { public List < ApplicationInsightsComponentExportConfigurationInner > call ( ServiceResponse < List < ApplicationInsightsComponentExportConfigurationInner > > response ) { return response . body ( ) ; } } ) ; } | Gets a list of Continuous Export configuration of an Application Insights component . |
28,450 | public Observable < Page < DscNodeInner > > listByAutomationAccountNextAsync ( final String nextPageLink ) { return listByAutomationAccountNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < DscNodeInner > > , Page < DscNodeInner > > ( ) { public Page < DscNodeInner > call ( ServiceResponse < Page < DscNodeInner > > response ) { return response . body ( ) ; } } ) ; } | Retrieve a list of dsc nodes . |
28,451 | public Mono < HttpResponse > process ( HttpPipelineCallContext context , HttpPipelineNextPolicy next ) { final Flux < ByteBuf > contents = context . httpRequest ( ) . body ( ) == null ? Flux . just ( getEmptyBuffer ( ) ) : context . httpRequest ( ) . body ( ) ; return contents . defaultIfEmpty ( getEmptyBuffer ( ) ) . collect ( ( ) -> { try { return MessageDigest . getInstance ( "SHA-256" ) ; } catch ( NoSuchAlgorithmException e ) { throw Exceptions . propagate ( e ) ; } } , ( messageDigest , byteBuffer ) -> { if ( messageDigest != null ) { messageDigest . update ( byteBuffer . nioBuffer ( ) ) ; } } ) . flatMap ( messageDigest -> { final HttpHeaders headers = context . httpRequest ( ) . headers ( ) ; final String contentHash = Base64 . getEncoder ( ) . encodeToString ( messageDigest . digest ( ) ) ; headers . set ( HOST_HEADER , context . httpRequest ( ) . url ( ) . getHost ( ) ) ; headers . set ( CONTENT_HASH_HEADER , contentHash ) ; if ( headers . value ( DATE_HEADER ) == null ) { String utcNow = OffsetDateTime . now ( ZoneOffset . UTC ) . format ( DateTimeFormatter . RFC_1123_DATE_TIME ) ; headers . set ( DATE_HEADER , utcNow ) ; } return next . process ( ) ; } ) ; } | Adds the required headers to authenticate a request to Azure Application Configuration service . |
28,452 | public boolean existsJobSchedule ( String jobScheduleId , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobScheduleExistsOptions options = new JobScheduleExistsOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; return this . parentBatchClient . protocolLayer ( ) . jobSchedules ( ) . exists ( jobScheduleId , options ) ; } | Checks whether the specified job schedule exists . |
28,453 | public void deleteJobSchedule ( String jobScheduleId , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobScheduleDeleteOptions options = new JobScheduleDeleteOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; this . parentBatchClient . protocolLayer ( ) . jobSchedules ( ) . delete ( jobScheduleId , options ) ; } | Deletes the specified job schedule . |
28,454 | public void disableJobSchedule ( String jobScheduleId , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobScheduleDisableOptions options = new JobScheduleDisableOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; this . parentBatchClient . protocolLayer ( ) . jobSchedules ( ) . disable ( jobScheduleId , options ) ; } | Disables the specified job schedule . Disabled schedules do not create new jobs but may be re - enabled later . |
28,455 | public void terminateJobSchedule ( String jobScheduleId , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobScheduleTerminateOptions options = new JobScheduleTerminateOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; this . parentBatchClient . protocolLayer ( ) . jobSchedules ( ) . terminate ( jobScheduleId , options ) ; } | Terminates the specified job schedule . |
28,456 | public Observable < ServerBlobAuditingPolicyInner > getAsync ( String resourceGroupName , String serverName ) { return getWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < ServerBlobAuditingPolicyInner > , ServerBlobAuditingPolicyInner > ( ) { public ServerBlobAuditingPolicyInner call ( ServiceResponse < ServerBlobAuditingPolicyInner > response ) { return response . body ( ) ; } } ) ; } | Gets a server s blob auditing policy . |
28,457 | public void delete ( String resourceGroupName , String routeTableName , String routeName ) { deleteWithServiceResponseAsync ( resourceGroupName , routeTableName , routeName ) . toBlocking ( ) . last ( ) . body ( ) ; } | Deletes the specified route from a route table . |
28,458 | public DefaultListOperation < T > set ( String parameterName , String parameterValue ) { queryParameters . add ( parameterName , parameterValue ) ; return this ; } | Add an arbitrary query parameter |
28,459 | public void delete ( String resourceGroupName , String certificateOrderName ) { deleteWithServiceResponseAsync ( resourceGroupName , certificateOrderName ) . toBlocking ( ) . single ( ) . body ( ) ; } | Delete an existing certificate order . Delete an existing certificate order . |
28,460 | public Observable < DatabaseTableAuditingPolicyInner > getAsync ( String resourceGroupName , String serverName , String databaseName ) { return getWithServiceResponseAsync ( resourceGroupName , serverName , databaseName ) . map ( new Func1 < ServiceResponse < DatabaseTableAuditingPolicyInner > , DatabaseTableAuditingPolicyInner > ( ) { public DatabaseTableAuditingPolicyInner call ( ServiceResponse < DatabaseTableAuditingPolicyInner > response ) { return response . body ( ) ; } } ) ; } | Gets a database s table auditing policy . Table auditing is deprecated use blob auditing instead . |
28,461 | public Observable < DatabaseTableAuditingPolicyInner > createOrUpdateAsync ( String resourceGroupName , String serverName , String databaseName , DatabaseTableAuditingPolicyInner parameters ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , parameters ) . map ( new Func1 < ServiceResponse < DatabaseTableAuditingPolicyInner > , DatabaseTableAuditingPolicyInner > ( ) { public DatabaseTableAuditingPolicyInner call ( ServiceResponse < DatabaseTableAuditingPolicyInner > response ) { return response . body ( ) ; } } ) ; } | Creates or updates a database s table auditing policy . Table auditing is deprecated use blob auditing instead . |
28,462 | public Observable < DatabaseTableAuditingPolicyListResultInner > listByDatabaseAsync ( String resourceGroupName , String serverName , String databaseName ) { return listByDatabaseWithServiceResponseAsync ( resourceGroupName , serverName , databaseName ) . map ( new Func1 < ServiceResponse < DatabaseTableAuditingPolicyListResultInner > , DatabaseTableAuditingPolicyListResultInner > ( ) { public DatabaseTableAuditingPolicyListResultInner call ( ServiceResponse < DatabaseTableAuditingPolicyListResultInner > response ) { return response . body ( ) ; } } ) ; } | Lists a database s table auditing policies . Table auditing is deprecated use blob auditing instead . |
28,463 | public Observable < Object > deleteAsync ( String resourceGroupName , String resourceName , String annotationId ) { return deleteWithServiceResponseAsync ( resourceGroupName , resourceName , annotationId ) . map ( new Func1 < ServiceResponse < Object > , Object > ( ) { public Object call ( ServiceResponse < Object > response ) { return response . body ( ) ; } } ) ; } | Delete an Annotation of an Application Insights component . |
28,464 | public JobStatistics getAllJobsLifetimeStatistics ( Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobGetAllLifetimeStatisticsOptions options = new JobGetAllLifetimeStatisticsOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; return this . parentBatchClient . protocolLayer ( ) . jobs ( ) . getAllLifetimeStatistics ( options ) ; } | Gets lifetime summary statistics for all of the jobs in the current account . |
28,465 | public void deleteJob ( String jobId , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobDeleteOptions options = new JobDeleteOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; this . parentBatchClient . protocolLayer ( ) . jobs ( ) . delete ( jobId , options ) ; } | Deletes the specified job . |
28,466 | public void enableJob ( String jobId , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobEnableOptions options = new JobEnableOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; this . parentBatchClient . protocolLayer ( ) . jobs ( ) . enable ( jobId , options ) ; } | Enables the specified job allowing new tasks to run . |
28,467 | public void updateJob ( String jobId , PoolInformation poolInfo , Integer priority , JobConstraints constraints , OnAllTasksComplete onAllTasksComplete , List < MetadataItem > metadata , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobUpdateOptions options = new JobUpdateOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; JobUpdateParameter param = new JobUpdateParameter ( ) . withPriority ( priority ) . withPoolInfo ( poolInfo ) . withConstraints ( constraints ) . withOnAllTasksComplete ( onAllTasksComplete ) . withMetadata ( metadata ) ; this . parentBatchClient . protocolLayer ( ) . jobs ( ) . update ( jobId , param , options ) ; } | Updates the specified job . This method performs a full replace of all updatable properties of the job . For example if the constraints parameter is null then the Batch service removes the job s existing constraints and replaces them with the default constraints . |
28,468 | public Observable < ServerConnectionPolicyInner > getAsync ( String resourceGroupName , String serverName ) { return getWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < ServerConnectionPolicyInner > , ServerConnectionPolicyInner > ( ) { public ServerConnectionPolicyInner call ( ServiceResponse < ServerConnectionPolicyInner > response ) { return response . body ( ) ; } } ) ; } | Gets the server s secure connection policy . |
28,469 | public OperationDescription buildDescription ( ) { if ( this . isDone ( ) ) { return null ; } return new OperationDescription ( this . pollStrategy . methodParser ( ) . fullyQualifiedMethodName ( ) , this . pollStrategy . strategyData ( ) , this . originalHttpRequest ) ; } | Builds an object that can be used to resume the polling of the operation . |
28,470 | public void setLockDuration ( Duration lockDuration ) { this . lockDuration = lockDuration ; if ( this . lockDuration . compareTo ( ManagementClientConstants . MAX_DURATION ) > 0 ) { this . lockDuration = ManagementClientConstants . MAX_DURATION ; } } | Sets The amount of time that the message is locked by a given receiver so that no other receiver receives the same message . |
28,471 | public static RsaKey fromJsonWebKey ( JsonWebKey jwk , boolean includePrivateParameters , Provider provider ) { if ( jwk . kid ( ) != null ) { return new RsaKey ( jwk . kid ( ) , jwk . toRSA ( includePrivateParameters , provider ) ) ; } else { throw new IllegalArgumentException ( "Json Web Key must have a kid" ) ; } } | Converts JSON web key to RsaKey and include the private key if set to true . |
28,472 | public Observable < CheckNameAvailabilityResultInner > checkNameAvailabilityAsync ( String name ) { return checkNameAvailabilityWithServiceResponseAsync ( name ) . map ( new Func1 < ServiceResponse < CheckNameAvailabilityResultInner > , CheckNameAvailabilityResultInner > ( ) { public CheckNameAvailabilityResultInner call ( ServiceResponse < CheckNameAvailabilityResultInner > response ) { return response . body ( ) ; } } ) ; } | Checks that the storage account name is valid and is not already in use . |
28,473 | public Observable < Page < StorageAccountInner > > listByResourceGroupAsync ( String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < List < StorageAccountInner > > , Page < StorageAccountInner > > ( ) { public Page < StorageAccountInner > call ( ServiceResponse < List < StorageAccountInner > > response ) { PageImpl < StorageAccountInner > page = new PageImpl < > ( ) ; page . setItems ( response . body ( ) ) ; return page ; } } ) ; } | Lists all the storage accounts available under the given resource group . Note that storage keys are not returned ; use the ListKeys operation for this . |
28,474 | private Mono < String > getTokenFromUri ( String uri ) { URL url = null ; try { url = new URL ( uri ) ; } catch ( MalformedURLException e ) { return Mono . error ( e ) ; } String host = String . format ( "%s://%s%s/" , url . getProtocol ( ) , url . getHost ( ) , url . getPort ( ) > 0 ? ":" + url . getPort ( ) : "" ) ; String resource = environment ( ) . managementEndpoint ( ) ; for ( Map . Entry < String , String > endpoint : environment ( ) . endpoints ( ) . entrySet ( ) ) { if ( host . contains ( endpoint . getValue ( ) ) ) { if ( endpoint . getKey ( ) . equals ( Endpoint . KEYVAULT . identifier ( ) ) ) { resource = String . format ( "https://%s/" , endpoint . getValue ( ) . replaceAll ( "^\\.*" , "" ) ) ; break ; } else if ( endpoint . getKey ( ) . equals ( Endpoint . GRAPH . identifier ( ) ) ) { resource = environment ( ) . graphEndpoint ( ) ; break ; } else if ( endpoint . getKey ( ) . equals ( Endpoint . LOG_ANALYTICS . identifier ( ) ) ) { resource = environment ( ) . logAnalyticsEndpoint ( ) ; break ; } else if ( endpoint . getKey ( ) . equals ( Endpoint . APPLICATION_INSIGHTS . identifier ( ) ) ) { resource = environment ( ) . applicationInsightsEndpoint ( ) ; break ; } else if ( endpoint . getKey ( ) . equals ( Endpoint . DATA_LAKE_STORE . identifier ( ) ) || endpoint . getKey ( ) . equals ( Endpoint . DATA_LAKE_ANALYTICS . identifier ( ) ) ) { resource = environment ( ) . dataLakeEndpointResourceId ( ) ; break ; } } } return getToken ( resource ) ; } | Gets the token from the given endpoint . |
28,475 | public Observable < AlertInner > getAsync ( String deviceName , String name , String resourceGroupName ) { return getWithServiceResponseAsync ( deviceName , name , resourceGroupName ) . map ( new Func1 < ServiceResponse < AlertInner > , AlertInner > ( ) { public AlertInner call ( ServiceResponse < AlertInner > response ) { return response . body ( ) ; } } ) ; } | Gets an alert by name . |
28,476 | public static Creator create ( String id , ContentKeyType contentKeyType , String encryptedContentKey ) { return new Creator ( id , contentKeyType , encryptedContentKey ) ; } | Creates an operation to create a new content key . |
28,477 | public static EntityGetOperation < ContentKeyInfo > get ( String contentKeyId ) { return new DefaultGetOperation < ContentKeyInfo > ( ENTITY_SET , contentKeyId , ContentKeyInfo . class ) ; } | Create an operation that will retrieve the given content key . |
28,478 | public static DefaultListOperation < ContentKeyInfo > list ( LinkInfo < ContentKeyInfo > link ) { return new DefaultListOperation < ContentKeyInfo > ( link . getHref ( ) , new GenericType < ListResult < ContentKeyInfo > > ( ) { } ) ; } | Create an operation that will list all the content keys at the given link . |
28,479 | public static EntityTypeActionOperation < String > rebind ( String contentKeyId , String x509Certificate ) { return new RebindContentKeyActionOperation ( contentKeyId , x509Certificate ) ; } | Rebind content key with specified content key and X509 Certificate . |
28,480 | public void delete ( String resourceGroupName , String serviceEndpointPolicyName , String serviceEndpointPolicyDefinitionName ) { deleteWithServiceResponseAsync ( resourceGroupName , serviceEndpointPolicyName , serviceEndpointPolicyDefinitionName ) . toBlocking ( ) . last ( ) . body ( ) ; } | Deletes the specified ServiceEndpoint policy definitions . |
28,481 | public Observable < Page < JobResourceInner > > listNextAsync ( final String nextPageLink ) { return listNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < JobResourceInner > > , Page < JobResourceInner > > ( ) { public Page < JobResourceInner > call ( ServiceResponse < Page < JobResourceInner > > response ) { return response . body ( ) ; } } ) ; } | Provides a pageable list of jobs . |
28,482 | static Mono < Object > decode ( HttpResponse httpResponse , SerializerAdapter serializer , HttpResponseDecodeData decodeData ) { ensureRequestSet ( httpResponse ) ; return Mono . defer ( ( ) -> { if ( isErrorStatus ( httpResponse , decodeData ) ) { return httpResponse . bodyAsString ( ) . flatMap ( bodyString -> { try { final Object decodedErrorEntity = deserializeBody ( bodyString , decodeData . getUnexpectedException ( httpResponse . statusCode ( ) ) . exceptionBodyType ( ) , null , serializer , SerializerEncoding . fromHeaders ( httpResponse . headers ( ) ) ) ; return decodedErrorEntity == null ? Mono . empty ( ) : Mono . just ( decodedErrorEntity ) ; } catch ( IOException | MalformedValueException ignored ) { } return Mono . empty ( ) ; } ) ; } else if ( httpResponse . request ( ) . httpMethod ( ) == HttpMethod . HEAD ) { return Mono . empty ( ) ; } else if ( ! isReturnTypeDecodable ( decodeData ) ) { return Mono . empty ( ) ; } else { return httpResponse . bodyAsString ( ) . flatMap ( bodyString -> { try { final Object decodedSuccessEntity = deserializeBody ( bodyString , extractEntityTypeFromReturnType ( decodeData ) , decodeData . returnValueWireType ( ) , serializer , SerializerEncoding . fromHeaders ( httpResponse . headers ( ) ) ) ; return decodedSuccessEntity == null ? Mono . empty ( ) : Mono . just ( decodedSuccessEntity ) ; } catch ( MalformedValueException e ) { return Mono . error ( new HttpRequestException ( "HTTP response has a malformed body." , httpResponse , e ) ) ; } catch ( IOException e ) { return Mono . error ( new HttpRequestException ( "Deserialization Failed." , httpResponse , e ) ) ; } } ) ; } } ) ; } | Decodes body of a http response . |
28,483 | static boolean isErrorStatus ( HttpResponse httpResponse , HttpResponseDecodeData decodeData ) { final int [ ] expectedStatuses = decodeData . expectedStatusCodes ( ) ; if ( expectedStatuses != null ) { return ! contains ( expectedStatuses , httpResponse . statusCode ( ) ) ; } else { return httpResponse . statusCode ( ) / 100 != 2 ; } } | Checks the response status code is considered as error . |
28,484 | private static Object deserializeBody ( String value , Type resultType , Type wireType , SerializerAdapter serializer , SerializerEncoding encoding ) throws IOException { if ( wireType == null ) { return serializer . deserialize ( value , resultType , encoding ) ; } else if ( TypeUtil . isTypeOrSubTypeOf ( wireType , Page . class ) ) { return deserializePage ( value , resultType , wireType , serializer , encoding ) ; } else { final Type wireResponseType = constructWireResponseType ( resultType , wireType ) ; final Object wireResponse = serializer . deserialize ( value , wireResponseType , encoding ) ; return convertToResultType ( wireResponse , resultType , wireType ) ; } } | Deserialize the given string value representing content of a REST API response . |
28,485 | private static boolean isReturnTypeDecodable ( HttpResponseDecodeData decodeData ) { Type returnType = decodeData . returnType ( ) ; if ( returnType == null ) { return false ; } else { return ! FluxUtil . isFluxByteBuf ( returnType ) && ! ( TypeUtil . isTypeOrSubTypeOf ( returnType , Mono . class ) && TypeUtil . isTypeOrSubTypeOf ( TypeUtil . getTypeArgument ( returnType ) , Void . class ) ) && ! TypeUtil . isTypeOrSubTypeOf ( returnType , byte [ ] . class ) && ! TypeUtil . isTypeOrSubTypeOf ( returnType , Void . TYPE ) && ! TypeUtil . isTypeOrSubTypeOf ( returnType , Void . class ) ; } } | Checks the return type represents a decodable type . |
28,486 | private static boolean contains ( int [ ] values , int searchValue ) { Objects . requireNonNull ( values ) ; for ( int value : values ) { if ( searchValue == value ) { return true ; } } return false ; } | Checks an given value exists in an array . |
28,487 | private static HttpResponse ensureRequestSet ( HttpResponse httpResponse ) { Objects . requireNonNull ( httpResponse . request ( ) ) ; Objects . requireNonNull ( httpResponse . request ( ) . httpMethod ( ) ) ; return httpResponse ; } | Ensure that request property and method is set in the response . |
28,488 | public Observable < Page < IntegrationAccountAgreementInner > > listByIntegrationAccountsNextAsync ( final String nextPageLink ) { return listByIntegrationAccountsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < IntegrationAccountAgreementInner > > , Page < IntegrationAccountAgreementInner > > ( ) { public Page < IntegrationAccountAgreementInner > call ( ServiceResponse < Page < IntegrationAccountAgreementInner > > response ) { return response . body ( ) ; } } ) ; } | Gets a list of integration account agreements . |
28,489 | public Observable < Page < ExpressRouteGatewayInner > > listByResourceGroupAsync ( String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < List < ExpressRouteGatewayInner > > , Page < ExpressRouteGatewayInner > > ( ) { public Page < ExpressRouteGatewayInner > call ( ServiceResponse < List < ExpressRouteGatewayInner > > response ) { PageImpl1 < ExpressRouteGatewayInner > page = new PageImpl1 < > ( ) ; page . setItems ( response . body ( ) ) ; return page ; } } ) ; } | Lists ExpressRoute gateways in a given resource group . |
28,490 | public Observable < List < ElasticPoolInner > > listByServerAsync ( String resourceGroupName , String serverName ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < List < ElasticPoolInner > > , List < ElasticPoolInner > > ( ) { public List < ElasticPoolInner > call ( ServiceResponse < List < ElasticPoolInner > > response ) { return response . body ( ) ; } } ) ; } | Returns a list of elastic pools in a server . |
28,491 | public static boolean isFluxByteBuf ( Type entityType ) { if ( TypeUtil . isTypeOrSubTypeOf ( entityType , Flux . class ) ) { final Type innerType = TypeUtil . getTypeArguments ( entityType ) [ 0 ] ; if ( TypeUtil . isTypeOrSubTypeOf ( innerType , ByteBuf . class ) ) { return true ; } } return false ; } | Checks if a type is Flux< ; ByteBuf> ; . |
28,492 | public static Mono < byte [ ] > collectBytesInByteBufStream ( Flux < ByteBuf > stream , boolean autoReleaseEnabled ) { if ( autoReleaseEnabled ) { return Mono . using ( Unpooled :: compositeBuffer , cbb -> stream . collect ( ( ) -> cbb , ( cbb1 , buffer ) -> cbb1 . addComponent ( true , Unpooled . wrappedBuffer ( buffer ) . retain ( ) ) ) , ReferenceCountUtil :: release ) . filter ( ( CompositeByteBuf cbb ) -> cbb . isReadable ( ) ) . map ( FluxUtil :: byteBufToArray ) ; } else { return stream . collect ( Unpooled :: compositeBuffer , ( cbb1 , buffer ) -> cbb1 . addComponent ( true , Unpooled . wrappedBuffer ( buffer ) ) ) . filter ( ( CompositeByteBuf cbb ) -> cbb . isReadable ( ) ) . map ( FluxUtil :: byteBufToArray ) ; } } | Collects ByteBuf emitted by a Flux into a byte array . |
28,493 | public static Flux < ByteBuf > split ( final ByteBuf whole , final int chunkSize ) { return Flux . generate ( whole :: readerIndex , ( readFromIndex , synchronousSync ) -> { final int writerIndex = whole . writerIndex ( ) ; if ( readFromIndex >= writerIndex ) { synchronousSync . complete ( ) ; return writerIndex ; } else { int readSize = Math . min ( writerIndex - readFromIndex , chunkSize ) ; synchronousSync . next ( whole . slice ( readFromIndex , readSize ) . retain ( ) ) ; return readFromIndex + readSize ; } } ) ; } | Splits a ByteBuf into ByteBuf chunks . |
28,494 | public static byte [ ] byteBufToArray ( ByteBuf byteBuf ) { int length = byteBuf . readableBytes ( ) ; byte [ ] byteArray = new byte [ length ] ; byteBuf . getBytes ( byteBuf . readerIndex ( ) , byteArray ) ; return byteArray ; } | Gets the content of the provided ByteBuf as a byte array . This method will create a new byte array even if the ByteBuf can have optionally backing array . |
28,495 | public static Mono < ByteBuf > collectByteBufStream ( Flux < ByteBuf > stream , boolean autoReleaseEnabled ) { if ( autoReleaseEnabled ) { Mono < ByteBuf > mergedCbb = Mono . using ( ( ) -> { CompositeByteBuf initialCbb = Unpooled . compositeBuffer ( ) ; return initialCbb ; } , ( CompositeByteBuf initialCbb ) -> { Mono < CompositeByteBuf > reducedCbb = stream . reduce ( initialCbb , ( CompositeByteBuf currentCbb , ByteBuf nextBb ) -> { CompositeByteBuf updatedCbb = currentCbb . addComponent ( nextBb . retain ( ) ) ; return updatedCbb ; } ) ; return reducedCbb . doOnNext ( ( CompositeByteBuf cbb ) -> cbb . writerIndex ( cbb . capacity ( ) ) ) . filter ( ( CompositeByteBuf cbb ) -> cbb . isReadable ( ) ) ; } , ( CompositeByteBuf finalCbb ) -> finalCbb . release ( ) ) ; return mergedCbb ; } else { return stream . collect ( Unpooled :: compositeBuffer , ( cbb1 , buffer ) -> cbb1 . addComponent ( true , Unpooled . wrappedBuffer ( buffer ) ) ) . filter ( ( CompositeByteBuf cbb ) -> cbb . isReadable ( ) ) . map ( bb -> bb ) ; } } | Collects byte buffers emitted by a Flux into a ByteBuf . |
28,496 | public void terminate ( String jobId , String taskId , TaskTerminateOptions taskTerminateOptions ) { terminateWithServiceResponseAsync ( jobId , taskId , taskTerminateOptions ) . toBlocking ( ) . single ( ) . body ( ) ; } | Terminates the specified task . When the task has been terminated it moves to the completed state . For multi - instance tasks the terminate task operation applies synchronously to the primary task ; subtasks are then terminated asynchronously in the background . |
28,497 | public Observable < RoleAssignmentInner > getByIdAsync ( String roleAssignmentId ) { return getByIdWithServiceResponseAsync ( roleAssignmentId ) . map ( new Func1 < ServiceResponse < RoleAssignmentInner > , RoleAssignmentInner > ( ) { public RoleAssignmentInner call ( ServiceResponse < RoleAssignmentInner > response ) { return response . body ( ) ; } } ) ; } | Gets a role assignment by ID . |
28,498 | public Observable < BackupLongTermRetentionVaultInner > getAsync ( String resourceGroupName , String serverName ) { return getWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < BackupLongTermRetentionVaultInner > , BackupLongTermRetentionVaultInner > ( ) { public BackupLongTermRetentionVaultInner call ( ServiceResponse < BackupLongTermRetentionVaultInner > response ) { return response . body ( ) ; } } ) ; } | Gets a server backup long term retention vault . |
28,499 | public Observable < List < BackupLongTermRetentionVaultInner > > listByServerAsync ( String resourceGroupName , String serverName ) { return listByServerWithServiceResponseAsync ( resourceGroupName , serverName ) . map ( new Func1 < ServiceResponse < List < BackupLongTermRetentionVaultInner > > , List < BackupLongTermRetentionVaultInner > > ( ) { public List < BackupLongTermRetentionVaultInner > call ( ServiceResponse < List < BackupLongTermRetentionVaultInner > > response ) { return response . body ( ) ; } } ) ; } | Gets server backup long term retention vaults in a server . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.