Represents a web service API model.
Table of Contents Methods public __construct(array<string|int, mixed> $definition, ShapeMap $shapeMap) : mixed
Parameters
Service description
Shapemap used for creating shapes
Creates an error parser for the given protocol.
public static createErrorParser(string $protocol[, Service|null $api = null ]) : callable
Redundant method signature to preserve backwards compatibility.
ParametersProtocol to parse (e.g., query, json, etc.)
Applies the listeners needed to parse client models.
public static createParser(Service $api) : callable
Parameters
API to create a parser for
Creates a request serializer for the provided API object.
public static createSerializer(Service $api, string $endpoint) : callable
Parameters
API that contains a protocol.
Endpoint to send requests to.
Get the API version of the service
public getApiVersion() : string
Return valuesstring getClientContextParams()
Get all the context params of the description.
public getClientContextParams() : array<string|int, mixed>
Return valuesarray<string|int, mixed> getDefinition()
Get the service's definition.
public getDefinition() : callable
Return valuescallable getEndpointPrefix()
Get the API version of the service
public getEndpointPrefix() : string
Return valuesstring getErrorShapes()
Get all of the error shapes of the service
public getErrorShapes() : array<string|int, mixed>
Return valuesarray<string|int, mixed> getMetadata()
Get all of the service metadata or a specific metadata key value.
public getMetadata([string|null $key = null ]) : mixed
Parameters
Key to retrieve or null to retrieve all metadata
Returns the result or null if the key is not found
getOperation()Get an operation by name.
public getOperation(string $name) : Operation
Parameters
Operation to retrieve by name
If the operation is not found
Get all of the operations of the description.
public getOperations() : array<string|int, Operation>
Return valuesarray<string|int, Operation> getPaginatorConfig()
Retrieve a paginator by name.
public getPaginatorConfig(string $name) : array<string|int, mixed>
Parameters
Paginator to retrieve by name. This argument is typically the operation name.
if the paginator does not exist.
The configuration format of paginators may change in the future
Gets an associative array of available paginator configurations where the key is the name of the paginator, and the value is the paginator configuration.
public getPaginators() : array<string|int, mixed>
Tags
The configuration format of paginators may change in the future
Get the protocol used by the service.
public getProtocol() : string
Return valuesstring getProvider()
Get the service's api provider.
public getProvider() : callable
Return valuescallable getServiceFullName()
Get the full name of the service
public getServiceFullName() : string
Return valuesstring getServiceId()
Get the service id
public getServiceId() : string
Return valuesstring getServiceName()
Get the service name.
public getServiceName() : string
Return valuesstring getShapeMap()
Get the shape map used by the API.
public getShapeMap() : ShapeMap
Return valuesShapeMap getSignatureVersion()
Get the default signature version of the service.
public getSignatureVersion() : string
Note: this method assumes "v4" when not specified in the model.
Return valuesstring getSigningName()Get the signing name used by the service.
public getSigningName() : string
Return valuesstring getUid()
Get the uid string used by the service
public getUid() : string
Return valuesstring getWaiterConfig()
Get a waiter configuration by name.
public getWaiterConfig(string $name) : array<string|int, mixed>
Parameters
Name of the waiter by name.
if the waiter does not exist.
Gets an associative array of available waiter configurations where the key is the name of the waiter, and the value is the waiter configuration.
public getWaiters() : array<string|int, mixed>
Return valuesarray<string|int, mixed> hasOperation()
Check if the description has a specific operation by name.
public hasOperation(string $name) : bool
Parameters
Operation to check by name
Determines if the service has a paginator by name.
public hasPaginator(string $name) : bool
Parameters
Name of the paginator.
Determines if the service has a waiter by name.
public hasWaiter(string $name) : bool
Parameters
Name of the waiter.
public offsetExists(mixed $offset) : bool
Parameters
public offsetGet(mixed $offset) : mixed|null
Parameters
public offsetSet(mixed $offset, mixed $value) : void
Parameters
public offsetUnset(mixed $offset) : void
Parameters
public toArray() : mixed
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4