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 Operation

Class that represents a JSON Patch operation. It utilizes the JSON pointer syntax, in line with RFC 6902.

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

Methods summary

public static OpenCloud\Image\Resource\JsonPatch\Operation
# factory( OpenCloud\Image\Resource\Schema\Schema $schema, OpenCloud\Image\Resource\Schema\Property $property, string $operationType )

Parameters

$schema
$property
$operationType

Returns

OpenCloud\Image\Resource\JsonPatch\Operation
public
# setType( $type )

Parameters

$type
string
public string
# getType( )

Returns

string
public
# setSchema( OpenCloud\Image\Resource\Schema\Schema $schema )

Parameters

$schema
public OpenCloud\Image\Resource\Schema\Schema
# getSchema( )

Returns

OpenCloud\Image\Resource\Schema\Schema
public
# setPath( $path )

Parameters

$path
public string
# getPath( )

Returns

string
public
# setValue( $value )

Parameters

$value
public mixed
# getValue( )

Returns

mixed
public
# validate( )

Validates that this operation is of an allowed type

Validates that this operation is of an allowed type

Throws

RuntimeException
if not
API documentation generated by ApiGen