Skip to content

Commit

Permalink
Deploying from phrase/openapi@033be100
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Dec 20, 2024
1 parent 851b28e commit 5faa764
Show file tree
Hide file tree
Showing 229 changed files with 856 additions and 755 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ docs/RepliesListParameters.md
docs/RepoSync.md
docs/RepoSyncEvent.md
docs/RepoSyncEventErrorsInner.md
docs/RepoSyncEventsApi.md
docs/RepoSyncsApi.md
docs/ReportsApi.md
docs/Screenshot.md
Expand Down Expand Up @@ -330,6 +331,7 @@ src/main/java/com/phrase/client/api/ProjectsApi.java
src/main/java/com/phrase/client/api/QualityPerformanceScoreApi.java
src/main/java/com/phrase/client/api/ReleaseTriggersApi.java
src/main/java/com/phrase/client/api/ReleasesApi.java
src/main/java/com/phrase/client/api/RepoSyncEventsApi.java
src/main/java/com/phrase/client/api/RepoSyncsApi.java
src/main/java/com/phrase/client/api/ReportsApi.java
src/main/java/com/phrase/client/api/ScreenshotMarkersApi.java
Expand Down Expand Up @@ -599,6 +601,7 @@ src/test/java/com/phrase/client/api/ProjectsApiTest.java
src/test/java/com/phrase/client/api/QualityPerformanceScoreApiTest.java
src/test/java/com/phrase/client/api/ReleaseTriggersApiTest.java
src/test/java/com/phrase/client/api/ReleasesApiTest.java
src/test/java/com/phrase/client/api/RepoSyncEventsApiTest.java
src/test/java/com/phrase/client/api/RepoSyncsApiTest.java
src/test/java/com/phrase/client/api/ReportsApiTest.java
src/test/java/com/phrase/client/api/ScreenshotMarkersApiTest.java
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ Class | Method | HTTP request | Description
*ReleasesApi* | [**releaseShow**](docs/ReleasesApi.md#releaseShow) | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Get a single release
*ReleasesApi* | [**releaseUpdate**](docs/ReleasesApi.md#releaseUpdate) | **PATCH** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Update a release
*ReleasesApi* | [**releasesList**](docs/ReleasesApi.md#releasesList) | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases | List releases
*RepoSyncEventsApi* | [**repoSyncEventList**](docs/RepoSyncEventsApi.md#repoSyncEventList) | **GET** /accounts/{account_id}/repo_syncs/{id}/events | Repository Syncs History
*RepoSyncEventsApi* | [**repoSyncEventShow**](docs/RepoSyncEventsApi.md#repoSyncEventShow) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id} | Get a single Repo Sync Event
*RepoSyncsApi* | [**repoSyncActivate**](docs/RepoSyncsApi.md#repoSyncActivate) | **POST** /accounts/{account_id}/repo_syncs/{id}/activate | Activate a Repo Sync
*RepoSyncsApi* | [**repoSyncDeactivate**](docs/RepoSyncsApi.md#repoSyncDeactivate) | **POST** /accounts/{account_id}/repo_syncs/{id}/deactivate | Deactivate a Repo Sync
*RepoSyncsApi* | [**repoSyncEventShow**](docs/RepoSyncsApi.md#repoSyncEventShow) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id} | Get a single Repo Sync Event
*RepoSyncsApi* | [**repoSyncEvents**](docs/RepoSyncsApi.md#repoSyncEvents) | **GET** /accounts/{account_id}/repo_syncs/{id}/events | Repository Syncs History
*RepoSyncsApi* | [**repoSyncExport**](docs/RepoSyncsApi.md#repoSyncExport) | **POST** /accounts/{account_id}/repo_syncs/{id}/export | Export to code repository
*RepoSyncsApi* | [**repoSyncImport**](docs/RepoSyncsApi.md#repoSyncImport) | **POST** /accounts/{account_id}/repo_syncs/{id}/import | Import from code repository
*RepoSyncsApi* | [**repoSyncList**](docs/RepoSyncsApi.md#repoSyncList) | **GET** /accounts/{account_id}/repo_syncs | Get Repo Syncs
Expand Down
26 changes: 13 additions & 13 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21457,7 +21457,7 @@ paths:
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase repo_sync list \
phrase repo_syncs list \
--account_id abcd1234 \
--access_token <token>
x-cli-version: "2.24"
Expand Down Expand Up @@ -21542,7 +21542,7 @@ paths:
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase repo_sync show \
phrase repo_syncs show \
--id <id> \
--account_id abcd1234 \
--access_token <token>
Expand Down Expand Up @@ -21634,7 +21634,7 @@ paths:
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase repo_sync export \
phrase repo_syncs export \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
Expand Down Expand Up @@ -21725,7 +21725,7 @@ paths:
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase repo_sync import \
phrase repo_syncs import \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
Expand All @@ -21735,7 +21735,7 @@ paths:
description: |-
Get the history of a single Repo Sync. The history includes all imports and exports
performed by the Repo Sync.
operationId: repo_sync/events
operationId: repo_sync_event/list
parameters:
- description: Two-Factor-Authentication token (optional)
explode: false
Expand Down Expand Up @@ -21810,15 +21810,15 @@ paths:
$ref: '#/components/headers/X-Rate-Limit-Reset'
summary: Repository Syncs History
tags:
- Repo Syncs
- Repo Sync Events
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/56ef78/events"\
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase repo_sync events \
phrase repo_sync_events list \
--id <id> \
--account_id abcd1234 \
--access_token <token>
Expand Down Expand Up @@ -21904,15 +21904,15 @@ paths:
$ref: '#/components/headers/X-Rate-Limit-Reset'
summary: Get a single Repo Sync Event
tags:
- Repo Syncs
- Repo Sync Events
x-code-samples:
- lang: Curl
source: |-
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/56ef78/events/78dfgj"\
-u USERNAME_OR_ACCESS_TOKEN
- lang: CLI v2
source: |-
phrase repo_sync_event show \
phrase repo_sync_events show \
--id <id> \
--repo_sync_id <repo_sync_id> \
--account_id abcd1234 \
Expand Down Expand Up @@ -22003,7 +22003,7 @@ paths:
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase repo_sync deactivate \
phrase repo_syncs deactivate \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
Expand Down Expand Up @@ -22092,7 +22092,7 @@ paths:
-H 'Content-Type: application/json'
- lang: CLI v2
source: |-
phrase repo_sync activate \
phrase repo_syncs activate \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
Expand Down Expand Up @@ -31479,7 +31479,7 @@ components:
type: object
repo_sync_event:
example:
event_type: import
type: import
created_at: 2015-01-28T09:52:53Z
status: failure
auto_import: true
Expand All @@ -31489,7 +31489,7 @@ components:
properties:
id:
type: string
event_type:
type:
enum:
- import
- export
Expand Down
4 changes: 2 additions & 2 deletions docs/RepoSyncEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | | [optional]
**eventType** | [**EventTypeEnum**](#EventTypeEnum) | | [optional]
**type** | [**TypeEnum**](#TypeEnum) | | [optional]
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**status** | [**StatusEnum**](#StatusEnum) | | [optional]
**pullRequestUrl** | **String** | URL of the pull request created on export | [optional]
Expand All @@ -16,7 +16,7 @@ Name | Type | Description | Notes



## Enum: EventTypeEnum
## Enum: TypeEnum

Name | Value
---- | -----
Expand Down
172 changes: 172 additions & 0 deletions docs/RepoSyncEventsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# RepoSyncEventsApi

All URIs are relative to *https://api.phrase.com/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**repoSyncEventList**](RepoSyncEventsApi.md#repoSyncEventList) | **GET** /accounts/{account_id}/repo_syncs/{id}/events | Repository Syncs History
[**repoSyncEventShow**](RepoSyncEventsApi.md#repoSyncEventShow) | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id} | Get a single Repo Sync Event


<a name="repoSyncEventList"></a>
# **repoSyncEventList**
> List&lt;RepoSyncEvent&gt; repoSyncEventList(accountId, id, xPhraseAppOTP)
Repository Syncs History

Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.

### Example
```java
// Import classes:
import com.phrase.client.ApiClient;
import com.phrase.client.ApiException;
import com.phrase.client.Configuration;
import com.phrase.client.auth.*;
import com.phrase.client.models.*;
import com.phrase.client.api.RepoSyncEventsApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.phrase.com/v2");

// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
Token.setApiKeyPrefix("token");

RepoSyncEventsApi apiInstance = new RepoSyncEventsApi(defaultClient);
String accountId = "accountId_example"; // String | Account ID
String id = "id_example"; // String | ID
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
try {
List<RepoSyncEvent> result = apiInstance.repoSyncEventList(accountId, id, xPhraseAppOTP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepoSyncEventsApi#repoSyncEventList");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| Account ID |
**id** | **String**| ID |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]

### Return type

[**List&lt;RepoSyncEvent&gt;**](RepoSyncEvent.md)

### Authorization

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

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful response | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> * Link - <br> * Pagination - <br> |
**400** | Bad request | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**404** | Not Found | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**429** | Rate Limiting | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |

<a name="repoSyncEventShow"></a>
# **repoSyncEventShow**
> RepoSyncEvent repoSyncEventShow(accountId, repoSyncId, id, xPhraseAppOTP)
Get a single Repo Sync Event

Shows a single Repo Sync event.

### Example
```java
// Import classes:
import com.phrase.client.ApiClient;
import com.phrase.client.ApiException;
import com.phrase.client.Configuration;
import com.phrase.client.auth.*;
import com.phrase.client.models.*;
import com.phrase.client.api.RepoSyncEventsApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.phrase.com/v2");

// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
Token.setApiKeyPrefix("token");

RepoSyncEventsApi apiInstance = new RepoSyncEventsApi(defaultClient);
String accountId = "accountId_example"; // String | Account ID
String repoSyncId = "repoSyncId_example"; // String | Repo Sync ID
String id = "id_example"; // String | ID
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
try {
RepoSyncEvent result = apiInstance.repoSyncEventShow(accountId, repoSyncId, id, xPhraseAppOTP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepoSyncEventsApi#repoSyncEventShow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **String**| Account ID |
**repoSyncId** | **String**| Repo Sync ID |
**id** | **String**| ID |
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]

### Return type

[**RepoSyncEvent**](RepoSyncEvent.md)

### Authorization

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

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**400** | Bad request | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**404** | Not Found | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
**429** | Rate Limiting | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |

Loading

0 comments on commit 5faa764

Please sign in to comment.