CreateAuthorizationResource
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $description : string|null
- An optional description of the resource.
- $externalId : string
- An external identifier for the resource.
- $name : string
- A display name for the resource.
- $organizationId : string
- The ID of the organization this resource belongs to.
- $parentResourceExternalId : string|null
- The external ID of the parent resource. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`.
- $parentResourceId : string|null
- The ID of the parent resource. Mutually exclusive with `parent_resource_external_id` and `parent_resource_type_slug`.
- $parentResourceTypeSlug : string|null
- The resource type slug of the parent resource. Required with `parent_resource_external_id`. Mutually exclusive with `parent_resource_id`.
- $resourceTypeSlug : string
- The slug of the resource type.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$description
An optional description of the resource.
public
string|null
$description
= null
$externalId
An external identifier for the resource.
public
string
$externalId
$name
A display name for the resource.
public
string
$name
$organizationId
The ID of the organization this resource belongs to.
public
string
$organizationId
$parentResourceExternalId
The external ID of the parent resource. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`.
public
string|null
$parentResourceExternalId
= null
$parentResourceId
The ID of the parent resource. Mutually exclusive with `parent_resource_external_id` and `parent_resource_type_slug`.
public
string|null
$parentResourceId
= null
$parentResourceTypeSlug
The resource type slug of the parent resource. Required with `parent_resource_external_id`. Mutually exclusive with `parent_resource_id`.
public
string|null
$parentResourceTypeSlug
= null
$resourceTypeSlug
The slug of the resource type.
public
string
$resourceTypeSlug
Methods
__construct()
public
__construct(string $externalId, string $name, string $resourceTypeSlug, string $organizationId[, string|null $description = null ][, string|null $parentResourceId = null ][, string|null $parentResourceExternalId = null ][, string|null $parentResourceTypeSlug = null ]) : mixed
Parameters
- $externalId : string
- $name : string
- $resourceTypeSlug : string
- $organizationId : string
- $description : string|null = null
- $parentResourceId : string|null = null
- $parentResourceExternalId : string|null = null
- $parentResourceTypeSlug : string|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>