Class PatchOp
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.identitydomains.model.PatchOp
-
@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 thePatchOp.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 thePatchOp.Builder
, which maintain a set of all explicitly set fields calledPatchOp.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatchOp.Builder
-
Constructor Summary
Constructors Constructor Description PatchOp(List<String> schemas, List<Operations> operations)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
PatchOp
@Deprecated @ConstructorProperties({"schemas","operations"}) public PatchOp(List<String> schemas, List<Operations> operations)
Deprecated.
-
-
Method Detail
-
builder
public static PatchOp.Builder builder()
Create a new builder.
-
toBuilder
public PatchOp.Builder toBuilder()
-
getSchemas
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.
- Returns:
- the value
-
getOperations
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.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-