phrase 3.7.1 → 4.4.0
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/CHANGELOG.md +63 -0
- data/README.md +13 -37
- data/docs/AccountDetails.md +3 -1
- data/docs/JobDetails.md +2 -0
- data/docs/JobKeysDeleteParameters.md +19 -0
- data/docs/JobsApi.md +16 -14
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/KeysApi.md +4 -4
- data/docs/KeysExcludeParameters.md +1 -1
- data/docs/KeysIncludeParameters.md +1 -1
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/LocalesApi.md +3 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +4 -2
- data/docs/QualityPerformanceScoreApi.md +8 -8
- data/docs/QualityPerformanceScoreList200Response.md +21 -0
- data/docs/QualityPerformanceScoreList200ResponseAnyOf.md +19 -0
- data/docs/QualityPerformanceScoreList200ResponseAnyOfData.md +17 -0
- data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md → QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md} +2 -2
- data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md → QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md} +2 -2
- data/docs/{ProjectsQualityPerformanceScoreRequest.md → QualityPerformanceScoreListRequest.md} +2 -2
- data/docs/RepoSyncEvent.md +3 -3
- data/docs/RepoSyncEventsApi.md +138 -0
- data/docs/RepoSyncsApi.md +2 -132
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/Upload.md +3 -1
- data/lib/phrase/api/jobs_api.rb +24 -16
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +3 -0
- data/lib/phrase/api/quality_performance_score_api.rb +15 -15
- data/lib/phrase/api/repo_sync_events_api.rb +160 -0
- data/lib/phrase/api/repo_syncs_api.rb +4 -154
- data/lib/phrase/models/account_details.rb +15 -4
- data/lib/phrase/models/job_details.rb +10 -1
- data/lib/phrase/models/job_keys_delete_parameters.rb +214 -0
- data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
- data/lib/phrase/models/keys_include_parameters.rb +1 -1
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/keys_tag_parameters.rb +1 -1
- data/lib/phrase/models/keys_untag_parameters.rb +1 -1
- data/lib/phrase/models/project_update_parameters.rb +48 -4
- data/lib/phrase/models/{projects_quality_performance_score200_response.rb → quality_performance_score_list200_response.rb} +6 -6
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of.rb → quality_performance_score_list200_response_any_of.rb} +5 -5
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data.rb → quality_performance_score_list200_response_any_of_data.rb} +4 -4
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data_translations_inner.rb → quality_performance_score_list200_response_any_of_data_translations_inner.rb} +3 -3
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_errors_inner.rb → quality_performance_score_list200_response_any_of_errors_inner.rb} +3 -3
- data/lib/phrase/models/{projects_quality_performance_score_request.rb → quality_performance_score_list_request.rb} +3 -3
- data/lib/phrase/models/repo_sync_event.rb +15 -15
- data/lib/phrase/models/upload.rb +14 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +8 -22
- data/spec/api/jobs_api_spec.rb +6 -5
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/quality_performance_score_api_spec.rb +4 -4
- data/spec/api/repo_sync_events_api_spec.rb +52 -0
- data/spec/api/repo_syncs_api_spec.rb +2 -31
- data/spec/models/account_details_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +6 -0
- data/spec/models/{gitlab_sync_export_spec.rb → job_keys_delete_parameters_spec.rb} +8 -8
- data/spec/models/project_update_parameters_spec.rb +10 -0
- data/spec/models/quality_performance_score_list200_response_any_of_data_spec.rb +29 -0
- data/spec/models/{projects_quality_performance_score200_response_any_of_data_translations_inner_spec.rb → quality_performance_score_list200_response_any_of_data_translations_inner_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_any_of_errors_inner_spec.rb → quality_performance_score_list200_response_any_of_errors_inner_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_any_of_spec.rb → quality_performance_score_list200_response_any_of_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_spec.rb → quality_performance_score_list200_response_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score_request_spec.rb → quality_performance_score_list_request_spec.rb} +6 -6
- data/spec/models/repo_sync_event_spec.rb +2 -2
- data/spec/models/upload_spec.rb +6 -0
- metadata +259 -315
- data/docs/BitbucketSync.md +0 -27
- data/docs/BitbucketSyncApi.md +0 -197
- data/docs/BitbucketSyncExportParameters.md +0 -17
- data/docs/BitbucketSyncExportResponse.md +0 -17
- data/docs/BitbucketSyncImportParameters.md +0 -17
- data/docs/GitHubSyncApi.md +0 -130
- data/docs/GitLabSyncApi.md +0 -463
- data/docs/GithubSyncExportParameters.md +0 -17
- data/docs/GithubSyncImportParameters.md +0 -17
- data/docs/GitlabSync.md +0 -37
- data/docs/GitlabSyncExport.md +0 -19
- data/docs/GitlabSyncExportParameters.md +0 -17
- data/docs/GitlabSyncHistory.md +0 -25
- data/docs/GitlabSyncHistoryErrorsInner.md +0 -19
- data/docs/GitlabSyncImportParameters.md +0 -17
- data/docs/ProjectsQualityPerformanceScore200Response.md +0 -21
- data/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +0 -19
- data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +0 -17
- data/docs/RepoSyncEventErrorsInner.md +0 -16
- data/lib/phrase/api/bitbucket_sync_api.rb +0 -219
- data/lib/phrase/api/git_hub_sync_api.rb +0 -146
- data/lib/phrase/api/git_lab_sync_api.rb +0 -510
- data/lib/phrase/models/bitbucket_sync.rb +0 -243
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/bitbucket_sync_export_response.rb +0 -196
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/github_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/github_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/gitlab_sync.rb +0 -286
- data/lib/phrase/models/gitlab_sync_export.rb +0 -205
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/gitlab_sync_history.rb +0 -234
- data/lib/phrase/models/gitlab_sync_history_errors_inner.rb +0 -205
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/repo_sync_event_errors_inner.rb +0 -207
- data/spec/api/bitbucket_sync_api_spec.rb +0 -64
- data/spec/api/git_hub_sync_api_spec.rb +0 -49
- data/spec/api/git_lab_sync_api_spec.rb +0 -125
- data/spec/models/bitbucket_sync_export_parameters_spec.rb +0 -29
- data/spec/models/bitbucket_sync_export_response_spec.rb +0 -29
- data/spec/models/bitbucket_sync_import_parameters_spec.rb +0 -29
- data/spec/models/bitbucket_sync_spec.rb +0 -59
- data/spec/models/github_sync_export_parameters_spec.rb +0 -29
- data/spec/models/github_sync_import_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_export_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_history_errors_inner_spec.rb +0 -35
- data/spec/models/gitlab_sync_history_spec.rb +0 -53
- data/spec/models/gitlab_sync_import_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_spec.rb +0 -89
- data/spec/models/projects_quality_performance_score200_response_any_of_data_spec.rb +0 -29
- data/spec/models/repo_sync_event_errors_inner_spec.rb +0 -23
@@ -1,207 +0,0 @@
|
|
1
|
-
require 'date'
|
2
|
-
|
3
|
-
module Phrase
|
4
|
-
class RepoSyncEventErrorsInner
|
5
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
6
|
-
def self.attribute_map
|
7
|
-
{
|
8
|
-
}
|
9
|
-
end
|
10
|
-
|
11
|
-
# Attribute type mapping.
|
12
|
-
def self.openapi_types
|
13
|
-
{
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
|
-
# List of attributes with nullable: true
|
18
|
-
def self.openapi_nullable
|
19
|
-
Set.new([
|
20
|
-
])
|
21
|
-
end
|
22
|
-
|
23
|
-
# List of class defined in anyOf (OpenAPI v3)
|
24
|
-
def self.openapi_any_of
|
25
|
-
[
|
26
|
-
:'Object',
|
27
|
-
:'String'
|
28
|
-
]
|
29
|
-
end
|
30
|
-
|
31
|
-
# Initializes the object
|
32
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
33
|
-
def initialize(attributes = {})
|
34
|
-
if (!attributes.is_a?(Hash))
|
35
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::RepoSyncEventErrorsInner` initialize method"
|
36
|
-
end
|
37
|
-
|
38
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
39
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
40
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
41
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::RepoSyncEventErrorsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
42
|
-
end
|
43
|
-
h[k.to_sym] = v
|
44
|
-
}
|
45
|
-
end
|
46
|
-
|
47
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
48
|
-
# @return Array for valid properties with the reasons
|
49
|
-
def list_invalid_properties
|
50
|
-
invalid_properties = Array.new
|
51
|
-
invalid_properties
|
52
|
-
end
|
53
|
-
|
54
|
-
# Check to see if the all the properties in the model are valid
|
55
|
-
# @return true if the model is valid
|
56
|
-
def valid?
|
57
|
-
_any_of_found = false
|
58
|
-
self.class.openapi_any_of.each do |_class|
|
59
|
-
_any_of = Phrase.const_get(_class).build_from_hash(self.to_hash)
|
60
|
-
if _any_of.valid?
|
61
|
-
_any_of_found = true
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
if !_any_of_found
|
66
|
-
return false
|
67
|
-
end
|
68
|
-
|
69
|
-
true
|
70
|
-
end
|
71
|
-
|
72
|
-
# Checks equality by comparing each attribute.
|
73
|
-
# @param [Object] Object to be compared
|
74
|
-
def ==(o)
|
75
|
-
return true if self.equal?(o)
|
76
|
-
self.class == o.class
|
77
|
-
end
|
78
|
-
|
79
|
-
# @see the `==` method
|
80
|
-
# @param [Object] Object to be compared
|
81
|
-
def eql?(o)
|
82
|
-
self == o
|
83
|
-
end
|
84
|
-
|
85
|
-
# Calculates hash code according to all attributes.
|
86
|
-
# @return [Integer] Hash code
|
87
|
-
def hash
|
88
|
-
[].hash
|
89
|
-
end
|
90
|
-
|
91
|
-
# Builds the object from hash
|
92
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
-
# @return [Object] Returns the model itself
|
94
|
-
def self.build_from_hash(attributes)
|
95
|
-
new.build_from_hash(attributes)
|
96
|
-
end
|
97
|
-
|
98
|
-
# Builds the object from hash
|
99
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
100
|
-
# @return [Object] Returns the model itself
|
101
|
-
def build_from_hash(attributes)
|
102
|
-
return nil unless attributes.is_a?(Hash)
|
103
|
-
self.class.openapi_types.each_pair do |key, type|
|
104
|
-
if type =~ /\AArray<(.*)>/i
|
105
|
-
# check to ensure the input is an array given that the attribute
|
106
|
-
# is documented as an array but the input is not
|
107
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
108
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
109
|
-
end
|
110
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
111
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
112
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
113
|
-
end
|
114
|
-
|
115
|
-
self
|
116
|
-
end
|
117
|
-
|
118
|
-
# Deserializes the data based on type
|
119
|
-
# @param string type Data type
|
120
|
-
# @param string value Value to be deserialized
|
121
|
-
# @return [Object] Deserialized data
|
122
|
-
def _deserialize(type, value)
|
123
|
-
case type.to_sym
|
124
|
-
when :DateTime
|
125
|
-
DateTime.parse(value)
|
126
|
-
when :Date
|
127
|
-
Date.parse(value)
|
128
|
-
when :Time
|
129
|
-
Time.parse(value)
|
130
|
-
when :String
|
131
|
-
value.to_s
|
132
|
-
when :Integer
|
133
|
-
value.to_i
|
134
|
-
when :Float
|
135
|
-
value.to_f
|
136
|
-
when :Boolean
|
137
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
-
true
|
139
|
-
else
|
140
|
-
false
|
141
|
-
end
|
142
|
-
when :Object
|
143
|
-
# generic object (usually a Hash), return directly
|
144
|
-
value
|
145
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
-
inner_type = Regexp.last_match[:inner_type]
|
147
|
-
value.map { |v| _deserialize(inner_type, v) }
|
148
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
-
k_type = Regexp.last_match[:k_type]
|
150
|
-
v_type = Regexp.last_match[:v_type]
|
151
|
-
{}.tap do |hash|
|
152
|
-
value.each do |k, v|
|
153
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
-
end
|
155
|
-
end
|
156
|
-
else # model
|
157
|
-
Phrase.const_get(type).build_from_hash(value)
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
# Returns the string representation of the object
|
162
|
-
# @return [String] String presentation of the object
|
163
|
-
def to_s
|
164
|
-
to_hash.to_s
|
165
|
-
end
|
166
|
-
|
167
|
-
# to_body is an alias to to_hash (backward compatibility)
|
168
|
-
# @return [Hash] Returns the object in the form of hash
|
169
|
-
def to_body
|
170
|
-
to_hash
|
171
|
-
end
|
172
|
-
|
173
|
-
# Returns the object in the form of hash
|
174
|
-
# @return [Hash] Returns the object in the form of hash
|
175
|
-
def to_hash
|
176
|
-
hash = {}
|
177
|
-
self.class.attribute_map.each_pair do |attr, param|
|
178
|
-
value = self.send(attr)
|
179
|
-
if value.nil?
|
180
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
181
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
182
|
-
end
|
183
|
-
|
184
|
-
hash[param] = _to_hash(value)
|
185
|
-
end
|
186
|
-
hash
|
187
|
-
end
|
188
|
-
|
189
|
-
# Outputs non-array value in the form of hash
|
190
|
-
# For object, use to_hash. Otherwise, just return the value
|
191
|
-
# @param [Object] value Any valid value
|
192
|
-
# @return [Hash] Returns the value in the form of hash
|
193
|
-
def _to_hash(value)
|
194
|
-
if value.is_a?(Array)
|
195
|
-
value.compact.map { |v| _to_hash(v) }
|
196
|
-
elsif value.is_a?(Hash)
|
197
|
-
{}.tap do |hash|
|
198
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
199
|
-
end
|
200
|
-
elsif value.respond_to? :to_hash
|
201
|
-
value.to_hash
|
202
|
-
else
|
203
|
-
value
|
204
|
-
end
|
205
|
-
end
|
206
|
-
end
|
207
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
# Unit tests for Phrase::BitbucketSyncApi
|
5
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
-
# Please update as you see appropriate
|
7
|
-
describe 'BitbucketSyncApi' do
|
8
|
-
before do
|
9
|
-
# run before each test
|
10
|
-
@api_instance = Phrase::BitbucketSyncApi.new
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
# run after each test
|
15
|
-
end
|
16
|
-
|
17
|
-
describe 'test an instance of BitbucketSyncApi' do
|
18
|
-
it 'should create an instance of BitbucketSyncApi' do
|
19
|
-
expect(@api_instance).to be_instance_of(Phrase::BitbucketSyncApi)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# unit tests for bitbucket_sync_export
|
24
|
-
# Export from Phrase Strings to Bitbucket
|
25
|
-
# Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
26
|
-
# @param id ID
|
27
|
-
# @param bitbucket_sync_export_parameters
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
30
|
-
# @return [BitbucketSyncExportResponse]
|
31
|
-
describe 'bitbucket_sync_export test' do
|
32
|
-
it 'should work' do
|
33
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# unit tests for bitbucket_sync_import
|
38
|
-
# Import to Phrase Strings from Bitbucket
|
39
|
-
# Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
40
|
-
# @param id ID
|
41
|
-
# @param bitbucket_sync_import_parameters
|
42
|
-
# @param [Hash] opts the optional parameters
|
43
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
44
|
-
# @return [nil]
|
45
|
-
describe 'bitbucket_sync_import test' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# unit tests for bitbucket_syncs_list
|
52
|
-
# List Bitbucket syncs
|
53
|
-
# List all Bitbucket repositories for which synchronisation with Phrase Strings is activated.
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
56
|
-
# @option opts [String] :account_id Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
|
57
|
-
# @return [Array<BitbucketSync>]
|
58
|
-
describe 'bitbucket_syncs_list test' do
|
59
|
-
it 'should work' do
|
60
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
# Unit tests for Phrase::GitHubSyncApi
|
5
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
-
# Please update as you see appropriate
|
7
|
-
describe 'GitHubSyncApi' do
|
8
|
-
before do
|
9
|
-
# run before each test
|
10
|
-
@api_instance = Phrase::GitHubSyncApi.new
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
# run after each test
|
15
|
-
end
|
16
|
-
|
17
|
-
describe 'test an instance of GitHubSyncApi' do
|
18
|
-
it 'should create an instance of GitHubSyncApi' do
|
19
|
-
expect(@api_instance).to be_instance_of(Phrase::GitHubSyncApi)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# unit tests for github_sync_export
|
24
|
-
# Export from Phrase Strings to GitHub
|
25
|
-
# Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
26
|
-
# @param github_sync_export_parameters
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
29
|
-
# @return [nil]
|
30
|
-
describe 'github_sync_export test' do
|
31
|
-
it 'should work' do
|
32
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# unit tests for github_sync_import
|
37
|
-
# Import to Phrase Strings from GitHub
|
38
|
-
# Import files to Phrase Strings from your connected GitHub repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
39
|
-
# @param github_sync_import_parameters
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
42
|
-
# @return [nil]
|
43
|
-
describe 'github_sync_import test' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
end
|
@@ -1,125 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
# Unit tests for Phrase::GitLabSyncApi
|
5
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
-
# Please update as you see appropriate
|
7
|
-
describe 'GitLabSyncApi' do
|
8
|
-
before do
|
9
|
-
# run before each test
|
10
|
-
@api_instance = Phrase::GitLabSyncApi.new
|
11
|
-
end
|
12
|
-
|
13
|
-
after do
|
14
|
-
# run after each test
|
15
|
-
end
|
16
|
-
|
17
|
-
describe 'test an instance of GitLabSyncApi' do
|
18
|
-
it 'should create an instance of GitLabSyncApi' do
|
19
|
-
expect(@api_instance).to be_instance_of(Phrase::GitLabSyncApi)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# unit tests for gitlab_sync_delete
|
24
|
-
# Delete single Sync Setting
|
25
|
-
# Deletes a single GitLab Sync Setting.
|
26
|
-
# @param id ID
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
29
|
-
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
30
|
-
# @return [nil]
|
31
|
-
describe 'gitlab_sync_delete test' do
|
32
|
-
it 'should work' do
|
33
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# unit tests for gitlab_sync_export
|
38
|
-
# Export from Phrase Strings to GitLab
|
39
|
-
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
40
|
-
# @param gitlab_sync_id Gitlab Sync ID
|
41
|
-
# @param gitlab_sync_export_parameters
|
42
|
-
# @param [Hash] opts the optional parameters
|
43
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
44
|
-
# @return [GitlabSyncExport]
|
45
|
-
describe 'gitlab_sync_export test' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# unit tests for gitlab_sync_history
|
52
|
-
# History of single Sync Setting
|
53
|
-
# List history for a single Sync Setting.
|
54
|
-
# @param gitlab_sync_id Gitlab Sync ID
|
55
|
-
# @param [Hash] opts the optional parameters
|
56
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
57
|
-
# @option opts [Integer] :page Page number
|
58
|
-
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
59
|
-
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
60
|
-
# @return [Array<GitlabSyncHistory>]
|
61
|
-
describe 'gitlab_sync_history test' do
|
62
|
-
it 'should work' do
|
63
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# unit tests for gitlab_sync_import
|
68
|
-
# Import from GitLab to Phrase
|
69
|
-
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
70
|
-
# @param gitlab_sync_id Gitlab Sync ID
|
71
|
-
# @param gitlab_sync_import_parameters
|
72
|
-
# @param [Hash] opts the optional parameters
|
73
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
74
|
-
# @return [Array<Upload>]
|
75
|
-
describe 'gitlab_sync_import test' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
# unit tests for gitlab_sync_list
|
82
|
-
# List GitLab syncs
|
83
|
-
# List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
84
|
-
# @param [Hash] opts the optional parameters
|
85
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
86
|
-
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
87
|
-
# @return [Array<GitlabSync>]
|
88
|
-
describe 'gitlab_sync_list test' do
|
89
|
-
it 'should work' do
|
90
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# unit tests for gitlab_sync_show
|
95
|
-
# Get single Sync Setting
|
96
|
-
# Shows a single GitLab Sync Setting.
|
97
|
-
# @param id ID
|
98
|
-
# @param [Hash] opts the optional parameters
|
99
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
100
|
-
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
101
|
-
# @return [GitlabSync]
|
102
|
-
describe 'gitlab_sync_show test' do
|
103
|
-
it 'should work' do
|
104
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# unit tests for gitlab_sync_update
|
109
|
-
# Update single Sync Setting
|
110
|
-
# Updates a single GitLab Sync Setting.
|
111
|
-
# @param id ID
|
112
|
-
# @param [Hash] opts the optional parameters
|
113
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
114
|
-
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
115
|
-
# @option opts [String] :phrase_project_code Code of the related Phrase Strings Project.
|
116
|
-
# @option opts [Integer] :gitlab_project_id ID of the related GitLab Project.
|
117
|
-
# @option opts [String] :gitlab_branch_name Name of the GitLab Branch.
|
118
|
-
# @return [GitlabSync]
|
119
|
-
describe 'gitlab_sync_update test' do
|
120
|
-
it 'should work' do
|
121
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::BitbucketSyncExportParameters
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'BitbucketSyncExportParameters' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::BitbucketSyncExportParameters.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of BitbucketSyncExportParameters' do
|
19
|
-
it 'should create an instance of BitbucketSyncExportParameters' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::BitbucketSyncExportParameters)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "account_id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::BitbucketSyncExportResponse
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'BitbucketSyncExportResponse' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::BitbucketSyncExportResponse.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of BitbucketSyncExportResponse' do
|
19
|
-
it 'should create an instance of BitbucketSyncExportResponse' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::BitbucketSyncExportResponse)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "status_path"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::BitbucketSyncImportParameters
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'BitbucketSyncImportParameters' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::BitbucketSyncImportParameters.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of BitbucketSyncImportParameters' do
|
19
|
-
it 'should create an instance of BitbucketSyncImportParameters' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::BitbucketSyncImportParameters)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "account_id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::BitbucketSync
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'BitbucketSync' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::BitbucketSync.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of BitbucketSync' do
|
19
|
-
it 'should create an instance of BitbucketSync' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::BitbucketSync)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test attribute "repository_name"' do
|
30
|
-
it 'should work' do
|
31
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
describe 'test attribute "last_export_to_bitbucket_at"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "last_import_from_bitbucket_at"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "valid_phraseapp_yaml"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "phraseapp_projects"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::GithubSyncExportParameters
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'GithubSyncExportParameters' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::GithubSyncExportParameters.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of GithubSyncExportParameters' do
|
19
|
-
it 'should create an instance of GithubSyncExportParameters' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::GithubSyncExportParameters)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "project_id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::GithubSyncImportParameters
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'GithubSyncImportParameters' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::GithubSyncImportParameters.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of GithubSyncImportParameters' do
|
19
|
-
it 'should create an instance of GithubSyncImportParameters' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::GithubSyncImportParameters)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "project_id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for Phrase::GitlabSyncExportParameters
|
6
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'GitlabSyncExportParameters' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = Phrase::GitlabSyncExportParameters.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of GitlabSyncExportParameters' do
|
19
|
-
it 'should create an instance of GitlabSyncExportParameters' do
|
20
|
-
expect(@instance).to be_instance_of(Phrase::GitlabSyncExportParameters)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "account_id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|