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 > , ExtendedD...
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 ) . m...
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 ...
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 < PolicyAssignment...
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 ServerAzureADAd...
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 < ServerAzureADAdmini...
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 ( Servic...
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 DatabaseAccountI...
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 < DatabaseAccount...
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 > ( ) { p...
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 < Lis...
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 = ...
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 taskH...
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 VaultExtendedInfoRes...
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 . un...
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 < ApplicationInsightsComponentProactiveDetect...
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 ( getWithServiceResponseAs...
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 < AvailabilitySet...
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 < Virtu...
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 ( entityActio...
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 > , OperationResultInfo...
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 > > ( ) { publ...
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 (...
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 ...
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 , responseMo...
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 > > (...
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 < ServerCommunicationLinkIn...
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 CheckNameAvailabilityResponse...
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 cal...
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 < ...
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 (...
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 < S...
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 > ...
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 ( Servi...
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 ( ) ) . ...
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...
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 ) ...
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...
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 ( ) , additionalBeh...
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 ServerBlobAuditingPol...
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 > , DatabaseTableAuditingPo...
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...
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 < DatabaseTableAuditingPolicyL...
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 > re...
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 ( ) , addit...
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 ...
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 ...
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 JobU...
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...
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 ca...
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 < StorageAccountInne...
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 ( ) : "" ) ; ...
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...
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 < Jo...
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 ...
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 ( ...
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 , P...
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 . isType...
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 < IntegrationAccountAg...
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 < Exp...
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 < ElasticP...
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&lt ; ByteBuf&gt ; .
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 ( buffe...
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 ; } el...
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...
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 ) ...
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 BackupLon...
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 < BackupLongTermR...
Gets server backup long term retention vaults in a server .