Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

  • Document
  • Encoder
  • Operation

Class Document

Class which represents a JSON Patch document, which represents an array of objects. Each object represents a single operation to be applied to the target JSON document. See RFC 6902 for details.

Namespace: OpenCloud\Image\Resource\JsonPatch
Package: OpenCloud\Images\Resource\JsonPatch
See: http://tools.ietf.org/html/rfc6902
Located at OpenCloud/Image/Resource/JsonPatch/Document.php

Methods summary

public array
# getOperations( )

Returns

array
public
# addOperation( OpenCloud\Image\Resource\JsonPatch\Operation $operation )

Add a new JSON operation to the document

Add a new JSON operation to the document

Parameters

$operation
public string
# getResponseBody( )

Encode all the operations into a flat structure for HTTP transfer

Encode all the operations into a flat structure for HTTP transfer

Returns

string
public string
# toString( )

Cast this document as a string

Cast this document as a string

Returns

string
API documentation generated by ApiGen