retrofit.http.PUT.<init>()方法的使用及代码示例

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

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

PUT.<init>介绍

暂无

代码示例

代码示例来源: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: 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);

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

@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/")
DaemonTask<Halconfig, Object> setProvider(
  @Path("deploymentName") String deploymentName,
  @Path("providerName") String providerName,
  @Query("validate") boolean validate,
  @Body Provider provider);

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

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

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

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

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

@PUT("/v1/config/deployments/{deploymentName}/deploymentEnvironment/haServices/{serviceName}/enabled/")
DaemonTask<Halconfig, Void> setHaServiceEnabled(
  @Path("deploymentName") String deploymentName,
  @Path("serviceName") String serviceName,
  @Query("validate") boolean validate,
  @Body boolean enabled);

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

@PUT("/v1/config/deployments/{deploymentName}/security/authn/{methodName}/")
DaemonTask<Halconfig, Void> setAuthnMethod(
  @Path("deploymentName") String deploymentName,
  @Path("methodName") String methodName,
  @Query("validate") boolean validate,
  @Body AuthnMethod authnMethod);

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

@PUT("/v1/config/deployments/{deploymentName}/pubsubs/{pubsubName}/subscriptions/subscription/{subscriptionName}/")
DaemonTask<Halconfig, Void> setSubscription(
  @Path("deploymentName") String deploymentName,
  @Path("pubsubName") String pubsubName,
  @Path("subscriptionName") String subscriptionName,
  @Query("validate") boolean validate,
  @Body Subscription subscription);

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

@PUT("/v1/config/deployments/{deploymentName}/canary/{serviceIntegrationName}/accounts/account/{accountName}/")
DaemonTask<Halconfig, Void> setCanaryAccount(
  @Path("deploymentName") String deploymentName,
  @Path("serviceIntegrationName") String serviceIntegrationName,
  @Path("accountName") String accountName,
  @Query("validate") boolean validate,
  @Body AbstractCanaryAccount account);

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

@PUT("/v1/config/deployments/{deploymentName}/ci/{ciName}/masters/{masterName}/")
DaemonTask<Halconfig, Void> setMaster(
  @Path("deploymentName") String deploymentName,
  @Path("ciName") String ciName,
  @Path("masterName") String masterName,
  @Query("validate") boolean validate,
  @Body Master master);

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

@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/accounts/account/{accountName}/")
DaemonTask<Halconfig, Void> setAccount(
  @Path("deploymentName") String deploymentName,
  @Path("providerName") String providerName,
  @Path("accountName") String accountName,
  @Query("validate") boolean validate,
  @Body Account account);

相关文章

PUT类方法