retrofit2.http.PATCH Java Examples

The following examples show how to use retrofit2.http.PATCH. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: azure-keyvault-java   Author: Azure   File: KeyVaultClientCustomImpl.java    License: MIT License 5 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8",
        "x-ms-logging-context: com.microsoft.azure.keyvault.KeyVaultClient updateSecret" })
@PATCH("secrets/{secret-name}/{secret-version}")
Observable<Response<ResponseBody>> updateSecret(@Path("secret-name") String secretName,
        @Path("secret-version") String secretVersion, @Query("api-version") String apiVersion,
        @Header("accept-language") String acceptLanguage, @Body SecretUpdateParameters parameters,
        @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent);
 
Example #2
Source Project: OpenHub   Author: ThirtyDegreesRay   File: IssueService.java    License: GNU General Public License v3.0 5 votes vote down vote up
@NonNull @PATCH("repos/{owner}/{repo}/labels/{labelName}")
Observable<Response<Label>> updateLabel(
        @Path("owner") String owner,
        @Path("repo") String repo,
        @Path("labelName") String labelName,
        @Body Label body
);
 
Example #3
Source Project: OpenHub   Author: ThirtyDegreesRay   File: IssueService.java    License: GNU General Public License v3.0 5 votes vote down vote up
@NonNull @PATCH("repos/{owner}/{repo}/issues/{issueNumber}")
@Headers("Accept: application/vnd.github.html,application/vnd.github.VERSION.raw," +
        "application/vnd.github.squirrel-girl-preview")
Observable<Response<Issue>> editIssue(
        @Path("owner") String owner,
        @Path("repo") String repo,
        @Path("issueNumber") int issueNumber,
        @Body IssueRequestModel body
);
 
Example #4
Source Project: OpenHub   Author: ThirtyDegreesRay   File: IssueService.java    License: GNU General Public License v3.0 5 votes vote down vote up
@NonNull @PATCH("repos/{owner}/{repo}/issues/comments/{commentId}")
@Headers("Accept: application/vnd.github.html,application/vnd.github.VERSION.raw," +
        "application/vnd.github.squirrel-girl-preview")
Observable<Response<IssueEvent>> editComment(
        @Path("owner") String owner,
        @Path("repo") String repo,
        @Path("commentId") String commentId,
        @Body CommentRequestModel body
);
 
Example #5
Source Project: azure-libraries-for-java   Author: Azure   File: DedicatedHostsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.DedicatedHosts beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}")
Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("hostGroupName") String hostGroupName, @Path("hostName") String hostName, @Path("subscriptionId") String subscriptionId, @Body DedicatedHostUpdate parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #6
Source Project: appcenter-plugin   Author: jenkinsci   File: AppCenterService.java    License: MIT License 4 votes vote down vote up
@PATCH("v0.1/apps/{owner_name}/{app_name}/releases/{release_id}")
CompletableFuture<ReleaseDetailsUpdateResponse> releasesUpdate(
    @Path("owner_name") @Nonnull String user,
    @Path("app_name") @Nonnull String appName,
    @Path("release_id") @Nonnull Integer releaseId,
    @Body @Nonnull ReleaseUpdateRequest releaseUpdateRequest);
 
Example #7
Source Project: appcenter-plugin   Author: jenkinsci   File: AppCenterService.java    License: MIT License 4 votes vote down vote up
@PATCH("v0.1/apps/{owner_name}/{app_name}/symbol_uploads/{symbol_upload_id}")
CompletableFuture<SymbolUpload> symbolUploadsComplete(
    @Path("owner_name") @Nonnull String user,
    @Path("app_name") @Nonnull String appName,
    @Path("symbol_upload_id") @Nonnull String uploadId,
    @Body @Nonnull SymbolUploadEndRequest symbolUploadEndRequest);
 
Example #8
Source Project: azure-libraries-for-java   Author: Azure   File: ServicePrincipalsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.graphrbac.ServicePrincipals updatePasswordCredentials" })
@PATCH("{tenantID}/servicePrincipals/{objectId}/passwordCredentials")
Observable<Response<ResponseBody>> updatePasswordCredentials(@Path("objectId") String objectId, @Path("tenantID") String tenantID, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body PasswordCredentialsUpdateParameters parameters, @Header("User-Agent") String userAgent);
 
Example #9
Source Project: azure-libraries-for-java   Author: Azure   File: VirtualMachineScaleSetExtensionsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetExtensions update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("vmssExtensionName") String vmssExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineScaleSetExtensionUpdate extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #10
Source Project: azure-libraries-for-java   Author: Azure   File: ExpressRoutePortsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ExpressRoutePorts updateTags" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}")
Observable<Response<ResponseBody>> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("expressRoutePortName") String expressRoutePortName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent);
 
Example #11
Source Project: azure-libraries-for-java   Author: Azure   File: DiskEncryptionSetsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.DiskEncryptionSets update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")
Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("diskEncryptionSetName") String diskEncryptionSetName, @Query("api-version") String apiVersion, @Body DiskEncryptionSetUpdate diskEncryptionSet, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #12
Source Project: azure-libraries-for-java   Author: Azure   File: EndpointsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.trafficmanager.Endpoints update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointType") String endpointType, @Path("endpointName") String endpointName, @Path("subscriptionId") String subscriptionId, @Body EndpointInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #13
Source Project: azure-libraries-for-java   Author: Azure   File: ApplicationSecurityGroupsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.ApplicationSecurityGroups updateTags" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}")
Observable<Response<ResponseBody>> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("applicationSecurityGroupName") String applicationSecurityGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent);
 
Example #14
Source Project: azure-libraries-for-java   Author: Azure   File: VirtualMachineExtensionsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineExtensions beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}")
Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("vmName") String vmName, @Path("vmExtensionName") String vmExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineExtensionUpdate extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #15
Source Project: azure-libraries-for-java   Author: Azure   File: BlobContainersInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.BlobContainers update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("containerName") String containerName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body BlobContainerInner blobContainer, @Header("User-Agent") String userAgent);
 
Example #16
Source Project: azure-libraries-for-java   Author: Azure   File: DatabaseAccountsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.DatabaseAccounts update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}")
Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Body DatabaseAccountUpdateParameters updateParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #17
Source Project: azure-libraries-for-java   Author: Azure   File: FileSharesInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.storage.FileShares update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("shareName") String shareName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body FileShareInner fileShare, @Header("User-Agent") String userAgent);
 
Example #18
Source Project: azure-libraries-for-java   Author: Azure   File: DdosProtectionPlansInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.DdosProtectionPlans updateTags" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}")
Observable<Response<ResponseBody>> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("ddosProtectionPlanName") String ddosProtectionPlanName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent);
 
Example #19
Source Project: azure-libraries-for-java   Author: Azure   File: AppServiceCertificateOrdersInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.AppServiceCertificateOrders update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("certificateOrderName") String certificateOrderName, @Path("subscriptionId") String subscriptionId, @Body AppServiceCertificateOrderPatchResource certificateDistinguishedName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #20
Source Project: azure-libraries-for-java   Author: Azure   File: OriginsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cdn.Origins beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}")
Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("profileName") String profileName, @Path("endpointName") String endpointName, @Path("originName") String originName, @Path("subscriptionId") String subscriptionId, @Body OriginUpdateParametersInner originUpdateProperties, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #21
Source Project: azure-libraries-for-java   Author: Azure   File: ReplicationsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerregistry.Replications beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}")
Observable<Response<ResponseBody>> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("registryName") String registryName, @Path("replicationName") String replicationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ReplicationUpdateParameters replicationUpdateParameters, @Header("User-Agent") String userAgent);
 
Example #22
Source Project: mvvm-template   Author: duyp   File: IssueService.java    License: GNU General Public License v3.0 4 votes vote down vote up
@PATCH("repos/{owner}/{repo}/issues/comments/{id}")
@Headers("Accept: application/vnd.github.VERSION.full+json, application/vnd.github.squirrel-girl-preview")
Single<Comment> editIssueComment(@Path("owner") String owner, @Path("repo") String repo, @Path("id") long id,
                                     @Body CommentRequestModel body);
 
Example #23
Source Project: OpenHub   Author: ThirtyDegreesRay   File: NotificationsService.java    License: GNU General Public License v3.0 4 votes vote down vote up
@NonNull @PATCH("notifications/threads/{threadId}")
Observable<Response<ResponseBody>> markNotificationAsRead(
        @Path("threadId") String threadId
);
 
Example #24
Source Project: azure-libraries-for-java   Author: Azure   File: ImagesInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.Images beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}")
Observable<Response<ResponseBody>> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("imageName") String imageName, @Path("subscriptionId") String subscriptionId, @Body ImageUpdate parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #25
Source Project: azure-libraries-for-java   Author: Azure   File: GalleriesInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.Galleries update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}")
Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("galleryName") String galleryName, @Query("api-version") String apiVersion, @Body GalleryUpdate gallery, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #26
Source Project: azure-libraries-for-java   Author: Azure   File: TasksInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerregistry.Tasks update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}")
Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("registryName") String registryName, @Path("taskName") String taskName, @Query("api-version") String apiVersion, @Body TaskUpdateParameters taskUpdateParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #27
Source Project: azure-libraries-for-java   Author: Azure   File: VirtualMachineScaleSetVMExtensionsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineScaleSetVMExtensions update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("vmScaleSetName") String vmScaleSetName, @Path("instanceId") String instanceId, @Path("vmExtensionName") String vmExtensionName, @Path("subscriptionId") String subscriptionId, @Body VirtualMachineExtensionUpdate extensionParameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #28
Source Project: azure-libraries-for-java   Author: Azure   File: NamespacesInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.servicebus.Namespaces update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("subscriptionId") String subscriptionId, @Body NamespaceUpdateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #29
Source Project: azure-libraries-for-java   Author: Azure   File: ApplicationsInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batch.Applications update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}")
Observable<Response<ResponseBody>> update(@Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("applicationName") String applicationName, @Path("subscriptionId") String subscriptionId, @Body ApplicationInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
Example #30
Source Project: azure-libraries-for-java   Author: Azure   File: VirtualWansInner.java    License: MIT License 4 votes vote down vote up
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWans updateTags" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}")
Observable<Response<ResponseBody>> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject wANParameters, @Header("User-Agent") String userAgent);