code
stringlengths
73
34.1k
label
stringclasses
1 value
private static Object deserializeHeaders(HttpHeaders headers, SerializerAdapter serializer, HttpResponseDecodeData decodeData) throws IOException { final Type deserializedHeadersType = decodeData.headersType(); if (deserializedHeadersType == null) { return null; } else { ...
java
public Observable<AppServiceEnvironmentResourceInner> getByResourceGroupAsync(String resourceGroupName, String name) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<AppServiceEnvironmentResourceInner>, AppServiceEnvironmentResourceInner>() { ...
java
public PagedList<SiteInner> listWebApps(final String resourceGroupName, final String name, final String propertiesToInclude) { ServiceResponse<Page<SiteInner>> response = listWebAppsSinglePageAsync(resourceGroupName, name, propertiesToInclude).toBlocking().single(); return new PagedList<SiteInner>(respo...
java
public Observable<List<ServerUsageInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerUsageInner>>, List<ServerUsageInner>>() { @Override public List<S...
java
public static EntityGetOperation<ContentKeyAuthorizationPolicyInfo> get(String contentKeyAuthorizationPolicyId) { return new DefaultGetOperation<ContentKeyAuthorizationPolicyInfo>(ENTITY_SET, contentKeyAuthorizationPolicyId, ContentKeyAuthorizationPolicyInfo.class); }
java
public static EntityGetOperation<ContentKeyAuthorizationPolicyInfo> get( LinkInfo<ContentKeyAuthorizationPolicyInfo> link) { return new DefaultGetOperation<ContentKeyAuthorizationPolicyInfo>(link.getHref(), ContentKeyAuthorizationPolicyInfo.class); }
java
public static EntityLinkOperation linkOptions(String contentKeyAuthorizationPolicyId, String contentKeyAuthorizationPolicyOptionId) { String escapedContentKeyId = null; try { escapedContentKeyId = URLEncoder.encode(contentKeyAuthorizationPolicyOptionId, "UTF-8"); } catch ...
java
public static EntityUnlinkOperation unlinkOptions(String contentKeyAuthorizationPolicyId, String contentKeyAuthorizationPolicyOptionId) { return new EntityUnlinkOperation(ENTITY_SET, contentKeyAuthorizationPolicyId, "Options", contentKeyAuthorizationPolicyOptionId); }
java
public void beginDelete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) { beginDeleteWithServiceResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).toBlocking().single().body(); }
java
public Observable<List<ServiceObjectiveInner>> listByServerAsync(String resourceGroupName, String serverName) { return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServiceObjectiveInner>>, List<ServiceObjectiveInner>>() { @Override ...
java
public Observable<IotHubDescriptionInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<IotHubDescriptionInner>, IotHubDescriptionInner>() { @Override ...
java
public static void inheritClientBehaviorsAndSetPublicProperty(IInheritedBehaviors inheritingObject, Iterable<BatchClientBehavior> baseBehaviors) { // implement inheritance of behaviors List<BatchClientBehavior> customBehaviors = new ArrayList<>(); // if there were any behaviors, pre-populate th...
java
public ServiceFuture<RefreshIndex> refreshIndexMethodAsync(String listId, final ServiceCallback<RefreshIndex> serviceCallback) { return ServiceFuture.fromResponse(refreshIndexMethodWithServiceResponseAsync(listId), serviceCallback); }
java
public List<SubscriptionDescription> getSubscriptions(String topicName) throws ServiceBusException, InterruptedException { return Utils.completeFuture(this.asyncClient.getSubscriptionsAsync(topicName)); }
java
public QueueDescription updateQueue(QueueDescription queueDescription) throws ServiceBusException, InterruptedException { return Utils.completeFuture(this.asyncClient.updateQueueAsync(queueDescription)); }
java
public TopicDescription updateTopic(TopicDescription topicDescription) throws ServiceBusException, InterruptedException { return Utils.completeFuture(this.asyncClient.updateTopicAsync(topicDescription)); }
java
public SubscriptionDescription updateSubscription(SubscriptionDescription subscriptionDescription) throws ServiceBusException, InterruptedException { return Utils.completeFuture(this.asyncClient.updateSubscriptionAsync(subscriptionDescription)); }
java
public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException { // The connection string value can be obtained by going to your App Configuration instance in the Azure portal // and navigating to "Access Keys" page under the "Settings" section. String connectionStri...
java
public static Creator create(String accessPolicyId, String assetId, LocatorType locatorType) { return new Creator(accessPolicyId, assetId, locatorType); }
java
public static EntityGetOperation<LocatorInfo> get(String locatorId) { return new DefaultGetOperation<LocatorInfo>(ENTITY_SET, locatorId, LocatorInfo.class); }
java
public static DefaultListOperation<LocatorInfo> list( LinkInfo<LocatorInfo> link) { return new DefaultListOperation<LocatorInfo>(link.getHref(), new GenericType<ListResult<LocatorInfo>>() { }); }
java
public static Configuration configureWithAzureAdTokenProvider( URI apiServer, TokenProvider azureAdTokenProvider) { return configureWithAzureAdTokenProvider(Configuration.getInstance(), apiServer, azureAdTokenProvider); }
java
public static Configuration configureWithAzureAdTokenProvider( Configuration configuration, URI apiServer, TokenProvider azureAdTokenProvider) { configuration.setProperty(AZURE_AD_API_SERVER, apiServer.toString()); configuration.setProperty(AZURE_AD_TOKEN_PROVIDER, a...
java
public static AzureCliCredentials create() throws IOException { return create( Paths.get(System.getProperty("user.home"), ".azure", "azureProfile.json").toFile(), Paths.get(System.getProperty("user.home"), ".azure", "accessTokens.json").toFile()); }
java
public Observable<ExtendedServerBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ExtendedServerBlobAuditingPolicyInner>, ExtendedServerBlobAuditingPolicyInner>() { @Overrid...
java
@SuppressWarnings("unchecked") protected static <T extends ExpandableStringEnum<T>> T fromString(String name, Class<T> clazz) { if (name == null) { return null; } else if (valuesByName != null) { T value = (T) valuesByName.get(uniqueKey(clazz, name)); if (value !=...
java
@SuppressWarnings("unchecked") protected static <T extends ExpandableStringEnum<T>> Collection<T> values(Class<T> clazz) { // Make a copy of all values Collection<? extends ExpandableStringEnum<?>> values = new ArrayList<>(valuesByName.values()); Collection<T> list = new HashSet<T>(); ...
java
public static EntityCreateOperation<NotificationEndPointInfo> create( String name, EndPointType endPointType, String endPointAddress) { return new Creator(name, endPointType, endPointAddress); }
java
public static EntityGetOperation<NotificationEndPointInfo> get( String notificationEndPointId) { return new DefaultGetOperation<NotificationEndPointInfo>(ENTITY_SET, notificationEndPointId, NotificationEndPointInfo.class); }
java
public static EntityGetOperation<NotificationEndPointInfo> get( LinkInfo<NotificationEndPointInfo> link) { return new DefaultGetOperation<NotificationEndPointInfo>( link.getHref(), NotificationEndPointInfo.class); }
java
public Observable<List<ReplicationUsageInner>> listAsync(String resourceGroupName, String vaultName) { return listWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1<ServiceResponse<List<ReplicationUsageInner>>, List<ReplicationUsageInner>>() { @Override public List<Repl...
java
public void delete(String resourceGroupName, String labAccountName) { deleteWithServiceResponseAsync(resourceGroupName, labAccountName).toBlocking().last().body(); }
java
public JobType addJobNotificationSubscriptionType( JobNotificationSubscriptionType jobNotificationSubscription) { if (this.jobNotificationSubscriptionTypes == null) { this.jobNotificationSubscriptionTypes = new ArrayList<JobNotificationSubscriptionType>(); } this.jobNotif...
java
public static String formatSubscriptionPath(String topicPath, String subscriptionName) { return String.join(pathDelimiter, topicPath, subscriptionsSubPath, subscriptionName); }
java
public static String formatRulePath(String topicPath, String subscriptionName, String ruleName) { return String.join(pathDelimiter, topicPath, subscriptionsSubPath, subscriptionName, rulesSubPath, ruleName); }
java
public Response<ConfigurationSetting> addSetting(String key, String value) { return addSetting(new ConfigurationSetting().key(key).value(value)); }
java
public Response<ConfigurationSetting> setSetting(String key, String value) { return setSetting(new ConfigurationSetting().key(key).value(value)); }
java
public Response<ConfigurationSetting> updateSetting(String key, String value) { return updateSetting(new ConfigurationSetting().key(key).value(value)); }
java
public void delete(String resourceGroupName, String serverName, String jobAgentName, String credentialName) { deleteWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, credentialName).toBlocking().single().body(); }
java
public StorageRestoreParameters withStorageBundleBackup(byte[] storageBundleBackup) { if (storageBundleBackup == null) { this.storageBundleBackup = null; } else { this.storageBundleBackup = Base64Url.encode(storageBundleBackup); } return this; }
java
public <U extends ODataEntity<?>> LinkInfo<U> getLink(String rel) { for (Object child : entry.getEntryChildren()) { LinkType link = linkFromChild(child); if (link != null && link.getRel().equals(rel)) { return new LinkInfo<U>(link); } } return...
java
public <U extends ODataEntity<?>> LinkInfo<U> getRelationLink( String relationName) { return this.<U> getLink(Constants.ODATA_DATA_NS + "/related/" + relationName); }
java
public static boolean isODataEntityCollectionType(Class<?> type, Type genericType) { if (ListResult.class != type) { return false; } ParameterizedType pt = (ParameterizedType) genericType; if (pt.getActualTypeArguments().length != 1) { return false; ...
java
public void beginDelete(String resourceGroupName, String expressRouteGatewayName, String connectionName) { beginDeleteWithServiceResponseAsync(resourceGroupName, expressRouteGatewayName, connectionName).toBlocking().single().body(); }
java
public static boolean isNullOrWhiteSpace(String arg) { if (Strings.isNullOrEmpty(arg) || arg.trim().isEmpty()) { return true; } return false; }
java
public static boolean sequenceEqualConstantTime(byte[] self, byte[] other) { if (self == null) { throw new IllegalArgumentException("self"); } if (other == null) { throw new IllegalArgumentException("other"); } // Constant time comparison of two byte arr...
java
public KeyVerifyParameters withDigest(byte[] digest) { if (digest == null) { this.digest = null; } else { this.digest = Base64Url.encode(digest); } return this; }
java
public KeyVerifyParameters withSignature(byte[] signature) { if (signature == null) { this.signature = null; } else { this.signature = Base64Url.encode(signature); } return this; }
java
public Observable<SecretBundle> deleteSecretAsync(String vaultBaseUrl, String secretName) { return deleteSecretWithServiceResponseAsync(vaultBaseUrl, secretName).map(new Func1<ServiceResponse<SecretBundle>, SecretBundle>() { @Override public SecretBundle call(ServiceResponse<SecretBundle...
java
public Observable<ServiceResponse<Page<CertificateItem>>> getCertificatesSinglePageAsync(final String vaultBaseUrl, final Integer maxresults) { if (vaultBaseUrl == null) { throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null."); } if (this.apiVers...
java
public Observable<CertificateBundle> deleteCertificateAsync(String vaultBaseUrl, String certificateName) { return deleteCertificateWithServiceResponseAsync(vaultBaseUrl, certificateName).map(new Func1<ServiceResponse<CertificateBundle>, CertificateBundle>() { @Override public Certificate...
java
public String scheme(Object[] swaggerMethodArguments) { final String substitutedHost = applySubstitutions(rawHost, hostSubstitutions, swaggerMethodArguments, UrlEscapers.PATH_ESCAPER); final String[] substitutedHostParts = substitutedHost.split("://"); return substitutedHostParts.length < 1 ? nu...
java
public String path(Object[] methodArguments) { return applySubstitutions(relativePath, pathSubstitutions, methodArguments, UrlEscapers.PATH_ESCAPER); }
java
public Iterable<EncodedParameter> encodedQueryParameters(Object[] swaggerMethodArguments) { final List<EncodedParameter> result = new ArrayList<>(); if (querySubstitutions != null) { final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER; for (Substitution querySubstitution : ...
java
public Iterable<EncodedParameter> encodedFormParameters(Object[] swaggerMethodArguments) { if (formSubstitutions == null) { return Collections.emptyList(); } final List<EncodedParameter> result = new ArrayList<>(); final PercentEscaper escaper = UrlEscapers.QUERY_ESCAPER; ...
java
public Iterable<HttpHeader> headers(Object[] swaggerMethodArguments) { final HttpHeaders result = new HttpHeaders(headers); if (headerSubstitutions != null) { for (Substitution headerSubstitution : headerSubstitutions) { final int parameterIndex = headerSubstitution.methodPa...
java
public boolean isExpectedResponseStatusCode(int responseStatusCode, int[] additionalAllowedStatusCodes) { boolean result; if (expectedStatusCodes == null) { result = (responseStatusCode < 400); } else { result = contains(expectedStatusCodes, responseStatusCode) ...
java
public Object body(Object[] swaggerMethodArguments) { Object result = null; if (bodyContentMethodParameterIndex != null && swaggerMethodArguments != null && 0 <= bodyContentMethodParameterIndex && bodyContentMethodParameterIndex < swaggerMethodArguments.l...
java
public boolean expectsResponseBody() { boolean result = true; if (TypeUtil.isTypeOrSubTypeOf(returnType, Void.class)) { result = false; } else if (TypeUtil.isTypeOrSubTypeOf(returnType, Mono.class) || TypeUtil.isTypeOrSubTypeOf(returnType, Flux.class)) { final Parameteri...
java
public static EntityCreateOperation<ContentKeyAuthorizationPolicyOptionInfo> create(String name, int keyDeliveryType, String keyDeliveryConfiguration, List<ContentKeyAuthorizationPolicyRestriction> restrictions) { return new Creator(name, keyDeliveryType, keyDeliveryConfiguration, restri...
java
public static DefaultListOperation<ContentKeyAuthorizationPolicyOptionInfo> list( LinkInfo<ContentKeyAuthorizationPolicyOptionInfo> link) { return new DefaultListOperation<ContentKeyAuthorizationPolicyOptionInfo>(link.getHref(), new GenericType<ListResult<ContentKeyAuthorizationPolic...
java
public Observable<ManagedInstanceVulnerabilityAssessmentInner> getAsync(String resourceGroupName, String managedInstanceName) { return getWithServiceResponseAsync(resourceGroupName, managedInstanceName).map(new Func1<ServiceResponse<ManagedInstanceVulnerabilityAssessmentInner>, ManagedInstanceVulnerabilityAsses...
java
public MimeMultipart getMimeMultipart() throws MessagingException, IOException, JAXBException { List<DataSource> bodyPartContents = createRequestBody(); return toMimeMultipart(bodyPartContents); }
java
private int addJobPart(List<DataSource> bodyPartContents, URI jobURI, int contentId) throws JAXBException { int jobContentId = contentId; validateJobOperation(); for (EntityBatchOperation entityBatchOperation : entityBatchOperations) { DataSource bodyPartContent = null; ...
java
private void addTaskPart(List<DataSource> bodyPartContents, URI taskURI, int contentId) throws JAXBException { for (EntityBatchOperation entityBatchOperation : entityBatchOperations) { DataSource bodyPartContent = null; if (entityBatchOperation instanceof Task.CreateBatchOper...
java
private MimeMultipart toMimeMultipart(List<DataSource> bodyPartContents) throws MessagingException, IOException { String changeSetId = String.format("changeset_%s", UUID.randomUUID() .toString()); MimeMultipart changeSets = createChangeSets(bodyPartContents, c...
java
private DataSource createBatchCreateEntityPart(String verb, String entityName, EntryType entryType, URI uri, int contentId) throws JAXBException { ByteArrayOutputStream stream = new ByteArrayOutputStream(); this.oDataAtomMarshaller.marshalEntryType(entryType, stream); byt...
java
public void parseBatchResult(ClientResponse response) throws IOException, ServiceException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); InputStream inputStream = response.getEntityInputStream(); ReaderWriter.writeTo(inputStream, byteArrayOutputStream);...
java
private InternetHeaders parseHeaders(DataSource ds) { try { return new InternetHeaders(ds.getInputStream()); } catch (MessagingException e) { throw new RuntimeException(e); } catch (IOException e) { throw new RuntimeException(e); } }
java
private InputStream parseEntity(DataSource ds) { try { return ds.getInputStream(); } catch (IOException e) { throw new RuntimeException(e); } }
java
private List<DataSource> parseParts(final InputStream entityInputStream, final String contentType) { try { return parsePartsCore(entityInputStream, contentType); } catch (IOException e) { throw new RuntimeException(e); } catch (MessagingException e) { ...
java
private List<DataSource> parsePartsCore(InputStream entityInputStream, String contentType) throws MessagingException, IOException { DataSource dataSource = new InputStreamDataSource(entityInputStream, contentType); MimeMultipart batch = new MimeMultipart(dataSource); ...
java
private void addHttpMethod(ByteArrayOutputStream outputStream, String verb, URI uri) { try { String method = String.format("%s %s HTTP/1.1\r\n", verb, uri); outputStream.write(method.getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { throw new ...
java
private void appendHeaders(OutputStream outputStream, InternetHeaders internetHeaders) { try { // Headers @SuppressWarnings("unchecked") Enumeration<Header> headers = internetHeaders.getAllHeaders(); while (headers.hasMoreElements()) { ...
java
private void appendEntity(OutputStream outputStream, ByteArrayInputStream byteArrayInputStream) { try { byte[] buffer = new byte[BUFFER_SIZE]; while (true) { int bytesRead = byteArrayInputStream.read(buffer); if (bytesRead <= 0) { ...
java
public ServiceFuture<JobExecutionInner> getAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName, UUID jobExecutionId, String stepName, UUID targetId, final ServiceCallback<JobExecutionInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resour...
java
final void updateDelayInMillisecondsFrom(HttpResponse httpPollResponse) { final Long parsedDelayInMilliseconds = delayInMillisecondsFrom(httpPollResponse); if (parsedDelayInMilliseconds != null) { delayInMilliseconds = parsedDelayInMilliseconds; } }
java
Mono<Void> delayAsync() { Mono<Void> result = Mono.empty(); if (delayInMilliseconds > 0) { result = result.delaySubscription(Duration.ofMillis(delayInMilliseconds)); } return result; }
java
public Observable<TriggerInner> getAsync(String deviceName, String name, String resourceGroupName) { return getWithServiceResponseAsync(deviceName, name, resourceGroupName).map(new Func1<ServiceResponse<TriggerInner>, TriggerInner>() { @Override public TriggerInner call(ServiceResponse<T...
java
public Observable<EncryptionProtectorInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<EncryptionProtectorInner>, EncryptionProtectorInner>() { @Override public EncryptionProtecto...
java
public static void eraseKey(byte[] keyToErase) { if (keyToErase != null) { SecureRandom random; try { random = SecureRandom.getInstance("SHA1PRNG"); random.nextBytes(keyToErase); } catch (NoSuchAlgorithmException e) { // never r...
java
@Override public Response intercept(Interceptor.Chain chain) throws IOException { Request newRequest = this.signHeader(chain.request()); return chain.proceed(newRequest); }
java
public Observable<ServiceResponse<Void>> exportWithServiceResponseAsync(String vaultName, String resourceGroupName, String filter) { if (vaultName == null) { throw new IllegalArgumentException("Parameter vaultName is required and cannot be null."); } if (resourceGroupName == null) { ...
java
public Observable<DatabaseBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName) { return getWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<DatabaseBlobAuditingPolicyInner>, DatabaseBlobAuditingPolicyInner>() { ...
java
public Observable<DatabaseBlobAuditingPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseBlobAuditingPolicyInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceRespo...
java
public Duration getNextRetryInterval(String clientId, Exception lastException, Duration remainingTime) { int baseWaitTime = 0; synchronized (this.serverBusySync) { if (lastException != null && (lastException instanceof ServerBusyException || (lastException.getCause() != n...
java
public void deletePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolDeleteOptions options = new PoolDeleteOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr.appl...
java
public void stopResizePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolStopResizeOptions options = new PoolStopResizeOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); ...
java
public void disableAutoScale(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolDisableAutoScaleOptions options = new PoolDisableAutoScaleOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBeha...
java
public boolean existsPool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolExistsOptions options = new PoolExistsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors); bhMgr....
java
public void patchPool(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException...
java
public PoolStatistics getAllPoolsLifetimeStatistics(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException { PoolGetAllLifetimeStatisticsOptions options = new PoolGetAllLifetimeStatisticsOptions(); BehaviorManager bhMgr = new BehaviorManager(this.customBeh...
java
public static EntityCreateOperation<AccessPolicyInfo> create(String name, double durationInMinutes, EnumSet<AccessPolicyPermission> permissions) { return new Creator(name, durationInMinutes, permissions); }
java
public static EntityGetOperation<AccessPolicyInfo> get(String accessPolicyId) { return new DefaultGetOperation<AccessPolicyInfo>(ENTITY_SET, accessPolicyId, AccessPolicyInfo.class); }
java
public static EntityGetOperation<AccessPolicyInfo> get( LinkInfo<AccessPolicyInfo> link) { return new DefaultGetOperation<AccessPolicyInfo>(link.getHref(), AccessPolicyInfo.class); }
java
public ContentKeyType getContentKeyType() { Integer contentKeyTypeInteger = getContent().getContentKeyType(); ContentKeyType contentKeyType = null; if (contentKeyTypeInteger != null) { contentKeyType = ContentKeyType.fromCode(contentKeyTypeInteger); } return contentKe...
java
public Observable<TermList> getDetailsAsync(String listId) { return getDetailsWithServiceResponseAsync(listId).map(new Func1<ServiceResponse<TermList>, TermList>() { @Override public TermList call(ServiceResponse<TermList> response) { return response.body(); }...
java
public SecretRestoreParameters withSecretBundleBackup(byte[] secretBundleBackup) { if (secretBundleBackup == null) { this.secretBundleBackup = null; } else { this.secretBundleBackup = Base64Url.encode(secretBundleBackup); } return this; }
java
public Observable<ServerAutomaticTuningInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerAutomaticTuningInner>, ServerAutomaticTuningInner>() { @Override public ServerAutoma...
java
public Observable<ServerTableAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) { return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ServerTableAuditingPolicyInner>, ServerTableAuditingPolicyInner>() { @Override public ...
java