Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • 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
      • Enum
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Document
  • Encoder
  • Operation
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

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
OpenCloud\Image\Resource\Schema\Schema
$schema
$property
OpenCloud\Image\Resource\Schema\Property
$property
$operationType
string
$operationType

Returns

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

Parameters

$type
mixed
$type string
public string
# getType( )

Returns

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

Parameters

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

Returns

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

Parameters

$path
mixed
$path
public string
# getPath( )

Returns

string
public
# setValue( mixed $value )

Parameters

$value
mixed
$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
Properties summary
protected OpenCloud\Image\Resource\Schema\Schema $schema
#

The JSON schema this operation is acting on

The JSON schema this operation is acting on

protected string $type
#

The type of operation

The type of operation

protected string $path
#

The JSON pointer value

The JSON pointer value

protected mixed $value
#

The value for this JSON property

The value for this JSON property

PHP OpenCloud API API documentation generated by ApiGen 2.8.0