28 строки
2.2 KiB
YAML
28 строки
2.2 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.core.annotation.Put"
|
|
fullName: "com.azure.core.annotation.Put"
|
|
name: "Put"
|
|
nameWithType: "Put"
|
|
summary: "HTTP PUT method annotation describing the parameterized relative path to a REST endpoint for resource creation or update."
|
|
syntax: "public interface **Put**</br> implements <a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html\">Annotation</a>"
|
|
methods:
|
|
- uid: "com.azure.core.annotation.Put.value()"
|
|
fullName: "com.azure.core.annotation.Put.value()"
|
|
name: "value()"
|
|
nameWithType: "Put.value()"
|
|
summary: "Get the relative path of the annotated method's PUT URL."
|
|
modifiers:
|
|
- "abstract"
|
|
syntax: "public abstract String value()"
|
|
desc: "Get the relative path of the annotated method's PUT URL."
|
|
returns:
|
|
description: "The relative path of the annotated method's PUT URL."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
type: "interface"
|
|
desc: "HTTP PUT method annotation describing the parameterized relative path to a REST endpoint for resource creation or update.\n\nThe required value can be either a relative path or an absolute path. When it's an absolute path, it must start with a protocol or a parameterized segment (Otherwise the parse cannot tell if it's absolute or relative).\n\n**Example 1: Relative path segments**\n\n```java\n@Put(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/\"\n + \"virtualMachines/{vmName}\")\n VirtualMachine createOrUpdate(@PathParam(\"resourceGroupName\") String rgName,\n @PathParam(\"vmName\") String vmName,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") VirtualMachine vm);\n```\n\n**Example 2: Absolute path segment**\n\n```java\n@Put(\"{vaultBaseUrl}/secrets/{secretName}\")\n Secret createOrUpdate(@PathParam(value = \"vaultBaseUrl\", encoded = true) String vaultBaseUrl,\n @PathParam(\"secretName\") String secretName,\n @BodyParam(\"application/json\") Secret secret);\n```"
|
|
implements:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html\">Annotation</a>"
|
|
metadata: {}
|
|
package: "com.azure.core.annotation"
|
|
artifact: com.azure:azure-core:1.54.0
|