forked from crowdin/crowdin-api-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
160 lines (154 loc) · 8.66 KB
/
Client.java
File metadata and controls
160 lines (154 loc) · 8.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package com.crowdin.client;
import com.crowdin.client.ai.AIApi;
import com.crowdin.client.applications.ApplicationsApi;
import com.crowdin.client.branches.BranchesApi;
import com.crowdin.client.bundles.BundlesApi;
import com.crowdin.client.clients.ClientsApi;
import com.crowdin.client.core.CrowdinApi;
import com.crowdin.client.core.model.ClientConfig;
import com.crowdin.client.core.model.Credentials;
import com.crowdin.client.dictionaries.DictionariesApi;
import com.crowdin.client.distributions.DistributionsApi;
import com.crowdin.client.fields.FieldsApi;
import com.crowdin.client.glossaries.GlossariesApi;
import com.crowdin.client.issues.IssuesApi;
import com.crowdin.client.labels.LabelsApi;
import com.crowdin.client.languages.LanguagesApi;
import com.crowdin.client.machinetranslationengines.MachineTranslationEnginesApi;
import com.crowdin.client.notifications.NotificationsApi;
import com.crowdin.client.projectsgroups.ProjectsGroupsApi;
import com.crowdin.client.reports.ReportsApi;
import com.crowdin.client.screenshots.ScreenshotsApi;
import com.crowdin.client.securitylogs.SecurityLogsApi;
import com.crowdin.client.sourcefiles.SourceFilesApi;
import com.crowdin.client.sourcestrings.SourceStringsApi;
import com.crowdin.client.storage.StorageApi;
import com.crowdin.client.stringcomments.StringCommentsApi;
import com.crowdin.client.stringcorrections.StringCorrectionsApi;
import com.crowdin.client.stringtranslations.StringTranslationsApi;
import com.crowdin.client.styleguide.StyleGuidesApi;
import com.crowdin.client.tasks.TasksApi;
import com.crowdin.client.teams.TeamsApi;
import com.crowdin.client.translationmemory.TranslationMemoryApi;
import com.crowdin.client.translations.TranslationsApi;
import com.crowdin.client.translationstatus.TranslationStatusApi;
import com.crowdin.client.users.UsersApi;
import com.crowdin.client.vendors.VendorsApi;
import com.crowdin.client.webhooks.OrganizationWebhooksApi;
import com.crowdin.client.webhooks.WebhooksApi;
import com.crowdin.client.workflows.WorkflowsApi;
import lombok.Getter;
@Getter
public class Client extends CrowdinApi {
private final ProjectsGroupsApi projectsGroupsApi;
private final StorageApi storageApi;
private final LanguagesApi languagesApi;
private final WorkflowsApi workflowsApi;
private final SourceFilesApi sourceFilesApi;
private final TranslationsApi translationsApi;
private final SourceStringsApi sourceStringsApi;
private final StringTranslationsApi stringTranslationsApi;
private final ScreenshotsApi screenshotsApi;
private final GlossariesApi glossariesApi;
private final TranslationMemoryApi translationMemoryApi;
private final MachineTranslationEnginesApi machineTranslationEnginesApi;
private final TranslationStatusApi translationStatusApi;
private final ReportsApi reportsApi;
private final TasksApi tasksApi;
private final IssuesApi issuesApi;
private final UsersApi usersApi;
private final VendorsApi vendorsApi;
private final WebhooksApi webhooksApi;
private final OrganizationWebhooksApi organizationWebhooksApi;
private final TeamsApi teamsApi;
private final DistributionsApi distributionsApi;
private final FieldsApi fieldsApi;
private final DictionariesApi dictionariesApi;
private final LabelsApi labelsApi;
private final StringCommentsApi stringCommentsApi;
private final BundlesApi bundlesApi;
private final SecurityLogsApi securityLogsApi;
private final NotificationsApi notificationsApi;
private final ApplicationsApi applicationsApi;
private final ClientsApi clientsApi;
private final BranchesApi branchesApi;
private final AIApi aiApi;
private final StringCorrectionsApi stringCorrectionsApi;
private final StyleGuidesApi styleGuidesApi;
public Client(Credentials credentials) {
super(credentials);
this.projectsGroupsApi = new ProjectsGroupsApi(credentials);
this.storageApi = new StorageApi(credentials);
this.languagesApi = new LanguagesApi(credentials);
this.workflowsApi = new WorkflowsApi(credentials);
this.sourceFilesApi = new SourceFilesApi(credentials);
this.translationsApi = new TranslationsApi(credentials);
this.sourceStringsApi = new SourceStringsApi(credentials);
this.stringTranslationsApi = new StringTranslationsApi(credentials);
this.screenshotsApi = new ScreenshotsApi(credentials);
this.glossariesApi = new GlossariesApi(credentials);
this.translationMemoryApi = new TranslationMemoryApi(credentials);
this.machineTranslationEnginesApi = new MachineTranslationEnginesApi(credentials);
this.translationStatusApi = new TranslationStatusApi(credentials);
this.reportsApi = new ReportsApi(credentials);
this.tasksApi = new TasksApi(credentials);
this.issuesApi = new IssuesApi(credentials);
this.usersApi = new UsersApi(credentials);
this.vendorsApi = new VendorsApi(credentials);
this.webhooksApi = new WebhooksApi(credentials);
this.organizationWebhooksApi = new OrganizationWebhooksApi(credentials);
this.teamsApi = new TeamsApi(credentials);
this.distributionsApi = new DistributionsApi(credentials);
this.fieldsApi = new FieldsApi(credentials);
this.dictionariesApi = new DictionariesApi(credentials);
this.labelsApi = new LabelsApi(credentials);
this.stringCommentsApi = new StringCommentsApi(credentials);
this.bundlesApi = new BundlesApi(credentials);
this.securityLogsApi = new SecurityLogsApi(credentials);
this.notificationsApi = new NotificationsApi(credentials);
this.applicationsApi = new ApplicationsApi(credentials);
this.clientsApi = new ClientsApi(credentials);
this.branchesApi = new BranchesApi(credentials);
this.aiApi = new AIApi(credentials);
this.stringCorrectionsApi = new StringCorrectionsApi(credentials);
this.styleGuidesApi = new StyleGuidesApi(credentials);
}
public Client(Credentials credentials, ClientConfig clientConfig) {
super(credentials, clientConfig);
this.projectsGroupsApi = new ProjectsGroupsApi(credentials, clientConfig);
this.storageApi = new StorageApi(credentials, clientConfig);
this.languagesApi = new LanguagesApi(credentials, clientConfig);
this.workflowsApi = new WorkflowsApi(credentials, clientConfig);
this.sourceFilesApi = new SourceFilesApi(credentials, clientConfig);
this.translationsApi = new TranslationsApi(credentials, clientConfig);
this.sourceStringsApi = new SourceStringsApi(credentials, clientConfig);
this.stringTranslationsApi = new StringTranslationsApi(credentials, clientConfig);
this.screenshotsApi = new ScreenshotsApi(credentials, clientConfig);
this.glossariesApi = new GlossariesApi(credentials, clientConfig);
this.translationMemoryApi = new TranslationMemoryApi(credentials, clientConfig);
this.machineTranslationEnginesApi = new MachineTranslationEnginesApi(credentials, clientConfig);
this.translationStatusApi = new TranslationStatusApi(credentials, clientConfig);
this.reportsApi = new ReportsApi(credentials, clientConfig);
this.tasksApi = new TasksApi(credentials, clientConfig);
this.issuesApi = new IssuesApi(credentials, clientConfig);
this.usersApi = new UsersApi(credentials, clientConfig);
this.vendorsApi = new VendorsApi(credentials, clientConfig);
this.webhooksApi = new WebhooksApi(credentials, clientConfig);
this.organizationWebhooksApi = new OrganizationWebhooksApi(credentials, clientConfig);
this.teamsApi = new TeamsApi(credentials, clientConfig);
this.distributionsApi = new DistributionsApi(credentials, clientConfig);
this.fieldsApi = new FieldsApi(credentials, clientConfig);
this.dictionariesApi = new DictionariesApi(credentials, clientConfig);
this.labelsApi = new LabelsApi(credentials, clientConfig);
this.stringCommentsApi = new StringCommentsApi(credentials, clientConfig);
this.bundlesApi = new BundlesApi(credentials, clientConfig);
this.securityLogsApi = new SecurityLogsApi(credentials, clientConfig);
this.notificationsApi = new NotificationsApi(credentials, clientConfig);
this.applicationsApi = new ApplicationsApi(credentials, clientConfig);
this.clientsApi = new ClientsApi(credentials, clientConfig);
this.branchesApi = new BranchesApi(credentials, clientConfig);
this.aiApi = new AIApi(credentials, clientConfig);
this.stringCorrectionsApi = new StringCorrectionsApi(credentials, clientConfig);
this.styleGuidesApi = new StyleGuidesApi(credentials, clientConfig);
}
}