Skip to content

Commit

Permalink
Deploying from phrase/openapi@7a1a0d91
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed May 31, 2024
1 parent 5ba958c commit 4194ef5
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 79 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,13 @@ 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
*RepoSyncsApi* | [**RepoSyncActivate**](docs/RepoSyncsApi.md#reposyncactivate) | **Post** /accounts/{account_id}/repo_syncs/{repo_sync_id}/activate | Activate a Repo Sync
*RepoSyncsApi* | [**RepoSyncDeactivate**](docs/RepoSyncsApi.md#reposyncdeactivate) | **Post** /accounts/{account_id}/repo_syncs/{repo_sync_id}/deactivate | Deactivate a Repo Sync
*RepoSyncsApi* | [**RepoSyncEvents**](docs/RepoSyncsApi.md#reposyncevents) | **Get** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events | Repository Syncs History
*RepoSyncsApi* | [**RepoSyncExport**](docs/RepoSyncsApi.md#reposyncexport) | **Post** /accounts/{account_id}/repo_syncs/{repo_sync_id}/export | Export to code repository
*RepoSyncsApi* | [**RepoSyncImport**](docs/RepoSyncsApi.md#reposyncimport) | **Post** /accounts/{account_id}/repo_syncs/{repo_sync_id}/import | Import from code repository
*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* | [**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
*RepoSyncsApi* | [**RepoSyncShow**](docs/RepoSyncsApi.md#reposyncshow) | **Get** /accounts/{account_id}/repo_syncs/{repo_sync_id} | Get a single Repo Sync
*RepoSyncsApi* | [**RepoSyncShow**](docs/RepoSyncsApi.md#reposyncshow) | **Get** /accounts/{account_id}/repo_syncs/{id} | Get a single Repo Sync
*ReportsApi* | [**ReportLocalesList**](docs/ReportsApi.md#reportlocaleslist) | **Get** /projects/{project_id}/report/locales | List Locale Reports
*ReportsApi* | [**ReportShow**](docs/ReportsApi.md#reportshow) | **Get** /projects/{project_id}/report | Get Project Report
*ScreenshotMarkersApi* | [**ScreenshotMarkerCreate**](docs/ScreenshotMarkersApi.md#screenshotmarkercreate) | **Post** /projects/{project_id}/screenshots/{screenshot_id}/markers | Create a screenshot marker
Expand Down
53 changes: 22 additions & 31 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21626,7 +21626,7 @@ paths:
--account_id abcd1234 \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/repo_syncs/{repo_sync_id}:
/accounts/{account_id}/repo_syncs/{id}:
get:
description: Shows a single Repo Sync setting.
operationId: repo_sync/show
Expand All @@ -21647,10 +21647,10 @@ paths:
schema:
type: string
style: simple
- description: Repo Sync ID
- description: ID
explode: false
in: path
name: repo_sync_id
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -21711,7 +21711,7 @@ paths:
--account_id abcd1234 \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/repo_syncs/{repo_sync_id}/export:
/accounts/{account_id}/repo_syncs/{id}/export:
post:
description: |-
> Beta: this feature will change in the future.
Expand All @@ -21738,10 +21738,10 @@ paths:
schema:
type: string
style: simple
- description: Repo Sync ID
- description: ID
explode: false
in: path
name: repo_sync_id
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -21800,10 +21800,10 @@ paths:
- lang: CLI v2
source: |-
phrase repo_sync export \
--repo_sync_id <repo_sync_id> \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/repo_syncs/{repo_sync_id}/import:
/accounts/{account_id}/repo_syncs/{id}/import:
post:
description: |-
> Beta: this feature will change in the future.
Expand All @@ -21830,10 +21830,10 @@ paths:
schema:
type: string
style: simple
- description: Repo Sync ID
- description: ID
explode: false
in: path
name: repo_sync_id
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -21892,10 +21892,10 @@ paths:
- lang: CLI v2
source: |-
phrase repo_sync import \
--repo_sync_id <repo_sync_id> \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/repo_syncs/{repo_sync_id}/events:
/accounts/{account_id}/repo_syncs/{id}/events:
get:
description: |-
Get the history of a single Repo Sync. The history includes all imports and exports
Expand All @@ -21918,10 +21918,10 @@ paths:
schema:
type: string
style: simple
- description: Repo Sync ID
- description: ID
explode: false
in: path
name: repo_sync_id
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -21988,7 +21988,7 @@ paths:
--account_id abcd1234 \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/repo_syncs/{repo_sync_id}/deactivate:
/accounts/{account_id}/repo_syncs/{id}/deactivate:
post:
description: |-
Deactivate an active Repo Sync. Import and export can't be performed on deactivated syncs
Expand All @@ -22011,10 +22011,10 @@ paths:
schema:
type: string
style: simple
- description: Repo Sync ID
- description: ID
explode: false
in: path
name: repo_sync_id
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -22073,10 +22073,10 @@ paths:
- lang: CLI v2
source: |-
phrase repo_sync deactivate \
--repo_sync_id <repo_sync_id> \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/repo_syncs/{repo_sync_id}/activate:
/accounts/{account_id}/repo_syncs/{id}/activate:
post:
description: |-
Activate a deactivated Repo Sync. Active syncs can be used to import and export translations,
Expand All @@ -22099,10 +22099,10 @@ paths:
schema:
type: string
style: simple
- description: Repo Sync ID
- description: ID
explode: false
in: path
name: repo_sync_id
name: id
required: true
schema:
type: string
Expand Down Expand Up @@ -22161,7 +22161,7 @@ paths:
- lang: CLI v2
source: |-
phrase repo_sync activate \
--repo_sync_id <repo_sync_id> \
--id <repo_sync_id> \
--access_token <token>
x-cli-version: "2.24"
/accounts/{account_id}/spaces:
Expand Down Expand Up @@ -28374,15 +28374,6 @@ components:
schema:
type: string
style: form
repo_sync_id:
description: Repo Sync ID
explode: false
in: path
name: repo_sync_id
required: true
schema:
type: string
style: simple
space_id:
description: Space ID
explode: false
Expand Down
48 changes: 24 additions & 24 deletions api_repo_syncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ RepoSyncActivate Activate a Repo Sync
Activate a deactivated Repo Sync. Active syncs can be used to import and export translations, and imports to Phrase are automatically triggered by pushes to the repository, if configured.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId Account ID
- @param repoSyncId Repo Sync ID
- @param id ID
- @param optional nil or *RepoSyncActivateOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
@return RepoSync
*/
func (a *RepoSyncsApiService) RepoSyncActivate(ctx _context.Context, accountId string, repoSyncId string, localVarOptionals *RepoSyncActivateOpts) (RepoSync, *APIResponse, error) {
func (a *RepoSyncsApiService) RepoSyncActivate(ctx _context.Context, accountId string, id string, localVarOptionals *RepoSyncActivateOpts) (RepoSync, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
Expand All @@ -45,10 +45,10 @@ func (a *RepoSyncsApiService) RepoSyncActivate(ctx _context.Context, accountId s
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{repo_sync_id}/activate"
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{id}/activate"
localVarPath = strings.Replace(localVarPath, "{"+"account_id"+"}", _neturl.QueryEscape(parameterToString(accountId, "")), -1)

localVarPath = strings.Replace(localVarPath, "{"+"repo_sync_id"+"}", _neturl.QueryEscape(parameterToString(repoSyncId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.QueryEscape(parameterToString(id, "")), -1)

localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
Expand Down Expand Up @@ -132,13 +132,13 @@ RepoSyncDeactivate Deactivate a Repo Sync
Deactivate an active Repo Sync. Import and export can&#39;t be performed on deactivated syncs and the pushes to the repository won&#39;t trigger the import to Phrase.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId Account ID
- @param repoSyncId Repo Sync ID
- @param id ID
- @param optional nil or *RepoSyncDeactivateOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
@return RepoSync
*/
func (a *RepoSyncsApiService) RepoSyncDeactivate(ctx _context.Context, accountId string, repoSyncId string, localVarOptionals *RepoSyncDeactivateOpts) (RepoSync, *APIResponse, error) {
func (a *RepoSyncsApiService) RepoSyncDeactivate(ctx _context.Context, accountId string, id string, localVarOptionals *RepoSyncDeactivateOpts) (RepoSync, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
Expand All @@ -149,10 +149,10 @@ func (a *RepoSyncsApiService) RepoSyncDeactivate(ctx _context.Context, accountId
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{repo_sync_id}/deactivate"
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{id}/deactivate"
localVarPath = strings.Replace(localVarPath, "{"+"account_id"+"}", _neturl.QueryEscape(parameterToString(accountId, "")), -1)

localVarPath = strings.Replace(localVarPath, "{"+"repo_sync_id"+"}", _neturl.QueryEscape(parameterToString(repoSyncId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.QueryEscape(parameterToString(id, "")), -1)

localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
Expand Down Expand Up @@ -236,13 +236,13 @@ RepoSyncEvents Repository Syncs History
Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId Account ID
- @param repoSyncId Repo Sync ID
- @param id ID
- @param optional nil or *RepoSyncEventsOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
@return []RepoSyncEvent
*/
func (a *RepoSyncsApiService) RepoSyncEvents(ctx _context.Context, accountId string, repoSyncId string, localVarOptionals *RepoSyncEventsOpts) ([]RepoSyncEvent, *APIResponse, error) {
func (a *RepoSyncsApiService) RepoSyncEvents(ctx _context.Context, accountId string, id string, localVarOptionals *RepoSyncEventsOpts) ([]RepoSyncEvent, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
Expand All @@ -253,10 +253,10 @@ func (a *RepoSyncsApiService) RepoSyncEvents(ctx _context.Context, accountId str
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{repo_sync_id}/events"
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{id}/events"
localVarPath = strings.Replace(localVarPath, "{"+"account_id"+"}", _neturl.QueryEscape(parameterToString(accountId, "")), -1)

localVarPath = strings.Replace(localVarPath, "{"+"repo_sync_id"+"}", _neturl.QueryEscape(parameterToString(repoSyncId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.QueryEscape(parameterToString(id, "")), -1)

localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
Expand Down Expand Up @@ -340,13 +340,13 @@ RepoSyncExport Export to code repository
&gt; Beta: this feature will change in the future. Export translations from Phrase Strings to repository provider according to the .phrase.yml file within the code repository. *Export is done asynchronously and may take several seconds depending on the project size.*
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId Account ID
- @param repoSyncId Repo Sync ID
- @param id ID
- @param optional nil or *RepoSyncExportOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
@return RepoSyncExport
*/
func (a *RepoSyncsApiService) RepoSyncExport(ctx _context.Context, accountId string, repoSyncId string, localVarOptionals *RepoSyncExportOpts) (RepoSyncExport, *APIResponse, error) {
func (a *RepoSyncsApiService) RepoSyncExport(ctx _context.Context, accountId string, id string, localVarOptionals *RepoSyncExportOpts) (RepoSyncExport, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
Expand All @@ -357,10 +357,10 @@ func (a *RepoSyncsApiService) RepoSyncExport(ctx _context.Context, accountId str
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{repo_sync_id}/export"
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{id}/export"
localVarPath = strings.Replace(localVarPath, "{"+"account_id"+"}", _neturl.QueryEscape(parameterToString(accountId, "")), -1)

localVarPath = strings.Replace(localVarPath, "{"+"repo_sync_id"+"}", _neturl.QueryEscape(parameterToString(repoSyncId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.QueryEscape(parameterToString(id, "")), -1)

localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
Expand Down Expand Up @@ -444,13 +444,13 @@ RepoSyncImport Import from code repository
&gt; Beta: this feature will change in the future. Import translations from repository provider to Phrase Strings according to the .phrase.yml file within the code repository. _Import is done asynchronously and may take several seconds depending on the project size._
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId Account ID
- @param repoSyncId Repo Sync ID
- @param id ID
- @param optional nil or *RepoSyncImportOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
@return RepoSyncImport
*/
func (a *RepoSyncsApiService) RepoSyncImport(ctx _context.Context, accountId string, repoSyncId string, localVarOptionals *RepoSyncImportOpts) (RepoSyncImport, *APIResponse, error) {
func (a *RepoSyncsApiService) RepoSyncImport(ctx _context.Context, accountId string, id string, localVarOptionals *RepoSyncImportOpts) (RepoSyncImport, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
Expand All @@ -461,10 +461,10 @@ func (a *RepoSyncsApiService) RepoSyncImport(ctx _context.Context, accountId str
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{repo_sync_id}/import"
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{id}/import"
localVarPath = strings.Replace(localVarPath, "{"+"account_id"+"}", _neturl.QueryEscape(parameterToString(accountId, "")), -1)

localVarPath = strings.Replace(localVarPath, "{"+"repo_sync_id"+"}", _neturl.QueryEscape(parameterToString(repoSyncId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.QueryEscape(parameterToString(id, "")), -1)

localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
Expand Down Expand Up @@ -649,13 +649,13 @@ RepoSyncShow Get a single Repo Sync
Shows a single Repo Sync setting.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId Account ID
- @param repoSyncId Repo Sync ID
- @param id ID
- @param optional nil or *RepoSyncShowOpts - Optional Parameters:
- @param "XPhraseAppOTP" (optional.String) - Two-Factor-Authentication token (optional)
@return RepoSync
*/
func (a *RepoSyncsApiService) RepoSyncShow(ctx _context.Context, accountId string, repoSyncId string, localVarOptionals *RepoSyncShowOpts) (RepoSync, *APIResponse, error) {
func (a *RepoSyncsApiService) RepoSyncShow(ctx _context.Context, accountId string, id string, localVarOptionals *RepoSyncShowOpts) (RepoSync, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
Expand All @@ -666,10 +666,10 @@ func (a *RepoSyncsApiService) RepoSyncShow(ctx _context.Context, accountId strin
)

// create path and map variables
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{repo_sync_id}"
localVarPath := a.client.cfg.BasePath + "/accounts/{account_id}/repo_syncs/{id}"
localVarPath = strings.Replace(localVarPath, "{"+"account_id"+"}", _neturl.QueryEscape(parameterToString(accountId, "")), -1)

localVarPath = strings.Replace(localVarPath, "{"+"repo_sync_id"+"}", _neturl.QueryEscape(parameterToString(repoSyncId, "")), -1)
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.QueryEscape(parameterToString(id, "")), -1)

localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
Expand Down
Loading

0 comments on commit 4194ef5

Please sign in to comment.