Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.310.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jun 20, 2024
1 parent 5e07da9 commit e3274e0
Show file tree
Hide file tree
Showing 14 changed files with 267 additions and 11 deletions.
16 changes: 11 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: db1bb4da-054f-485f-8c6e-d42db3f1da90
management:
docChecksum: faf7375f0e20304e1fb56c4a4b633e29
docChecksum: eb530f662240663b5cb067995daf351c
docVersion: 0.4.0 .
speakeasyVersion: 1.308.2
generationVersion: 2.342.6
releaseVersion: 0.38.6
configChecksum: f8b08d647b1523744848101e91974c30
speakeasyVersion: 1.310.0
generationVersion: 2.347.4
releaseVersion: 0.38.7
configChecksum: d56e084660042f0fd0b004c7a2ddc7c0
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php
Expand Down Expand Up @@ -136,6 +136,8 @@ generatedFiles:
- src/Models/Operations/GetRequestFromEventLogResponse.php
- src/Models/Operations/QueryEventLogRequest.php
- src/Models/Operations/QueryEventLogResponse.php
- src/Models/Operations/FetchPublishingPRsRequest.php
- src/Models/Operations/FetchPublishingPRsResponse.php
- src/Models/Operations/GithubCheckAccessRequest.php
- src/Models/Operations/GithubCheckAccessResponse.php
- src/Models/Operations/GithubCheckPublishingSecretsRequest.php
Expand Down Expand Up @@ -215,6 +217,7 @@ generatedFiles:
- src/Models/Shared/RequestMetadata.php
- src/Models/Shared/Filters.php
- src/Models/Shared/Filter.php
- src/Models/Shared/GithubPublishingPRResponse.php
- src/Models/Shared/GithubMissingPublishingSecretsResponse.php
- src/Models/Shared/GithubConfigureTargetRequest.php
- src/Models/Shared/GithubStorePublishingSecretsRequest.php
Expand Down Expand Up @@ -311,6 +314,8 @@ generatedFiles:
- docs/Models/Operations/GetRequestFromEventLogResponse.md
- docs/Models/Operations/QueryEventLogRequest.md
- docs/Models/Operations/QueryEventLogResponse.md
- docs/Models/Operations/FetchPublishingPRsRequest.md
- docs/Models/Operations/FetchPublishingPRsResponse.md
- docs/Models/Operations/GithubCheckAccessRequest.md
- docs/Models/Operations/GithubCheckAccessResponse.md
- docs/Models/Operations/GithubCheckPublishingSecretsRequest.md
Expand Down Expand Up @@ -390,6 +395,7 @@ generatedFiles:
- docs/Models/Shared/RequestMetadata.md
- docs/Models/Shared/Filters.md
- docs/Models/Shared/Filter.md
- docs/Models/Shared/GithubPublishingPRResponse.md
- docs/Models/Shared/GithubMissingPublishingSecretsResponse.md
- docs/Models/Shared/GithubConfigureTargetRequest.md
- docs/Models/Shared/GithubStorePublishingSecretsRequest.md
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ try {

### [Github](docs/sdks/github/README.md)

* [fetchPublishingPRs](docs/sdks/github/README.md#fetchpublishingprs)
* [githubCheckAccess](docs/sdks/github/README.md#githubcheckaccess)
* [githubCheckPublishingSecrets](docs/sdks/github/README.md#githubcheckpublishingsecrets)
* [githubConfigureTarget](docs/sdks/github/README.md#githubconfiguretarget)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,4 +954,14 @@ Based on:
### Generated
- [php v0.38.6] .
### Releases
- [Composer v0.38.6] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.38.6 - .
- [Composer v0.38.6] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.38.6 - .

## 2024-06-20 00:12:48
### Changes
Based on:
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.310.0 (2.347.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.38.7] .
### Releases
- [Composer v0.38.7] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.38.7 - .
10 changes: 10 additions & 0 deletions docs/Models/Operations/FetchPublishingPRsRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# FetchPublishingPRsRequest


## Fields

| Field | Type | Required | Description |
| ------------------- | ------------------- | ------------------- | ------------------- |
| `generateGenLockId` | *string* | :heavy_check_mark: | N/A |
| `org` | *string* | :heavy_check_mark: | N/A |
| `repo` | *string* | :heavy_check_mark: | N/A |
12 changes: 12 additions & 0 deletions docs/Models/Operations/FetchPublishingPRsResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# FetchPublishingPRsResponse


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [?\Speakeasy\SpeakeasyClientSDK\Models\Shared\Error](../../Models/Shared/Error.md) | :heavy_minus_sign: | Default error response |
| `githubPublishingPRResponse` | [?\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubPublishingPRResponse](../../Models/Shared/GithubPublishingPRResponse.md) | :heavy_minus_sign: | OK |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11 changes: 11 additions & 0 deletions docs/Models/Shared/GithubPublishingPRResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GithubPublishingPRResponse

Open generation PRs pending publishing


## Fields

| Field | Type | Required | Description |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `generationPullRequest` | *?string* | :heavy_minus_sign: | N/A |
| `pendingVersion` | *?string* | :heavy_minus_sign: | N/A |
49 changes: 49 additions & 0 deletions docs/sdks/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,61 @@

### Available Operations

* [fetchPublishingPRs](#fetchpublishingprs)
* [githubCheckAccess](#githubcheckaccess)
* [githubCheckPublishingSecrets](#githubcheckpublishingsecrets)
* [githubConfigureTarget](#githubconfiguretarget)
* [githubStorePublishingSecrets](#githubstorepublishingsecrets)
* [githubTriggerAction](#githubtriggeraction)

## fetchPublishingPRs

### Example Usage

```php
<?php

declare(strict_types=1);

require 'vendor/autoload.php';

use \Speakeasy\SpeakeasyClientSDK;
use \Speakeasy\SpeakeasyClientSDK\Models\Shared;
use \Speakeasy\SpeakeasyClientSDK\Models\Operations;

$security = new Shared\Security();
$security->apiKey = '<YOUR_API_KEY_HERE>';

$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();

try {
$request = new Operations\FetchPublishingPRsRequest();
$request->generateGenLockId = '<value>';
$request->org = '<value>';
$request->repo = '<value>';;

$response = $sdk->github->fetchPublishingPRs($request);

if ($response->githubPublishingPRResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}
```

### Parameters

| Parameter | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `$request` | [\Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsRequest](../../Models/Operations/FetchPublishingPRsRequest.md) | :heavy_check_mark: | The request object to use for the request. |


### Response

**[?\Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsResponse](../../Models/Operations/FetchPublishingPRsResponse.md)**


## githubCheckAccess

### Example Usage
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
php:
version: 0.38.6
version: 0.38.7
flattenGlobalSecurity: true
imports:
option: openapi
Expand Down
3 changes: 2 additions & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"no_extra_blank_lines": false,
"no_blank_lines_after_class_opening": false,
"single_line_after_imports": false,
"no_trailing_whitespace_in_comment": false
"no_trailing_whitespace_in_comment": false,
"single_line_empty_body": false
}
}
40 changes: 40 additions & 0 deletions src/Github.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,46 @@ public function __construct(SDKConfiguration $sdkConfig)
$this->sdkConfiguration = $sdkConfig;
}

/**
* fetchPublishingPRs
*
* @param \Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsRequest $request
* @return \Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsResponse
*/
public function fetchPublishingPRs(
?\Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsRequest $request,
): \Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsResponse {
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/v1/github/publishing_prs');
$options = ['http_errors' => false];
$options = array_merge_recursive($options, Utils\Utils::getQueryParams(\Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsRequest::class, $request, $this->sdkConfiguration->globals));
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = $this->sdkConfiguration->userAgent;

$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
$contentType = $httpResponse->getHeader('Content-Type')[0] ?? '';

$statusCode = $httpResponse->getStatusCode();

$response = new \Speakeasy\SpeakeasyClientSDK\Models\Operations\FetchPublishingPRsResponse();
$response->statusCode = $statusCode;
$response->contentType = $contentType;
$response->rawResponse = $httpResponse;
if ($httpResponse->getStatusCode() === 200) {
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
$serializer = Utils\JSON::createSerializer();
$response->githubPublishingPRResponse = $serializer->deserialize((string) $httpResponse->getBody(), 'Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubPublishingPRResponse', 'json');
}
} else {
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
$serializer = Utils\JSON::createSerializer();
$response->error = $serializer->deserialize((string) $httpResponse->getBody(), 'Speakeasy\SpeakeasyClientSDK\Models\Shared\Error', 'json');
}
}

return $response;
}

/**
* githubCheckAccess
*
Expand Down
29 changes: 29 additions & 0 deletions src/Models/Operations/FetchPublishingPRsRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

/**
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

declare(strict_types=1);

namespace Speakeasy\SpeakeasyClientSDK\Models\Operations;

use Speakeasy\SpeakeasyClientSDK\Utils\SpeakeasyMetadata;
class FetchPublishingPRsRequest
{
#[SpeakeasyMetadata('queryParam:style=form,explode=true,name=generate_gen_lock_id')]
public string $generateGenLockId;

#[SpeakeasyMetadata('queryParam:style=form,explode=true,name=org')]
public string $org;

#[SpeakeasyMetadata('queryParam:style=form,explode=true,name=repo')]
public string $repo;

public function __construct()
{
$this->generateGenLockId = '';
$this->org = '';
$this->repo = '';
}
}
57 changes: 57 additions & 0 deletions src/Models/Operations/FetchPublishingPRsResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

/**
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

declare(strict_types=1);

namespace Speakeasy\SpeakeasyClientSDK\Models\Operations;


class FetchPublishingPRsResponse
{
/**
* HTTP response content type for this operation
*
* @var string $contentType
*/
public string $contentType;

/**
* Default error response
*
* @var ?\Speakeasy\SpeakeasyClientSDK\Models\Shared\Error $error
*/
public ?\Speakeasy\SpeakeasyClientSDK\Models\Shared\Error $error = null;

/**
* OK
*
* @var ?\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubPublishingPRResponse $githubPublishingPRResponse
*/
public ?\Speakeasy\SpeakeasyClientSDK\Models\Shared\GithubPublishingPRResponse $githubPublishingPRResponse = null;

/**
* HTTP response status code for this operation
*
* @var int $statusCode
*/
public int $statusCode;

/**
* Raw HTTP response; suitable for custom response parsing
*
* @var ?\Psr\Http\Message\ResponseInterface $rawResponse
*/
public ?\Psr\Http\Message\ResponseInterface $rawResponse;

public function __construct()
{
$this->contentType = '';
$this->error = null;
$this->githubPublishingPRResponse = null;
$this->statusCode = 0;
$this->rawResponse = null;
}
}
30 changes: 30 additions & 0 deletions src/Models/Shared/GithubPublishingPRResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/**
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

declare(strict_types=1);

namespace Speakeasy\SpeakeasyClientSDK\Models\Shared;


/** GithubPublishingPRResponse - Open generation PRs pending publishing */
class GithubPublishingPRResponse
{
#[\JMS\Serializer\Annotation\SerializedName('generation_pull_request')]
#[\JMS\Serializer\Annotation\Type('string')]
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
public ?string $generationPullRequest = null;

#[\JMS\Serializer\Annotation\SerializedName('pending_version')]
#[\JMS\Serializer\Annotation\Type('string')]
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
public ?string $pendingVersion = null;

public function __construct()
{
$this->generationPullRequest = null;
$this->pendingVersion = null;
}
}
6 changes: 3 additions & 3 deletions src/SDKConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class SDKConfiguration

public string $openapiDocVersion = '0.4.0 .';

public string $sdkVersion = '0.38.6';
public string $sdkVersion = '0.38.7';

public string $genVersion = '2.342.6';
public string $genVersion = '2.347.4';

public string $userAgent = 'speakeasy-sdk/php 0.38.6 2.342.6 0.4.0 . speakeasy-api/speakeasy-client-sdk-php';
public string $userAgent = 'speakeasy-sdk/php 0.38.7 2.347.4 0.4.0 . speakeasy-api/speakeasy-client-sdk-php';
/** @var array<string, array<string, array<string, mixed>>> */
public ?array $globals = [
'parameters' => [],
Expand Down

0 comments on commit e3274e0

Please sign in to comment.