retrofit.http.PUT类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中retrofit.http.PUT类的一些代码示例,展示了PUT类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PUT类的具体详情如下:
包路径:retrofit.http.PUT
类名称:PUT

PUT介绍

暂无

代码示例

代码示例来源:origin: com.netflix.spinnaker.fiat/fiat-api

/**
 * Used specifically for logins that contain the users roles/groups.
 * @param userId The user being logged in
 * @param roles Collection of roles from the identity provider
 * @return ignored.
 */
@PUT("/roles/{userId}")
Response loginWithRoles(@Path("userId") String userId, @Body Collection<String> roles);

代码示例来源:origin: tomahawk-player/tomahawk-android

@PUT("/playlists/{playlist-id}")
Response putPlaylists(
    @Header("Authorization") String accesstoken,
    @Path("playlist-id") String playlist_id,
    @Body TypedInput rawBody
);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/metricStores/")
DaemonTask<Halconfig, Void> setMetricStores(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body MetricStores metricStores);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/canary/")
DaemonTask<Halconfig, Void> setCanary(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body Canary canary);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/version/")
DaemonTask<Halconfig, Void> setVersion(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body Versions.Version version);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/security/authz/enabled/")
DaemonTask<Halconfig, Void> setAuthzEnabled(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body boolean enabled);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli

@PUT("/v1/config/deployments/{deploymentName}/security/")
DaemonTask<Halconfig, Void> setSecurity(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body Security security);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli

@PUT("/v1/config/deployments/{deploymentName}/metricStores/")
DaemonTask<Halconfig, Void> setMetricStores(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body MetricStores metricStores);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli

@PUT("/v1/config/deployments/{deploymentName}/security/ui/ssl/enabled/")
DaemonTask<Halconfig, Void> setApacheSslEnabled(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body boolean enabled);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli

@PUT("/v1/config/deployments/{deploymentName}/security/authz/groupMembership")
DaemonTask<Halconfig, Void> setGroupMembership(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body GroupMembership membership);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli

@PUT("/v1/config/deployments/{deploymentName}/security/authz/enabled/")
DaemonTask<Halconfig, Void> setAuthzEnabled(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body boolean enabled);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/")
DaemonTask<Halconfig, Void> setDeployment(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body DeploymentConfiguration deploymentConfiguration);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/security/")
DaemonTask<Halconfig, Void> setSecurity(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body Security security);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/security/authz/groupMembership")
DaemonTask<Halconfig, Void> setGroupMembership(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body GroupMembership membership);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli

@PUT("/v1/config/deployments/{deploymentName}/")
DaemonTask<Halconfig, Void> setDeployment(
  @Path("deploymentName") String deploymentName,
  @Query("validate") boolean validate,
  @Body DeploymentConfiguration deploymentConfiguration);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/webhook/")
DaemonTask<Halconfig, Void> setWebhook(
    @Path("deploymentName") String deploymentName,
    @Query("validate") boolean validate,
    @Body Webhook webhook);

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/webhook/trust/")
DaemonTask<Halconfig, Void> setWebhookTrust(
    @Path("deploymentName") String deploymentName,
    @Query("validate") boolean validate,
    @Body WebhookTrust webhookTrust);

代码示例来源:origin: andyiac/githot

@Headers({
    "Content-Length: 0",
    "Accept: application/json"
})
@PUT("/user/starred/{user}/{repo}")
Observable<Object> starRepo(
    @Path("user") String user, @Path("repo") String repo,
    @Query(value = "access_token", encodeValue = true) String accessToken
);

代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-deploy

@PUT("/v1/secret/{secretName}")
 @Headers({
   "Content-type: application/json"
 })
 Response putSecret(@Header("X-Vault-Token") String token, @Path(value = "secretName", encode = false) String secretName, @Body Object contents);
}

代码示例来源:origin: spinnaker/halyard

@PUT("/v1/config/deployments/{deploymentName}/pubsubs/{pubsubName}/")
DaemonTask<Halconfig, Object> setPubsub(
  @Path("deploymentName") String deploymentName,
  @Path("pubsubName") String pubsubName,
  @Query("validate") boolean validate,
  @Body Pubsub pubsub);

相关文章

PUT类方法