@Generated(value="OracleSDKGenerator", comments="API Version: v1") public final class PatchOp extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
See Section 3.5.2. HTTP PATCH
is an OPTIONAL server function that enables clients to update one or more attributes of a SCIM
resource using a sequence of operations to “add”, “remove”, or “replace” values. Clients may
discover service provider support for PATCH by querying the service provider configuration. The
general form of the SCIM patch request is based on JavaScript Object Notation (JSON) Patch
[RFC6902]. One difference between SCIM patch and JSON patch is that SCIM servers do not support
array indexing and do not support [RFC6902] operation types relating to array element
manipulation such as “move”. A patch request, regardless of the number of operations, SHALL be
treated as atomic. If a single operation encounters an error condition, the original SCIM
resource MUST be restored, and a failure status SHALL be returned.
Note: Objects should always be created or deserialized using the PatchOp.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the PatchOp.Builder
, which maintain a
set of all explicitly set fields called PatchOp.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
PatchOp.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
PatchOp(List<String> schemas,
List<Operations> operations)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PatchOp.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<Operations> |
getOperations()
The body of an HTTP PATCH request MUST contain the attribute “Operations”, whose value is an
array of one or more patch operations.
|
List<String> |
getSchemas()
The schemas attribute is an array of Strings which allows introspection of the supported
schema version for a SCIM representation as well any schema extensions supported by that
representation.
|
int |
hashCode() |
PatchOp.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"schemas","operations"}) public PatchOp(List<String> schemas, List<Operations> operations)
public static PatchOp.Builder builder()
Create a new builder.
public PatchOp.Builder toBuilder()
public List<String> getSchemas()
The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior. REQUIRED.
public List<Operations> getOperations()
The body of an HTTP PATCH request MUST contain the attribute “Operations”, whose value is an array of one or more patch operations.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.