Skip to content

Commit

Permalink
Deploying from phrase/openapi@e1d9cfb2
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Jul 2, 2024
1 parent 7fe8ac3 commit 9ba5a4f
Show file tree
Hide file tree
Showing 14 changed files with 462 additions and 836 deletions.
6 changes: 0 additions & 6 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ docs/Model/RepliesListParameters.md
docs/Model/RepoSync.md
docs/Model/RepoSyncEvent.md
docs/Model/RepoSyncEventErrorsInner.md
docs/Model/RepoSyncExport.md
docs/Model/RepoSyncImport.md
docs/Model/Screenshot.md
docs/Model/ScreenshotMarker.md
docs/Model/ScreenshotMarkerCreateParameters.md
Expand Down Expand Up @@ -507,8 +505,6 @@ lib/Model/RepliesListParameters.php
lib/Model/RepoSync.php
lib/Model/RepoSyncEvent.php
lib/Model/RepoSyncEventErrorsInner.php
lib/Model/RepoSyncExport.php
lib/Model/RepoSyncImport.php
lib/Model/Screenshot.php
lib/Model/ScreenshotMarker.php
lib/Model/ScreenshotMarkerCreateParameters.php
Expand Down Expand Up @@ -786,8 +782,6 @@ test/Model/ReleaseUpdateParametersTest.php
test/Model/RepliesListParametersTest.php
test/Model/RepoSyncEventErrorsInnerTest.php
test/Model/RepoSyncEventTest.php
test/Model/RepoSyncExportTest.php
test/Model/RepoSyncImportTest.php
test/Model/RepoSyncTest.php
test/Model/ScreenshotMarkerCreateParametersTest.php
test/Model/ScreenshotMarkerTest.php
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ Class | Method | HTTP request | Description
*ReleasesApi* | [**releasesList**](docs/Api/ReleasesApi.md#releaseslist) | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases | List releases
*RepoSyncsApi* | [**repoSyncActivate**](docs/Api/RepoSyncsApi.md#reposyncactivate) | **POST** /accounts/{account_id}/repo_syncs/{id}/activate | Activate a Repo Sync
*RepoSyncsApi* | [**repoSyncDeactivate**](docs/Api/RepoSyncsApi.md#reposyncdeactivate) | **POST** /accounts/{account_id}/repo_syncs/{id}/deactivate | Deactivate a Repo Sync
*RepoSyncsApi* | [**repoSyncEventShow**](docs/Api/RepoSyncsApi.md#reposynceventshow) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id} | Get a single Repo Sync Event
*RepoSyncsApi* | [**repoSyncEvents**](docs/Api/RepoSyncsApi.md#reposyncevents) | **GET** /accounts/{account_id}/repo_syncs/{id}/events | Repository Syncs History
*RepoSyncsApi* | [**repoSyncExport**](docs/Api/RepoSyncsApi.md#reposyncexport) | **POST** /accounts/{account_id}/repo_syncs/{id}/export | Export to code repository
*RepoSyncsApi* | [**repoSyncImport**](docs/Api/RepoSyncsApi.md#reposyncimport) | **POST** /accounts/{account_id}/repo_syncs/{id}/import | Import from code repository
Expand Down Expand Up @@ -590,8 +591,6 @@ Class | Method | HTTP request | Description
- [RepoSync](docs/Model/RepoSync.md)
- [RepoSyncEvent](docs/Model/RepoSyncEvent.md)
- [RepoSyncEventErrorsInner](docs/Model/RepoSyncEventErrorsInner.md)
- [RepoSyncExport](docs/Model/RepoSyncExport.md)
- [RepoSyncImport](docs/Model/RepoSyncImport.md)
- [Screenshot](docs/Model/Screenshot.md)
- [ScreenshotMarker](docs/Model/ScreenshotMarker.md)
- [ScreenshotMarkerCreateParameters](docs/Model/ScreenshotMarkerCreateParameters.md)
Expand Down
74 changes: 70 additions & 4 deletions docs/Api/RepoSyncsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**repoSyncActivate**](RepoSyncsApi.md#repoSyncActivate) | **POST** /accounts/{account_id}/repo_syncs/{id}/activate | Activate a Repo Sync
[**repoSyncDeactivate**](RepoSyncsApi.md#repoSyncDeactivate) | **POST** /accounts/{account_id}/repo_syncs/{id}/deactivate | Deactivate a Repo Sync
[**repoSyncEventShow**](RepoSyncsApi.md#repoSyncEventShow) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id} | Get a single Repo Sync Event
[**repoSyncEvents**](RepoSyncsApi.md#repoSyncEvents) | **GET** /accounts/{account_id}/repo_syncs/{id}/events | Repository Syncs History
[**repoSyncExport**](RepoSyncsApi.md#repoSyncExport) | **POST** /accounts/{account_id}/repo_syncs/{id}/export | Export to code repository
[**repoSyncImport**](RepoSyncsApi.md#repoSyncImport) | **POST** /accounts/{account_id}/repo_syncs/{id}/import | Import from code repository
Expand Down Expand Up @@ -140,6 +141,71 @@ Name | Type | Description | Notes
[[Back to README]](../../README.md)


## repoSyncEventShow

> \Phrase\Model\RepoSyncEvent repoSyncEventShow($account_id, $repo_sync_id, $id, $x_phrase_app_otp)
Get a single Repo Sync Event

Shows a single Repo Sync event.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$config = Phrase\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
$config = Phrase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'token');

$apiInstance = new Phrase\Api\RepoSyncsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$account_id = 'account_id_example'; // string | Account ID
$repo_sync_id = 'repo_sync_id_example'; // string | Repo Sync ID
$id = 'id_example'; // string | ID
$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)

try {
$result = $apiInstance->repoSyncEventShow($account_id, $repo_sync_id, $id, $x_phrase_app_otp);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RepoSyncsApi->repoSyncEventShow: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_id** | **string**| Account ID |
**repo_sync_id** | **string**| Repo Sync ID |
**id** | **string**| ID |
**x_phrase_app_otp** | **string**| Two-Factor-Authentication token (optional) | [optional]

### Return type

[**\Phrase\Model\RepoSyncEvent**](../Model/RepoSyncEvent.md)

### Authorization

[Basic](../../README.md#Basic), [Token](../../README.md#Token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../../README.md#documentation-for-models)
[[Back to README]](../../README.md)


## repoSyncEvents

> \Phrase\Model\RepoSyncEvent[] repoSyncEvents($account_id, $id, $x_phrase_app_otp)
Expand Down Expand Up @@ -205,7 +271,7 @@ Name | Type | Description | Notes

## repoSyncExport

> \Phrase\Model\RepoSyncExport repoSyncExport($account_id, $id, $x_phrase_app_otp)
> \Phrase\Model\RepoSyncEvent repoSyncExport($account_id, $id, $x_phrase_app_otp)
Export to code repository

Expand Down Expand Up @@ -250,7 +316,7 @@ Name | Type | Description | Notes

### Return type

[**\Phrase\Model\RepoSyncExport**](../Model/RepoSyncExport.md)
[**\Phrase\Model\RepoSyncEvent**](../Model/RepoSyncEvent.md)

### Authorization

Expand All @@ -268,7 +334,7 @@ Name | Type | Description | Notes

## repoSyncImport

> \Phrase\Model\RepoSyncImport repoSyncImport($account_id, $id, $x_phrase_app_otp)
> \Phrase\Model\RepoSyncEvent repoSyncImport($account_id, $id, $x_phrase_app_otp)
Import from code repository

Expand Down Expand Up @@ -313,7 +379,7 @@ Name | Type | Description | Notes

### Return type

[**\Phrase\Model\RepoSyncImport**](../Model/RepoSyncImport.md)
[**\Phrase\Model\RepoSyncEvent**](../Model/RepoSyncEvent.md)

### Authorization

Expand Down
1 change: 1 addition & 0 deletions docs/Model/RepoSyncEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **string** | | [optional]
**event_type** | **string** | | [optional]
**created_at** | **\DateTime** | | [optional]
**status** | **string** | | [optional]
Expand Down
11 changes: 0 additions & 11 deletions docs/Model/RepoSyncExport.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/Model/RepoSyncImport.md

This file was deleted.

Loading

0 comments on commit 9ba5a4f

Please sign in to comment.