Versions in this module Expand all Collapse all v1 v1.0.1 Feb 22, 2023 Changes in this version + var ContextAPIKeys = contextKey("apiKeys") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextHttpSignatureAuth = contextKey("httpsignature") + var ContextOAuth2 = contextKey("token") + var ContextOperationServerIndices = contextKey("serverOperationIndices") + var ContextOperationServerVariables = contextKey("serverOperationVariables") + var ContextServerIndex = contextKey("serverIndex") + var ContextServerVariables = contextKey("serverVariables") + func CacheExpires(r *http.Response) time.Time + func PtrBool(v bool) *bool + func PtrFloat32(v float32) *float32 + func PtrFloat64(v float64) *float64 + func PtrInt(v int) *int + func PtrInt32(v int32) *int32 + func PtrInt64(v int64) *int64 + func PtrString(v string) *string + func PtrTime(v time.Time) *time.Time + type APIClient struct + BranchAPIApi *BranchAPIApiService + DownloadAPIApi *DownloadAPIApiService + TranslationStatusAPIApi *TranslationStatusAPIApiService + UploadAPIApi *UploadAPIApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type ApiCreateBranchRequest struct + ApiService *BranchAPIApiService + func (r ApiCreateBranchRequest) Execute() (*http.Response, error) + func (r ApiCreateBranchRequest) SourceBranch(sourceBranch string) ApiCreateBranchRequest + type ApiGetLocalizationFileRequest struct + ApiService *DownloadAPIApiService + func (r ApiGetLocalizationFileRequest) Branch(branch string) ApiGetLocalizationFileRequest + func (r ApiGetLocalizationFileRequest) ExcludeTags(excludeTags []string) ApiGetLocalizationFileRequest + func (r ApiGetLocalizationFileRequest) Execute() (*http.Response, error) + func (r ApiGetLocalizationFileRequest) ExportEmptyAs(exportEmptyAs string) ApiGetLocalizationFileRequest + func (r ApiGetLocalizationFileRequest) IncludeTags(includeTags []string) ApiGetLocalizationFileRequest + func (r ApiGetLocalizationFileRequest) JavaPropertiesEncoding(javaPropertiesEncoding string) ApiGetLocalizationFileRequest + func (r ApiGetLocalizationFileRequest) LangCodes(langCodes string) ApiGetLocalizationFileRequest + func (r ApiGetLocalizationFileRequest) Type_(type_ string) ApiGetLocalizationFileRequest + type ApiGetTranslationStatusRequest struct + ApiService *TranslationStatusAPIApiService + func (r ApiGetTranslationStatusRequest) Branch(branch string) ApiGetTranslationStatusRequest + func (r ApiGetTranslationStatusRequest) Execute() (*ProjectStatusDto, *http.Response, error) + type ApiImportLocalizationFileRequest struct + ApiService *UploadAPIApiService + func (r ApiImportLocalizationFileRequest) Branch(branch string) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) Execute() (*http.Response, error) + func (r ApiImportLocalizationFileRequest) File(file *os.File) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) LangCode(langCode string) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) Overwrite(overwrite bool) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) Reviewed(reviewed bool) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) TagAdded(tagAdded []string) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) TagRemoved(tagRemoved []string) ApiImportLocalizationFileRequest + func (r ApiImportLocalizationFileRequest) TagUpdated(tagUpdated []string) ApiImportLocalizationFileRequest + type BasicAuth struct + Password string + UserName string + type BranchAPIApiService service + func (a *BranchAPIApiService) CreateBranch(ctx context.Context, projectId string, branch string) ApiCreateBranchRequest + func (a *BranchAPIApiService) CreateBranchExecute(r ApiCreateBranchRequest) (*http.Response, error) + type Configuration struct + Debug bool + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + OperationServers map[string]ServerConfigurations + Scheme string + Servers ServerConfigurations + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) + func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) + type DownloadAPIApiService service + func (a *DownloadAPIApiService) GetLocalizationFile(ctx context.Context, projectId string) ApiGetLocalizationFileRequest + func (a *DownloadAPIApiService) GetLocalizationFileExecute(r ApiGetLocalizationFileRequest) (*http.Response, error) + type ErrorDto struct + ErrorCode *string + ErrorData map[string]map[string]interface{} + ErrorMessage *string + func NewErrorDto() *ErrorDto + func NewErrorDtoWithDefaults() *ErrorDto + func (o *ErrorDto) GetErrorCode() string + func (o *ErrorDto) GetErrorCodeOk() (*string, bool) + func (o *ErrorDto) GetErrorData() map[string]map[string]interface{} + func (o *ErrorDto) GetErrorDataOk() (map[string]map[string]interface{}, bool) + func (o *ErrorDto) GetErrorMessage() string + func (o *ErrorDto) GetErrorMessageOk() (*string, bool) + func (o *ErrorDto) HasErrorCode() bool + func (o *ErrorDto) HasErrorData() bool + func (o *ErrorDto) HasErrorMessage() bool + func (o *ErrorDto) SetErrorCode(v string) + func (o *ErrorDto) SetErrorData(v map[string]map[string]interface{}) + func (o *ErrorDto) SetErrorMessage(v string) + func (o ErrorDto) MarshalJSON() ([]byte, error) + type GenericOpenAPIError struct + func (e GenericOpenAPIError) Body() []byte + func (e GenericOpenAPIError) Error() string + func (e GenericOpenAPIError) Model() interface{} + type ImportFileError struct + ErrorMessage *string + Line *int32 + Position *int32 + func NewImportFileError() *ImportFileError + func NewImportFileErrorWithDefaults() *ImportFileError + func (o *ImportFileError) GetErrorMessage() string + func (o *ImportFileError) GetErrorMessageOk() (*string, bool) + func (o *ImportFileError) GetLine() int32 + func (o *ImportFileError) GetLineOk() (*int32, bool) + func (o *ImportFileError) GetPosition() int32 + func (o *ImportFileError) GetPositionOk() (*int32, bool) + func (o *ImportFileError) HasErrorMessage() bool + func (o *ImportFileError) HasLine() bool + func (o *ImportFileError) HasPosition() bool + func (o *ImportFileError) SetErrorMessage(v string) + func (o *ImportFileError) SetLine(v int32) + func (o *ImportFileError) SetPosition(v int32) + func (o ImportFileError) MarshalJSON() ([]byte, error) + type InvalidImportFileErrorDto struct + ErrorCode *string + ErrorData map[string]map[string]interface{} + ErrorMessage *string + Errors []ImportFileError + func NewInvalidImportFileErrorDto() *InvalidImportFileErrorDto + func NewInvalidImportFileErrorDtoWithDefaults() *InvalidImportFileErrorDto + func (o *InvalidImportFileErrorDto) GetErrorCode() string + func (o *InvalidImportFileErrorDto) GetErrorCodeOk() (*string, bool) + func (o *InvalidImportFileErrorDto) GetErrorData() map[string]map[string]interface{} + func (o *InvalidImportFileErrorDto) GetErrorDataOk() (map[string]map[string]interface{}, bool) + func (o *InvalidImportFileErrorDto) GetErrorMessage() string + func (o *InvalidImportFileErrorDto) GetErrorMessageOk() (*string, bool) + func (o *InvalidImportFileErrorDto) GetErrors() []ImportFileError + func (o *InvalidImportFileErrorDto) GetErrorsOk() ([]ImportFileError, bool) + func (o *InvalidImportFileErrorDto) HasErrorCode() bool + func (o *InvalidImportFileErrorDto) HasErrorData() bool + func (o *InvalidImportFileErrorDto) HasErrorMessage() bool + func (o *InvalidImportFileErrorDto) HasErrors() bool + func (o *InvalidImportFileErrorDto) SetErrorCode(v string) + func (o *InvalidImportFileErrorDto) SetErrorData(v map[string]map[string]interface{}) + func (o *InvalidImportFileErrorDto) SetErrorMessage(v string) + func (o *InvalidImportFileErrorDto) SetErrors(v []ImportFileError) + func (o InvalidImportFileErrorDto) MarshalJSON() ([]byte, error) + type NullableBool struct + func NewNullableBool(val *bool) *NullableBool + func (v *NullableBool) Set(val *bool) + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v *NullableBool) Unset() + func (v NullableBool) Get() *bool + func (v NullableBool) IsSet() bool + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableErrorDto struct + func NewNullableErrorDto(val *ErrorDto) *NullableErrorDto + func (v *NullableErrorDto) Set(val *ErrorDto) + func (v *NullableErrorDto) UnmarshalJSON(src []byte) error + func (v *NullableErrorDto) Unset() + func (v NullableErrorDto) Get() *ErrorDto + func (v NullableErrorDto) IsSet() bool + func (v NullableErrorDto) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + func NewNullableFloat32(val *float32) *NullableFloat32 + func (v *NullableFloat32) Set(val *float32) + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v *NullableFloat32) Unset() + func (v NullableFloat32) Get() *float32 + func (v NullableFloat32) IsSet() bool + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + func NewNullableFloat64(val *float64) *NullableFloat64 + func (v *NullableFloat64) Set(val *float64) + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v *NullableFloat64) Unset() + func (v NullableFloat64) Get() *float64 + func (v NullableFloat64) IsSet() bool + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableImportFileError struct + func NewNullableImportFileError(val *ImportFileError) *NullableImportFileError + func (v *NullableImportFileError) Set(val *ImportFileError) + func (v *NullableImportFileError) UnmarshalJSON(src []byte) error + func (v *NullableImportFileError) Unset() + func (v NullableImportFileError) Get() *ImportFileError + func (v NullableImportFileError) IsSet() bool + func (v NullableImportFileError) MarshalJSON() ([]byte, error) + type NullableInt struct + func NewNullableInt(val *int) *NullableInt + func (v *NullableInt) Set(val *int) + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v *NullableInt) Unset() + func (v NullableInt) Get() *int + func (v NullableInt) IsSet() bool + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + func NewNullableInt32(val *int32) *NullableInt32 + func (v *NullableInt32) Set(val *int32) + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v *NullableInt32) Unset() + func (v NullableInt32) Get() *int32 + func (v NullableInt32) IsSet() bool + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + func NewNullableInt64(val *int64) *NullableInt64 + func (v *NullableInt64) Set(val *int64) + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v *NullableInt64) Unset() + func (v NullableInt64) Get() *int64 + func (v NullableInt64) IsSet() bool + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullableInvalidImportFileErrorDto struct + func NewNullableInvalidImportFileErrorDto(val *InvalidImportFileErrorDto) *NullableInvalidImportFileErrorDto + func (v *NullableInvalidImportFileErrorDto) Set(val *InvalidImportFileErrorDto) + func (v *NullableInvalidImportFileErrorDto) UnmarshalJSON(src []byte) error + func (v *NullableInvalidImportFileErrorDto) Unset() + func (v NullableInvalidImportFileErrorDto) Get() *InvalidImportFileErrorDto + func (v NullableInvalidImportFileErrorDto) IsSet() bool + func (v NullableInvalidImportFileErrorDto) MarshalJSON() ([]byte, error) + type NullableProjectLocaleStatsDto struct + func NewNullableProjectLocaleStatsDto(val *ProjectLocaleStatsDto) *NullableProjectLocaleStatsDto + func (v *NullableProjectLocaleStatsDto) Set(val *ProjectLocaleStatsDto) + func (v *NullableProjectLocaleStatsDto) UnmarshalJSON(src []byte) error + func (v *NullableProjectLocaleStatsDto) Unset() + func (v NullableProjectLocaleStatsDto) Get() *ProjectLocaleStatsDto + func (v NullableProjectLocaleStatsDto) IsSet() bool + func (v NullableProjectLocaleStatsDto) MarshalJSON() ([]byte, error) + type NullableProjectStatusDto struct + func NewNullableProjectStatusDto(val *ProjectStatusDto) *NullableProjectStatusDto + func (v *NullableProjectStatusDto) Set(val *ProjectStatusDto) + func (v *NullableProjectStatusDto) UnmarshalJSON(src []byte) error + func (v *NullableProjectStatusDto) Unset() + func (v NullableProjectStatusDto) Get() *ProjectStatusDto + func (v NullableProjectStatusDto) IsSet() bool + func (v NullableProjectStatusDto) MarshalJSON() ([]byte, error) + type NullableString struct + func NewNullableString(val *string) *NullableString + func (v *NullableString) Set(val *string) + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v *NullableString) Unset() + func (v NullableString) Get() *string + func (v NullableString) IsSet() bool + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTime struct + func NewNullableTime(val *time.Time) *NullableTime + func (v *NullableTime) Set(val *time.Time) + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v *NullableTime) Unset() + func (v NullableTime) Get() *time.Time + func (v NullableTime) IsSet() bool + func (v NullableTime) MarshalJSON() ([]byte, error) + type ProjectLocaleStatsDto struct + LangCode *string + LangName *string + Reviewed *int32 + ReviewedProgress *int32 + Strings *int32 + func NewProjectLocaleStatsDto() *ProjectLocaleStatsDto + func NewProjectLocaleStatsDtoWithDefaults() *ProjectLocaleStatsDto + func (o *ProjectLocaleStatsDto) GetLangCode() string + func (o *ProjectLocaleStatsDto) GetLangCodeOk() (*string, bool) + func (o *ProjectLocaleStatsDto) GetLangName() string + func (o *ProjectLocaleStatsDto) GetLangNameOk() (*string, bool) + func (o *ProjectLocaleStatsDto) GetReviewed() int32 + func (o *ProjectLocaleStatsDto) GetReviewedOk() (*int32, bool) + func (o *ProjectLocaleStatsDto) GetReviewedProgress() int32 + func (o *ProjectLocaleStatsDto) GetReviewedProgressOk() (*int32, bool) + func (o *ProjectLocaleStatsDto) GetStrings() int32 + func (o *ProjectLocaleStatsDto) GetStringsOk() (*int32, bool) + func (o *ProjectLocaleStatsDto) HasLangCode() bool + func (o *ProjectLocaleStatsDto) HasLangName() bool + func (o *ProjectLocaleStatsDto) HasReviewed() bool + func (o *ProjectLocaleStatsDto) HasReviewedProgress() bool + func (o *ProjectLocaleStatsDto) HasStrings() bool + func (o *ProjectLocaleStatsDto) SetLangCode(v string) + func (o *ProjectLocaleStatsDto) SetLangName(v string) + func (o *ProjectLocaleStatsDto) SetReviewed(v int32) + func (o *ProjectLocaleStatsDto) SetReviewedProgress(v int32) + func (o *ProjectLocaleStatsDto) SetStrings(v int32) + func (o ProjectLocaleStatsDto) MarshalJSON() ([]byte, error) + type ProjectStatusDto struct + Languages []ProjectLocaleStatsDto + ReviewedProgress *int32 + Strings *int32 + func NewProjectStatusDto() *ProjectStatusDto + func NewProjectStatusDtoWithDefaults() *ProjectStatusDto + func (o *ProjectStatusDto) GetLanguages() []ProjectLocaleStatsDto + func (o *ProjectStatusDto) GetLanguagesOk() ([]ProjectLocaleStatsDto, bool) + func (o *ProjectStatusDto) GetReviewedProgress() int32 + func (o *ProjectStatusDto) GetReviewedProgressOk() (*int32, bool) + func (o *ProjectStatusDto) GetStrings() int32 + func (o *ProjectStatusDto) GetStringsOk() (*int32, bool) + func (o *ProjectStatusDto) HasLanguages() bool + func (o *ProjectStatusDto) HasReviewedProgress() bool + func (o *ProjectStatusDto) HasStrings() bool + func (o *ProjectStatusDto) SetLanguages(v []ProjectLocaleStatsDto) + func (o *ProjectStatusDto) SetReviewedProgress(v int32) + func (o *ProjectStatusDto) SetStrings(v int32) + func (o ProjectStatusDto) MarshalJSON() ([]byte, error) + type ServerConfiguration struct + Description string + URL string + Variables map[string]ServerVariable + type ServerConfigurations []ServerConfiguration + func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) + type ServerVariable struct + DefaultValue string + Description string + EnumValues []string + type TranslationStatusAPIApiService service + func (a *TranslationStatusAPIApiService) GetTranslationStatus(ctx context.Context, projectId string) ApiGetTranslationStatusRequest + func (a *TranslationStatusAPIApiService) GetTranslationStatusExecute(r ApiGetTranslationStatusRequest) (*ProjectStatusDto, *http.Response, error) + type UploadAPIApiService service + func (a *UploadAPIApiService) ImportLocalizationFile(ctx context.Context, projectId string) ApiImportLocalizationFileRequest + func (a *UploadAPIApiService) ImportLocalizationFileExecute(r ApiImportLocalizationFileRequest) (*http.Response, error) v1.0.0 Nov 2, 2022