OperatingPolicies
in package
FinalYes
Reusable operating-policy creation, lookup, and immutable versioning operations.
Table of Contents
Methods
- __construct() : mixed
- Creates the operating-policies resource client.
- create() : OperatingPolicy
- Creates the first version of an operating policy.
- lookup() : OperatingPolicy
- Returns the latest policy by default, or one exact immutable version.
- page() : Page
- Lists immutable versions of one operating policy.
- update() : OperatingPolicy
- Creates and activates a new immutable operating-policy version.
Methods
__construct()
Creates the operating-policies resource client.
public
__construct(HttpClient $http) : mixed
Parameters
- $http : HttpClient
create()
Creates the first version of an operating policy.
public
create(array<string|int, mixed> $payload) : OperatingPolicy
Parameters
- $payload : array<string|int, mixed>
Return values
OperatingPolicylookup()
Returns the latest policy by default, or one exact immutable version.
public
lookup(string $operatingPolicyId[, int|null $version = null ]) : OperatingPolicy
Parameters
- $operatingPolicyId : string
- $version : int|null = null
Return values
OperatingPolicypage()
Lists immutable versions of one operating policy.
public
page(string $operatingPolicyId[, int|null $number = null ][, int|null $size = null ]) : Page
Parameters
- $operatingPolicyId : string
- $number : int|null = null
- $size : int|null = null
Return values
Pageupdate()
Creates and activates a new immutable operating-policy version.
public
update(array<string|int, mixed> $payload) : OperatingPolicy
Parameters
- $payload : array<string|int, mixed>