azure-docs-sdk-java/docs-ref-autogen/com.azure.core.annotation.P...

28 строки
2.1 KiB
YAML
Исходник Обычный вид История

### YamlMime:JavaType
uid: "com.azure.core.annotation.Patch"
fullName: "com.azure.core.annotation.Patch"
name: "Patch"
nameWithType: "Patch"
summary: "HTTP PATCH method annotation describing the parameterized relative path to a REST endpoint for resource update."
syntax: "public interface Patch implements Annotation"
methods:
- uid: "com.azure.core.annotation.Patch.value()"
fullName: "com.azure.core.annotation.Patch.value()"
name: "value()"
nameWithType: "Patch.value()"
summary: "Get the relative path of the annotated method's PATCH URL."
modifiers:
- "abstract"
syntax: "public abstract String value()"
desc: "Get the relative path of the annotated method's PATCH URL."
returns:
description: "The relative path of the annotated method's PATCH URL."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
type: "interface"
desc: "HTTP PATCH method annotation describing the parameterized relative path to a REST endpoint for resource 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@Patch(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/\n Microsoft.Compute/virtualMachines/{vmName}\")\n VirtualMachine patch(@PathParam(\"resourceGroupName\") String rgName, @PathParam(\"vmName\") String\n vmName, @PathParam(\"subscriptionId\") String subscriptionId, @BodyParam VirtualMachineUpdateParameters\n updateParameters);\n```\n\n**Example 2: Absolute path segment**\n\n```java\n@Patch({vaultBaseUrl}/secrets/{secretName})\n Secret patch(@PathParam(\"vaultBaseUrl\" encoded = true) String vaultBaseUrl, @PathParam(\"secretName\") String\n secretName, @BodyParam SecretUpdateParameters updateParameters);\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.33.0