phrase 1.0.2 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/docs/Account.md +2 -0
- data/docs/AccountDetails.md +3 -3
- data/docs/AccountsApi.md +2 -2
- data/docs/AuthorizationsApi.md +2 -2
- data/docs/BlacklistedKeysApi.md +4 -2
- data/docs/BranchesApi.md +2 -2
- data/docs/CommentsApi.md +2 -2
- data/docs/DistributionsApi.md +2 -2
- data/docs/Document.md +23 -0
- data/docs/DocumentsApi.md +137 -0
- data/docs/GitHubSyncApi.md +130 -0
- data/docs/GitLabSyncApi.md +2 -2
- data/docs/GithubSyncExportParameters.md +17 -0
- data/docs/GithubSyncImportParameters.md +17 -0
- data/docs/GlossariesApi.md +2 -2
- data/docs/GlossaryTermsApi.md +2 -2
- data/docs/InlineResponse422.md +19 -0
- data/docs/InlineResponse422Errors.md +21 -0
- data/docs/InvitationsApi.md +2 -2
- data/docs/Job.md +5 -1
- data/docs/JobCreateParameters.md +2 -0
- data/docs/JobDetails.md +4 -0
- data/docs/JobLocalesApi.md +2 -2
- data/docs/JobUpdateParameters.md +3 -1
- data/docs/JobsApi.md +74 -2
- data/docs/KeysApi.md +4 -4
- data/docs/LocalesApi.md +2 -2
- data/docs/MembersApi.md +2 -2
- data/docs/OrdersApi.md +2 -2
- data/docs/Project.md +2 -0
- data/docs/ProjectDetails.md +2 -2
- data/docs/ProjectsApi.md +2 -2
- data/docs/ReleasesApi.md +2 -2
- data/docs/ScreenshotMarkersApi.md +2 -2
- data/docs/ScreenshotsApi.md +4 -2
- data/docs/SpacesApi.md +4 -4
- data/docs/StyleGuidesApi.md +2 -2
- data/docs/TagsApi.md +2 -2
- data/docs/TeamsApi.md +2 -2
- data/docs/TranslationsApi.md +8 -8
- data/docs/UploadsApi.md +2 -2
- data/docs/VersionsHistoryApi.md +2 -2
- data/docs/WebhookCreateParameters.md +2 -0
- data/docs/WebhookUpdateParameters.md +2 -0
- data/docs/WebhooksApi.md +2 -2
- data/lib/phrase.rb +7 -0
- data/lib/phrase/api/accounts_api.rb +2 -2
- data/lib/phrase/api/authorizations_api.rb +2 -2
- data/lib/phrase/api/blacklisted_keys_api.rb +5 -2
- data/lib/phrase/api/branches_api.rb +2 -2
- data/lib/phrase/api/comments_api.rb +2 -2
- data/lib/phrase/api/distributions_api.rb +2 -2
- data/lib/phrase/api/documents_api.rb +152 -0
- data/lib/phrase/api/git_hub_sync_api.rb +146 -0
- data/lib/phrase/api/git_lab_sync_api.rb +2 -2
- data/lib/phrase/api/glossaries_api.rb +2 -2
- data/lib/phrase/api/glossary_terms_api.rb +2 -2
- data/lib/phrase/api/invitations_api.rb +2 -2
- data/lib/phrase/api/job_locales_api.rb +2 -2
- data/lib/phrase/api/jobs_api.rb +83 -2
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +2 -2
- data/lib/phrase/api/members_api.rb +2 -2
- data/lib/phrase/api/orders_api.rb +2 -2
- data/lib/phrase/api/projects_api.rb +2 -2
- data/lib/phrase/api/releases_api.rb +2 -2
- data/lib/phrase/api/screenshot_markers_api.rb +2 -2
- data/lib/phrase/api/screenshots_api.rb +5 -2
- data/lib/phrase/api/spaces_api.rb +4 -4
- data/lib/phrase/api/style_guides_api.rb +2 -2
- data/lib/phrase/api/tags_api.rb +2 -2
- data/lib/phrase/api/teams_api.rb +2 -2
- data/lib/phrase/api/translations_api.rb +8 -8
- data/lib/phrase/api/uploads_api.rb +2 -2
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhooks_api.rb +2 -2
- data/lib/phrase/api_client.rb +2 -2
- data/lib/phrase/models/account.rb +10 -1
- data/lib/phrase/models/account_details.rb +13 -13
- data/lib/phrase/models/document.rb +221 -0
- data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/inline_response422.rb +205 -0
- data/lib/phrase/models/inline_response422_errors.rb +212 -0
- data/lib/phrase/models/job.rb +22 -4
- data/lib/phrase/models/job_create_parameters.rb +11 -1
- data/lib/phrase/models/job_details.rb +19 -1
- data/lib/phrase/models/job_update_parameters.rb +14 -4
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_details.rb +10 -10
- data/lib/phrase/models/webhook_create_parameters.rb +11 -1
- data/lib/phrase/models/webhook_update_parameters.rb +11 -1
- data/lib/phrase/version.rb +1 -1
- data/spec/api/accounts_api_spec.rb +1 -1
- data/spec/api/authorizations_api_spec.rb +1 -1
- data/spec/api/blacklisted_keys_api_spec.rb +2 -1
- data/spec/api/branches_api_spec.rb +1 -1
- data/spec/api/comments_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/documents_api_spec.rb +52 -0
- data/spec/api/git_hub_sync_api_spec.rb +49 -0
- data/spec/api/git_lab_sync_api_spec.rb +1 -1
- data/spec/api/glossaries_api_spec.rb +1 -1
- data/spec/api/glossary_terms_api_spec.rb +1 -1
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/job_locales_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +19 -1
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locales_api_spec.rb +1 -1
- data/spec/api/members_api_spec.rb +1 -1
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/releases_api_spec.rb +1 -1
- data/spec/api/screenshot_markers_api_spec.rb +1 -1
- data/spec/api/screenshots_api_spec.rb +2 -1
- data/spec/api/spaces_api_spec.rb +2 -2
- data/spec/api/style_guides_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/translations_api_spec.rb +4 -4
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/api/versions_history_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/models/account_details_spec.rb +4 -4
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/document_spec.rb +47 -0
- data/spec/models/github_sync_export_parameters_spec.rb +29 -0
- data/spec/models/github_sync_import_parameters_spec.rb +29 -0
- data/spec/models/inline_response422_errors_spec.rb +41 -0
- data/spec/models/inline_response422_spec.rb +35 -0
- data/spec/models/job_create_parameters_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +12 -0
- data/spec/models/job_spec.rb +12 -0
- data/spec/models/job_update_parameters_spec.rb +6 -0
- data/spec/models/project_details_spec.rb +6 -6
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/webhook_create_parameters_spec.rb +6 -0
- data/spec/models/webhook_update_parameters_spec.rb +6 -0
- metadata +183 -155
data/lib/phrase/models/job.rb
CHANGED
|
@@ -12,10 +12,14 @@ module Phrase
|
|
|
12
12
|
|
|
13
13
|
attr_accessor :state
|
|
14
14
|
|
|
15
|
+
attr_accessor :ticket_url
|
|
16
|
+
|
|
15
17
|
attr_accessor :created_at
|
|
16
18
|
|
|
17
19
|
attr_accessor :updated_at
|
|
18
20
|
|
|
21
|
+
attr_accessor :project
|
|
22
|
+
|
|
19
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
24
|
def self.attribute_map
|
|
21
25
|
{
|
|
@@ -24,8 +28,10 @@ module Phrase
|
|
|
24
28
|
:'briefing' => :'briefing',
|
|
25
29
|
:'due_date' => :'due_date',
|
|
26
30
|
:'state' => :'state',
|
|
31
|
+
:'ticket_url' => :'ticket_url',
|
|
27
32
|
:'created_at' => :'created_at',
|
|
28
|
-
:'updated_at' => :'updated_at'
|
|
33
|
+
:'updated_at' => :'updated_at',
|
|
34
|
+
:'project' => :'project'
|
|
29
35
|
}
|
|
30
36
|
end
|
|
31
37
|
|
|
@@ -37,8 +43,10 @@ module Phrase
|
|
|
37
43
|
:'briefing' => :'String',
|
|
38
44
|
:'due_date' => :'DateTime',
|
|
39
45
|
:'state' => :'String',
|
|
46
|
+
:'ticket_url' => :'String',
|
|
40
47
|
:'created_at' => :'DateTime',
|
|
41
|
-
:'updated_at' => :'DateTime'
|
|
48
|
+
:'updated_at' => :'DateTime',
|
|
49
|
+
:'project' => :'ProjectShort'
|
|
42
50
|
}
|
|
43
51
|
end
|
|
44
52
|
|
|
@@ -83,6 +91,10 @@ module Phrase
|
|
|
83
91
|
self.state = attributes[:'state']
|
|
84
92
|
end
|
|
85
93
|
|
|
94
|
+
if attributes.key?(:'ticket_url')
|
|
95
|
+
self.ticket_url = attributes[:'ticket_url']
|
|
96
|
+
end
|
|
97
|
+
|
|
86
98
|
if attributes.key?(:'created_at')
|
|
87
99
|
self.created_at = attributes[:'created_at']
|
|
88
100
|
end
|
|
@@ -90,6 +102,10 @@ module Phrase
|
|
|
90
102
|
if attributes.key?(:'updated_at')
|
|
91
103
|
self.updated_at = attributes[:'updated_at']
|
|
92
104
|
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'project')
|
|
107
|
+
self.project = attributes[:'project']
|
|
108
|
+
end
|
|
93
109
|
end
|
|
94
110
|
|
|
95
111
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -115,8 +131,10 @@ module Phrase
|
|
|
115
131
|
briefing == o.briefing &&
|
|
116
132
|
due_date == o.due_date &&
|
|
117
133
|
state == o.state &&
|
|
134
|
+
ticket_url == o.ticket_url &&
|
|
118
135
|
created_at == o.created_at &&
|
|
119
|
-
updated_at == o.updated_at
|
|
136
|
+
updated_at == o.updated_at &&
|
|
137
|
+
project == o.project
|
|
120
138
|
end
|
|
121
139
|
|
|
122
140
|
# @see the `==` method
|
|
@@ -128,7 +146,7 @@ module Phrase
|
|
|
128
146
|
# Calculates hash code according to all attributes.
|
|
129
147
|
# @return [Integer] Hash code
|
|
130
148
|
def hash
|
|
131
|
-
[id, name, briefing, due_date, state, created_at, updated_at].hash
|
|
149
|
+
[id, name, briefing, due_date, state, ticket_url, created_at, updated_at, project].hash
|
|
132
150
|
end
|
|
133
151
|
|
|
134
152
|
# Builds the object from hash
|
|
@@ -14,6 +14,9 @@ module Phrase
|
|
|
14
14
|
# Date the job should be finished
|
|
15
15
|
attr_accessor :due_date
|
|
16
16
|
|
|
17
|
+
# URL to a ticket for this job (e.g. Jira, Trello)
|
|
18
|
+
attr_accessor :ticket_url
|
|
19
|
+
|
|
17
20
|
# tags of keys that should be included within the job
|
|
18
21
|
attr_accessor :tags
|
|
19
22
|
|
|
@@ -27,6 +30,7 @@ module Phrase
|
|
|
27
30
|
:'name' => :'name',
|
|
28
31
|
:'briefing' => :'briefing',
|
|
29
32
|
:'due_date' => :'due_date',
|
|
33
|
+
:'ticket_url' => :'ticket_url',
|
|
30
34
|
:'tags' => :'tags',
|
|
31
35
|
:'translation_key_ids' => :'translation_key_ids'
|
|
32
36
|
}
|
|
@@ -39,6 +43,7 @@ module Phrase
|
|
|
39
43
|
:'name' => :'String',
|
|
40
44
|
:'briefing' => :'String',
|
|
41
45
|
:'due_date' => :'DateTime',
|
|
46
|
+
:'ticket_url' => :'String',
|
|
42
47
|
:'tags' => :'Array<String>',
|
|
43
48
|
:'translation_key_ids' => :'Array<String>'
|
|
44
49
|
}
|
|
@@ -81,6 +86,10 @@ module Phrase
|
|
|
81
86
|
self.due_date = attributes[:'due_date']
|
|
82
87
|
end
|
|
83
88
|
|
|
89
|
+
if attributes.key?(:'ticket_url')
|
|
90
|
+
self.ticket_url = attributes[:'ticket_url']
|
|
91
|
+
end
|
|
92
|
+
|
|
84
93
|
if attributes.key?(:'tags')
|
|
85
94
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
86
95
|
self.tags = value
|
|
@@ -116,6 +125,7 @@ module Phrase
|
|
|
116
125
|
name == o.name &&
|
|
117
126
|
briefing == o.briefing &&
|
|
118
127
|
due_date == o.due_date &&
|
|
128
|
+
ticket_url == o.ticket_url &&
|
|
119
129
|
tags == o.tags &&
|
|
120
130
|
translation_key_ids == o.translation_key_ids
|
|
121
131
|
end
|
|
@@ -129,7 +139,7 @@ module Phrase
|
|
|
129
139
|
# Calculates hash code according to all attributes.
|
|
130
140
|
# @return [Integer] Hash code
|
|
131
141
|
def hash
|
|
132
|
-
[branch, name, briefing, due_date, tags, translation_key_ids].hash
|
|
142
|
+
[branch, name, briefing, due_date, ticket_url, tags, translation_key_ids].hash
|
|
133
143
|
end
|
|
134
144
|
|
|
135
145
|
# Builds the object from hash
|
|
@@ -12,10 +12,14 @@ module Phrase
|
|
|
12
12
|
|
|
13
13
|
attr_accessor :state
|
|
14
14
|
|
|
15
|
+
attr_accessor :ticket_url
|
|
16
|
+
|
|
15
17
|
attr_accessor :created_at
|
|
16
18
|
|
|
17
19
|
attr_accessor :updated_at
|
|
18
20
|
|
|
21
|
+
attr_accessor :project
|
|
22
|
+
|
|
19
23
|
attr_accessor :owner
|
|
20
24
|
|
|
21
25
|
attr_accessor :job_tag_name
|
|
@@ -32,8 +36,10 @@ module Phrase
|
|
|
32
36
|
:'briefing' => :'briefing',
|
|
33
37
|
:'due_date' => :'due_date',
|
|
34
38
|
:'state' => :'state',
|
|
39
|
+
:'ticket_url' => :'ticket_url',
|
|
35
40
|
:'created_at' => :'created_at',
|
|
36
41
|
:'updated_at' => :'updated_at',
|
|
42
|
+
:'project' => :'project',
|
|
37
43
|
:'owner' => :'owner',
|
|
38
44
|
:'job_tag_name' => :'job_tag_name',
|
|
39
45
|
:'locales' => :'locales',
|
|
@@ -49,8 +55,10 @@ module Phrase
|
|
|
49
55
|
:'briefing' => :'String',
|
|
50
56
|
:'due_date' => :'DateTime',
|
|
51
57
|
:'state' => :'String',
|
|
58
|
+
:'ticket_url' => :'String',
|
|
52
59
|
:'created_at' => :'DateTime',
|
|
53
60
|
:'updated_at' => :'DateTime',
|
|
61
|
+
:'project' => :'ProjectShort',
|
|
54
62
|
:'owner' => :'UserPreview',
|
|
55
63
|
:'job_tag_name' => :'String',
|
|
56
64
|
:'locales' => :'Array<LocalePreview>',
|
|
@@ -107,6 +115,10 @@ module Phrase
|
|
|
107
115
|
self.state = attributes[:'state']
|
|
108
116
|
end
|
|
109
117
|
|
|
118
|
+
if attributes.key?(:'ticket_url')
|
|
119
|
+
self.ticket_url = attributes[:'ticket_url']
|
|
120
|
+
end
|
|
121
|
+
|
|
110
122
|
if attributes.key?(:'created_at')
|
|
111
123
|
self.created_at = attributes[:'created_at']
|
|
112
124
|
end
|
|
@@ -115,6 +127,10 @@ module Phrase
|
|
|
115
127
|
self.updated_at = attributes[:'updated_at']
|
|
116
128
|
end
|
|
117
129
|
|
|
130
|
+
if attributes.key?(:'project')
|
|
131
|
+
self.project = attributes[:'project']
|
|
132
|
+
end
|
|
133
|
+
|
|
118
134
|
if attributes.key?(:'owner')
|
|
119
135
|
self.owner = attributes[:'owner']
|
|
120
136
|
end
|
|
@@ -159,8 +175,10 @@ module Phrase
|
|
|
159
175
|
briefing == o.briefing &&
|
|
160
176
|
due_date == o.due_date &&
|
|
161
177
|
state == o.state &&
|
|
178
|
+
ticket_url == o.ticket_url &&
|
|
162
179
|
created_at == o.created_at &&
|
|
163
180
|
updated_at == o.updated_at &&
|
|
181
|
+
project == o.project &&
|
|
164
182
|
owner == o.owner &&
|
|
165
183
|
job_tag_name == o.job_tag_name &&
|
|
166
184
|
locales == o.locales &&
|
|
@@ -176,7 +194,7 @@ module Phrase
|
|
|
176
194
|
# Calculates hash code according to all attributes.
|
|
177
195
|
# @return [Integer] Hash code
|
|
178
196
|
def hash
|
|
179
|
-
[id, name, briefing, due_date, state, created_at, updated_at, owner, job_tag_name, locales, keys].hash
|
|
197
|
+
[id, name, briefing, due_date, state, ticket_url, created_at, updated_at, project, owner, job_tag_name, locales, keys].hash
|
|
180
198
|
end
|
|
181
199
|
|
|
182
200
|
# Builds the object from hash
|
|
@@ -14,13 +14,17 @@ module Phrase
|
|
|
14
14
|
# Date the job should be finished
|
|
15
15
|
attr_accessor :due_date
|
|
16
16
|
|
|
17
|
+
# URL to a ticket for this job (e.g. Jira, Trello)
|
|
18
|
+
attr_accessor :ticket_url
|
|
19
|
+
|
|
17
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
21
|
def self.attribute_map
|
|
19
22
|
{
|
|
20
23
|
:'branch' => :'branch',
|
|
21
24
|
:'name' => :'name',
|
|
22
25
|
:'briefing' => :'briefing',
|
|
23
|
-
:'due_date' => :'due_date'
|
|
26
|
+
:'due_date' => :'due_date',
|
|
27
|
+
:'ticket_url' => :'ticket_url'
|
|
24
28
|
}
|
|
25
29
|
end
|
|
26
30
|
|
|
@@ -30,7 +34,8 @@ module Phrase
|
|
|
30
34
|
:'branch' => :'String',
|
|
31
35
|
:'name' => :'String',
|
|
32
36
|
:'briefing' => :'String',
|
|
33
|
-
:'due_date' => :'DateTime'
|
|
37
|
+
:'due_date' => :'DateTime',
|
|
38
|
+
:'ticket_url' => :'String'
|
|
34
39
|
}
|
|
35
40
|
end
|
|
36
41
|
|
|
@@ -70,6 +75,10 @@ module Phrase
|
|
|
70
75
|
if attributes.key?(:'due_date')
|
|
71
76
|
self.due_date = attributes[:'due_date']
|
|
72
77
|
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'ticket_url')
|
|
80
|
+
self.ticket_url = attributes[:'ticket_url']
|
|
81
|
+
end
|
|
73
82
|
end
|
|
74
83
|
|
|
75
84
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -93,7 +102,8 @@ module Phrase
|
|
|
93
102
|
branch == o.branch &&
|
|
94
103
|
name == o.name &&
|
|
95
104
|
briefing == o.briefing &&
|
|
96
|
-
due_date == o.due_date
|
|
105
|
+
due_date == o.due_date &&
|
|
106
|
+
ticket_url == o.ticket_url
|
|
97
107
|
end
|
|
98
108
|
|
|
99
109
|
# @see the `==` method
|
|
@@ -105,7 +115,7 @@ module Phrase
|
|
|
105
115
|
# Calculates hash code according to all attributes.
|
|
106
116
|
# @return [Integer] Hash code
|
|
107
117
|
def hash
|
|
108
|
-
[branch, name, briefing, due_date].hash
|
|
118
|
+
[branch, name, briefing, due_date, ticket_url].hash
|
|
109
119
|
end
|
|
110
120
|
|
|
111
121
|
# Builds the object from hash
|
|
@@ -6,6 +6,8 @@ module Phrase
|
|
|
6
6
|
|
|
7
7
|
attr_accessor :name
|
|
8
8
|
|
|
9
|
+
attr_accessor :slug
|
|
10
|
+
|
|
9
11
|
attr_accessor :main_format
|
|
10
12
|
|
|
11
13
|
attr_accessor :project_image_url
|
|
@@ -21,6 +23,7 @@ module Phrase
|
|
|
21
23
|
{
|
|
22
24
|
:'id' => :'id',
|
|
23
25
|
:'name' => :'name',
|
|
26
|
+
:'slug' => :'slug',
|
|
24
27
|
:'main_format' => :'main_format',
|
|
25
28
|
:'project_image_url' => :'project_image_url',
|
|
26
29
|
:'account' => :'account',
|
|
@@ -34,6 +37,7 @@ module Phrase
|
|
|
34
37
|
{
|
|
35
38
|
:'id' => :'String',
|
|
36
39
|
:'name' => :'String',
|
|
40
|
+
:'slug' => :'String',
|
|
37
41
|
:'main_format' => :'String',
|
|
38
42
|
:'project_image_url' => :'String',
|
|
39
43
|
:'account' => :'Account',
|
|
@@ -71,6 +75,10 @@ module Phrase
|
|
|
71
75
|
self.name = attributes[:'name']
|
|
72
76
|
end
|
|
73
77
|
|
|
78
|
+
if attributes.key?(:'slug')
|
|
79
|
+
self.slug = attributes[:'slug']
|
|
80
|
+
end
|
|
81
|
+
|
|
74
82
|
if attributes.key?(:'main_format')
|
|
75
83
|
self.main_format = attributes[:'main_format']
|
|
76
84
|
end
|
|
@@ -112,6 +120,7 @@ module Phrase
|
|
|
112
120
|
self.class == o.class &&
|
|
113
121
|
id == o.id &&
|
|
114
122
|
name == o.name &&
|
|
123
|
+
slug == o.slug &&
|
|
115
124
|
main_format == o.main_format &&
|
|
116
125
|
project_image_url == o.project_image_url &&
|
|
117
126
|
account == o.account &&
|
|
@@ -128,7 +137,7 @@ module Phrase
|
|
|
128
137
|
# Calculates hash code according to all attributes.
|
|
129
138
|
# @return [Integer] Hash code
|
|
130
139
|
def hash
|
|
131
|
-
[id, name, main_format, project_image_url, account, created_at, updated_at].hash
|
|
140
|
+
[id, name, slug, main_format, project_image_url, account, created_at, updated_at].hash
|
|
132
141
|
end
|
|
133
142
|
|
|
134
143
|
# Builds the object from hash
|
|
@@ -6,6 +6,8 @@ module Phrase
|
|
|
6
6
|
|
|
7
7
|
attr_accessor :name
|
|
8
8
|
|
|
9
|
+
attr_accessor :slug
|
|
10
|
+
|
|
9
11
|
attr_accessor :main_format
|
|
10
12
|
|
|
11
13
|
attr_accessor :project_image_url
|
|
@@ -16,8 +18,6 @@ module Phrase
|
|
|
16
18
|
|
|
17
19
|
attr_accessor :updated_at
|
|
18
20
|
|
|
19
|
-
attr_accessor :slug
|
|
20
|
-
|
|
21
21
|
attr_accessor :shares_translation_memory
|
|
22
22
|
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -25,12 +25,12 @@ module Phrase
|
|
|
25
25
|
{
|
|
26
26
|
:'id' => :'id',
|
|
27
27
|
:'name' => :'name',
|
|
28
|
+
:'slug' => :'slug',
|
|
28
29
|
:'main_format' => :'main_format',
|
|
29
30
|
:'project_image_url' => :'project_image_url',
|
|
30
31
|
:'account' => :'account',
|
|
31
32
|
:'created_at' => :'created_at',
|
|
32
33
|
:'updated_at' => :'updated_at',
|
|
33
|
-
:'slug' => :'slug',
|
|
34
34
|
:'shares_translation_memory' => :'shares_translation_memory'
|
|
35
35
|
}
|
|
36
36
|
end
|
|
@@ -40,12 +40,12 @@ module Phrase
|
|
|
40
40
|
{
|
|
41
41
|
:'id' => :'String',
|
|
42
42
|
:'name' => :'String',
|
|
43
|
+
:'slug' => :'String',
|
|
43
44
|
:'main_format' => :'String',
|
|
44
45
|
:'project_image_url' => :'String',
|
|
45
46
|
:'account' => :'Account',
|
|
46
47
|
:'created_at' => :'DateTime',
|
|
47
48
|
:'updated_at' => :'DateTime',
|
|
48
|
-
:'slug' => :'String',
|
|
49
49
|
:'shares_translation_memory' => :'Boolean'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
@@ -87,6 +87,10 @@ module Phrase
|
|
|
87
87
|
self.name = attributes[:'name']
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
if attributes.key?(:'slug')
|
|
91
|
+
self.slug = attributes[:'slug']
|
|
92
|
+
end
|
|
93
|
+
|
|
90
94
|
if attributes.key?(:'main_format')
|
|
91
95
|
self.main_format = attributes[:'main_format']
|
|
92
96
|
end
|
|
@@ -107,10 +111,6 @@ module Phrase
|
|
|
107
111
|
self.updated_at = attributes[:'updated_at']
|
|
108
112
|
end
|
|
109
113
|
|
|
110
|
-
if attributes.key?(:'slug')
|
|
111
|
-
self.slug = attributes[:'slug']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
114
|
if attributes.key?(:'shares_translation_memory')
|
|
115
115
|
self.shares_translation_memory = attributes[:'shares_translation_memory']
|
|
116
116
|
end
|
|
@@ -136,12 +136,12 @@ module Phrase
|
|
|
136
136
|
self.class == o.class &&
|
|
137
137
|
id == o.id &&
|
|
138
138
|
name == o.name &&
|
|
139
|
+
slug == o.slug &&
|
|
139
140
|
main_format == o.main_format &&
|
|
140
141
|
project_image_url == o.project_image_url &&
|
|
141
142
|
account == o.account &&
|
|
142
143
|
created_at == o.created_at &&
|
|
143
144
|
updated_at == o.updated_at &&
|
|
144
|
-
slug == o.slug &&
|
|
145
145
|
shares_translation_memory == o.shares_translation_memory
|
|
146
146
|
end
|
|
147
147
|
|
|
@@ -154,7 +154,7 @@ module Phrase
|
|
|
154
154
|
# Calculates hash code according to all attributes.
|
|
155
155
|
# @return [Integer] Hash code
|
|
156
156
|
def hash
|
|
157
|
-
[id, name, main_format, project_image_url, account, created_at, updated_at,
|
|
157
|
+
[id, name, slug, main_format, project_image_url, account, created_at, updated_at, shares_translation_memory].hash
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Builds the object from hash
|
|
@@ -5,6 +5,9 @@ module Phrase
|
|
|
5
5
|
# Callback URL to send requests to
|
|
6
6
|
attr_accessor :callback_url
|
|
7
7
|
|
|
8
|
+
# Webhook secret used to calculate signature. If empty, the default project secret will be used.
|
|
9
|
+
attr_accessor :secret
|
|
10
|
+
|
|
8
11
|
# Webhook description
|
|
9
12
|
attr_accessor :description
|
|
10
13
|
|
|
@@ -18,6 +21,7 @@ module Phrase
|
|
|
18
21
|
def self.attribute_map
|
|
19
22
|
{
|
|
20
23
|
:'callback_url' => :'callback_url',
|
|
24
|
+
:'secret' => :'secret',
|
|
21
25
|
:'description' => :'description',
|
|
22
26
|
:'events' => :'events',
|
|
23
27
|
:'active' => :'active'
|
|
@@ -28,6 +32,7 @@ module Phrase
|
|
|
28
32
|
def self.openapi_types
|
|
29
33
|
{
|
|
30
34
|
:'callback_url' => :'String',
|
|
35
|
+
:'secret' => :'String',
|
|
31
36
|
:'description' => :'String',
|
|
32
37
|
:'events' => :'String',
|
|
33
38
|
:'active' => :'Boolean'
|
|
@@ -59,6 +64,10 @@ module Phrase
|
|
|
59
64
|
self.callback_url = attributes[:'callback_url']
|
|
60
65
|
end
|
|
61
66
|
|
|
67
|
+
if attributes.key?(:'secret')
|
|
68
|
+
self.secret = attributes[:'secret']
|
|
69
|
+
end
|
|
70
|
+
|
|
62
71
|
if attributes.key?(:'description')
|
|
63
72
|
self.description = attributes[:'description']
|
|
64
73
|
end
|
|
@@ -91,6 +100,7 @@ module Phrase
|
|
|
91
100
|
return true if self.equal?(o)
|
|
92
101
|
self.class == o.class &&
|
|
93
102
|
callback_url == o.callback_url &&
|
|
103
|
+
secret == o.secret &&
|
|
94
104
|
description == o.description &&
|
|
95
105
|
events == o.events &&
|
|
96
106
|
active == o.active
|
|
@@ -105,7 +115,7 @@ module Phrase
|
|
|
105
115
|
# Calculates hash code according to all attributes.
|
|
106
116
|
# @return [Integer] Hash code
|
|
107
117
|
def hash
|
|
108
|
-
[callback_url, description, events, active].hash
|
|
118
|
+
[callback_url, secret, description, events, active].hash
|
|
109
119
|
end
|
|
110
120
|
|
|
111
121
|
# Builds the object from hash
|