Skip to content

Commit

Permalink
Deploying from phrase/openapi@b4e12d04
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Feb 7, 2024
1 parent fe4f685 commit 7a52d70
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3433,6 +3433,15 @@ paths:
schema:
type: integer
style: form
- description: query to find a property by name
example: character_name
explode: true
in: query
name: q
required: false
schema:
type: string
style: form
- description: "Sort criteria. Can be one of: name, data_type, created_at."
example: updated_at
explode: true
Expand Down
5 changes: 5 additions & 0 deletions api_custom_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ type CustomMetadataPropertiesListOpts struct {
ProjectId optional.String `json:"project_id,omitempty"`
Page optional.Int32 `json:"page,omitempty"`
PerPage optional.Int32 `json:"per_page,omitempty"`
Q optional.String `json:"q,omitempty"`
Sort optional.String `json:"sort,omitempty"`
Order optional.String `json:"order,omitempty"`
}
Expand All @@ -134,6 +135,7 @@ List all custom metadata properties for an account. This endpoint is only avail
- @param "ProjectId" (optional.String) - id of project that the properties belong to
- @param "Page" (optional.Int32) - Page number
- @param "PerPage" (optional.Int32) - Limit on the number of objects to be returned, between 1 and 100. 25 by default
- @param "Q" (optional.String) - query to find a property by name
- @param "Sort" (optional.String) - Sort criteria. Can be one of: name, data_type, created_at.
- @param "Order" (optional.String) - Order direction. Can be one of: asc, desc.
Expand Down Expand Up @@ -171,6 +173,9 @@ func (a *CustomMetadataApiService) CustomMetadataPropertiesList(ctx _context.Con
if localVarOptionals != nil && localVarOptionals.PerPage.IsSet() {
localVarQueryParams.Add("per_page", parameterToString(localVarOptionals.PerPage.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.Q.IsSet() {
localVarQueryParams.Add("q", parameterToString(localVarOptionals.Q.Value(), ""))
}
if localVarOptionals != nil && localVarOptionals.Sort.IsSet() {
localVarQueryParams.Add("sort", parameterToString(localVarOptionals.Sort.Value(), ""))
}
Expand Down
1 change: 1 addition & 0 deletions docs/CustomMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Name | Type | Description | Notes
**projectId** | **optional.String**| id of project that the properties belong to |
**page** | **optional.Int32**| Page number |
**perPage** | **optional.Int32**| Limit on the number of objects to be returned, between 1 and 100. 25 by default |
**q** | **optional.String**| query to find a property by name |
**sort** | **optional.String**| Sort criteria. Can be one of: name, data_type, created_at. |
**order** | **optional.String**| Order direction. Can be one of: asc, desc. |

Expand Down

0 comments on commit 7a52d70

Please sign in to comment.