phrase 2.8.7 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -3
- data/docs/OrganizationJobTemplate.md +25 -0
- data/docs/OrganizationJobTemplateCreateParameters.md +19 -0
- data/docs/OrganizationJobTemplateDetails.md +31 -0
- data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +27 -0
- data/docs/OrganizationJobTemplateLocalesApi.md +341 -0
- data/docs/OrganizationJobTemplateLocalesCreateParameters.md +27 -0
- data/docs/OrganizationJobTemplateUpdateParameters.md +19 -0
- data/docs/OrganizationJobTemplatesApi.md +331 -0
- data/docs/Release.md +2 -0
- data/docs/ReleaseCreateParameters.md +2 -0
- data/docs/ReleasePreview.md +2 -0
- data/lib/phrase/api/organization_job_template_locales_api.rb +408 -0
- data/lib/phrase/api/organization_job_templates_api.rb +378 -0
- data/lib/phrase/models/organization_job_template.rb +230 -0
- data/lib/phrase/models/organization_job_template_create_parameters.rb +210 -0
- data/lib/phrase/models/organization_job_template_details.rb +267 -0
- data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +253 -0
- data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +263 -0
- data/lib/phrase/models/organization_job_template_update_parameters.rb +210 -0
- data/lib/phrase/models/release.rb +12 -1
- data/lib/phrase/models/release_create_parameters.rb +13 -1
- data/lib/phrase/models/release_preview.rb +12 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +8 -0
- data/spec/api/organization_job_template_locales_api_spec.rb +100 -0
- data/spec/api/organization_job_templates_api_spec.rb +95 -0
- data/spec/models/organization_job_template_create_parameters_spec.rb +35 -0
- data/spec/models/organization_job_template_details_spec.rb +71 -0
- data/spec/models/organization_job_template_locale_update_parameters_spec.rb +59 -0
- data/spec/models/organization_job_template_locales_create_parameters_spec.rb +59 -0
- data/spec/models/organization_job_template_spec.rb +53 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +35 -0
- data/spec/models/release_create_parameters_spec.rb +6 -0
- data/spec/models/release_preview_spec.rb +6 -0
- data/spec/models/release_spec.rb +6 -0
- metadata +240 -208
@@ -0,0 +1,210 @@
|
|
1
|
+
require 'date'
|
2
|
+
|
3
|
+
module Phrase
|
4
|
+
class OrganizationJobTemplateUpdateParameters
|
5
|
+
# Job template name
|
6
|
+
attr_accessor :name
|
7
|
+
|
8
|
+
# Briefing for the translators
|
9
|
+
attr_accessor :briefing
|
10
|
+
|
11
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
12
|
+
def self.attribute_map
|
13
|
+
{
|
14
|
+
:'name' => :'name',
|
15
|
+
:'briefing' => :'briefing'
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
# Attribute type mapping.
|
20
|
+
def self.openapi_types
|
21
|
+
{
|
22
|
+
:'name' => :'String',
|
23
|
+
:'briefing' => :'String'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# List of attributes with nullable: true
|
28
|
+
def self.openapi_nullable
|
29
|
+
Set.new([
|
30
|
+
])
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
if (!attributes.is_a?(Hash))
|
37
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Phrase::OrganizationJobTemplateUpdateParameters` initialize method"
|
38
|
+
end
|
39
|
+
|
40
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
42
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
43
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Phrase::OrganizationJobTemplateUpdateParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
44
|
+
end
|
45
|
+
h[k.to_sym] = v
|
46
|
+
}
|
47
|
+
|
48
|
+
if attributes.key?(:'name')
|
49
|
+
self.name = attributes[:'name']
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes.key?(:'briefing')
|
53
|
+
self.briefing = attributes[:'briefing']
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = Array.new
|
61
|
+
if @name.nil?
|
62
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
63
|
+
end
|
64
|
+
|
65
|
+
invalid_properties
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
def valid?
|
71
|
+
return false if @name.nil?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
name == o.name &&
|
81
|
+
briefing == o.briefing
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(o)
|
87
|
+
self == o
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Integer] Hash code
|
92
|
+
def hash
|
93
|
+
[name, briefing].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def self.build_from_hash(attributes)
|
100
|
+
new.build_from_hash(attributes)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
self.class.openapi_types.each_pair do |key, type|
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
113
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
114
|
+
end
|
115
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
118
|
+
end
|
119
|
+
|
120
|
+
self
|
121
|
+
end
|
122
|
+
|
123
|
+
# Deserializes the data based on type
|
124
|
+
# @param string type Data type
|
125
|
+
# @param string value Value to be deserialized
|
126
|
+
# @return [Object] Deserialized data
|
127
|
+
def _deserialize(type, value)
|
128
|
+
case type.to_sym
|
129
|
+
when :DateTime
|
130
|
+
DateTime.parse(value)
|
131
|
+
when :Date
|
132
|
+
Date.parse(value)
|
133
|
+
when :String
|
134
|
+
value.to_s
|
135
|
+
when :Integer
|
136
|
+
value.to_i
|
137
|
+
when :Float
|
138
|
+
value.to_f
|
139
|
+
when :Boolean
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
141
|
+
true
|
142
|
+
else
|
143
|
+
false
|
144
|
+
end
|
145
|
+
when :Object
|
146
|
+
# generic object (usually a Hash), return directly
|
147
|
+
value
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
154
|
+
{}.tap do |hash|
|
155
|
+
value.each do |k, v|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
else # model
|
160
|
+
Phrase.const_get(type).build_from_hash(value)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the string representation of the object
|
165
|
+
# @return [String] String presentation of the object
|
166
|
+
def to_s
|
167
|
+
to_hash.to_s
|
168
|
+
end
|
169
|
+
|
170
|
+
# to_body is an alias to to_hash (backward compatibility)
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
def to_body
|
173
|
+
to_hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the object in the form of hash
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_hash
|
179
|
+
hash = {}
|
180
|
+
self.class.attribute_map.each_pair do |attr, param|
|
181
|
+
value = self.send(attr)
|
182
|
+
if value.nil?
|
183
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
184
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
185
|
+
end
|
186
|
+
|
187
|
+
hash[param] = _to_hash(value)
|
188
|
+
end
|
189
|
+
hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Outputs non-array value in the form of hash
|
193
|
+
# For object, use to_hash. Otherwise, just return the value
|
194
|
+
# @param [Object] value Any valid value
|
195
|
+
# @return [Hash] Returns the value in the form of hash
|
196
|
+
def _to_hash(value)
|
197
|
+
if value.is_a?(Array)
|
198
|
+
value.compact.map { |v| _to_hash(v) }
|
199
|
+
elsif value.is_a?(Hash)
|
200
|
+
{}.tap do |hash|
|
201
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
202
|
+
end
|
203
|
+
elsif value.respond_to? :to_hash
|
204
|
+
value.to_hash
|
205
|
+
else
|
206
|
+
value
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
@@ -18,6 +18,8 @@ module Phrase
|
|
18
18
|
|
19
19
|
attr_accessor :locales
|
20
20
|
|
21
|
+
attr_accessor :tags
|
22
|
+
|
21
23
|
attr_accessor :project
|
22
24
|
|
23
25
|
attr_accessor :created_at
|
@@ -35,6 +37,7 @@ module Phrase
|
|
35
37
|
:'platforms' => :'platforms',
|
36
38
|
:'environments' => :'environments',
|
37
39
|
:'locales' => :'locales',
|
40
|
+
:'tags' => :'tags',
|
38
41
|
:'project' => :'project',
|
39
42
|
:'created_at' => :'created_at',
|
40
43
|
:'updated_at' => :'updated_at'
|
@@ -52,6 +55,7 @@ module Phrase
|
|
52
55
|
:'platforms' => :'Array<String>',
|
53
56
|
:'environments' => :'Array<String>',
|
54
57
|
:'locales' => :'Array<LocalePreview>',
|
58
|
+
:'tags' => :'Array<String>',
|
55
59
|
:'project' => :'ProjectShort',
|
56
60
|
:'created_at' => :'DateTime',
|
57
61
|
:'updated_at' => :'DateTime'
|
@@ -117,6 +121,12 @@ module Phrase
|
|
117
121
|
end
|
118
122
|
end
|
119
123
|
|
124
|
+
if attributes.key?(:'tags')
|
125
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
126
|
+
self.tags = value
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
120
130
|
if attributes.key?(:'project')
|
121
131
|
self.project = attributes[:'project']
|
122
132
|
end
|
@@ -156,6 +166,7 @@ module Phrase
|
|
156
166
|
platforms == o.platforms &&
|
157
167
|
environments == o.environments &&
|
158
168
|
locales == o.locales &&
|
169
|
+
tags == o.tags &&
|
159
170
|
project == o.project &&
|
160
171
|
created_at == o.created_at &&
|
161
172
|
updated_at == o.updated_at
|
@@ -170,7 +181,7 @@ module Phrase
|
|
170
181
|
# Calculates hash code according to all attributes.
|
171
182
|
# @return [Integer] Hash code
|
172
183
|
def hash
|
173
|
-
[id, version, app_min_version, app_max_version, description, platforms, environments, locales, project, created_at, updated_at].hash
|
184
|
+
[id, version, app_min_version, app_max_version, description, platforms, environments, locales, tags, project, created_at, updated_at].hash
|
174
185
|
end
|
175
186
|
|
176
187
|
# Builds the object from hash
|
@@ -11,6 +11,9 @@ module Phrase
|
|
11
11
|
# List of locale ids that will be included in the release. If empty, distribution locales will be used
|
12
12
|
attr_accessor :locale_ids
|
13
13
|
|
14
|
+
# Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided
|
15
|
+
attr_accessor :tags
|
16
|
+
|
14
17
|
# Branch used for release
|
15
18
|
attr_accessor :branch
|
16
19
|
|
@@ -20,6 +23,7 @@ module Phrase
|
|
20
23
|
:'description' => :'description',
|
21
24
|
:'platforms' => :'platforms',
|
22
25
|
:'locale_ids' => :'locale_ids',
|
26
|
+
:'tags' => :'tags',
|
23
27
|
:'branch' => :'branch'
|
24
28
|
}
|
25
29
|
end
|
@@ -30,6 +34,7 @@ module Phrase
|
|
30
34
|
:'description' => :'String',
|
31
35
|
:'platforms' => :'Array<String>',
|
32
36
|
:'locale_ids' => :'Array<String>',
|
37
|
+
:'tags' => :'Array<String>',
|
33
38
|
:'branch' => :'String'
|
34
39
|
}
|
35
40
|
end
|
@@ -71,6 +76,12 @@ module Phrase
|
|
71
76
|
end
|
72
77
|
end
|
73
78
|
|
79
|
+
if attributes.key?(:'tags')
|
80
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
81
|
+
self.tags = value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
74
85
|
if attributes.key?(:'branch')
|
75
86
|
self.branch = attributes[:'branch']
|
76
87
|
end
|
@@ -97,6 +108,7 @@ module Phrase
|
|
97
108
|
description == o.description &&
|
98
109
|
platforms == o.platforms &&
|
99
110
|
locale_ids == o.locale_ids &&
|
111
|
+
tags == o.tags &&
|
100
112
|
branch == o.branch
|
101
113
|
end
|
102
114
|
|
@@ -109,7 +121,7 @@ module Phrase
|
|
109
121
|
# Calculates hash code according to all attributes.
|
110
122
|
# @return [Integer] Hash code
|
111
123
|
def hash
|
112
|
-
[description, platforms, locale_ids, branch].hash
|
124
|
+
[description, platforms, locale_ids, tags, branch].hash
|
113
125
|
end
|
114
126
|
|
115
127
|
# Builds the object from hash
|
@@ -18,6 +18,8 @@ module Phrase
|
|
18
18
|
|
19
19
|
attr_accessor :locale_codes
|
20
20
|
|
21
|
+
attr_accessor :tags
|
22
|
+
|
21
23
|
attr_accessor :project
|
22
24
|
|
23
25
|
attr_accessor :created_at
|
@@ -35,6 +37,7 @@ module Phrase
|
|
35
37
|
:'platforms' => :'platforms',
|
36
38
|
:'environments' => :'environments',
|
37
39
|
:'locale_codes' => :'locale_codes',
|
40
|
+
:'tags' => :'tags',
|
38
41
|
:'project' => :'project',
|
39
42
|
:'created_at' => :'created_at',
|
40
43
|
:'updated_at' => :'updated_at'
|
@@ -52,6 +55,7 @@ module Phrase
|
|
52
55
|
:'platforms' => :'Array<String>',
|
53
56
|
:'environments' => :'Array<String>',
|
54
57
|
:'locale_codes' => :'Array<String>',
|
58
|
+
:'tags' => :'Array<String>',
|
55
59
|
:'project' => :'ProjectShort',
|
56
60
|
:'created_at' => :'DateTime',
|
57
61
|
:'updated_at' => :'DateTime'
|
@@ -117,6 +121,12 @@ module Phrase
|
|
117
121
|
end
|
118
122
|
end
|
119
123
|
|
124
|
+
if attributes.key?(:'tags')
|
125
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
126
|
+
self.tags = value
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
120
130
|
if attributes.key?(:'project')
|
121
131
|
self.project = attributes[:'project']
|
122
132
|
end
|
@@ -156,6 +166,7 @@ module Phrase
|
|
156
166
|
platforms == o.platforms &&
|
157
167
|
environments == o.environments &&
|
158
168
|
locale_codes == o.locale_codes &&
|
169
|
+
tags == o.tags &&
|
159
170
|
project == o.project &&
|
160
171
|
created_at == o.created_at &&
|
161
172
|
updated_at == o.updated_at
|
@@ -170,7 +181,7 @@ module Phrase
|
|
170
181
|
# Calculates hash code according to all attributes.
|
171
182
|
# @return [Integer] Hash code
|
172
183
|
def hash
|
173
|
-
[id, version, app_min_version, app_max_version, description, platforms, environments, locale_codes, project, created_at, updated_at].hash
|
184
|
+
[id, version, app_min_version, app_max_version, description, platforms, environments, locale_codes, tags, project, created_at, updated_at].hash
|
174
185
|
end
|
175
186
|
|
176
187
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
data/lib/phrase.rb
CHANGED
@@ -123,6 +123,12 @@ require 'phrase/models/notification_group'
|
|
123
123
|
require 'phrase/models/notification_group_detail'
|
124
124
|
require 'phrase/models/order_confirm_parameters'
|
125
125
|
require 'phrase/models/order_create_parameters'
|
126
|
+
require 'phrase/models/organization_job_template'
|
127
|
+
require 'phrase/models/organization_job_template_create_parameters'
|
128
|
+
require 'phrase/models/organization_job_template_details'
|
129
|
+
require 'phrase/models/organization_job_template_locale_update_parameters'
|
130
|
+
require 'phrase/models/organization_job_template_locales_create_parameters'
|
131
|
+
require 'phrase/models/organization_job_template_update_parameters'
|
126
132
|
require 'phrase/models/project'
|
127
133
|
require 'phrase/models/project_create_parameters'
|
128
134
|
require 'phrase/models/project_details'
|
@@ -233,6 +239,8 @@ require 'phrase/api/members_api'
|
|
233
239
|
require 'phrase/api/notification_groups_api'
|
234
240
|
require 'phrase/api/notifications_api'
|
235
241
|
require 'phrase/api/orders_api'
|
242
|
+
require 'phrase/api/organization_job_template_locales_api'
|
243
|
+
require 'phrase/api/organization_job_templates_api'
|
236
244
|
require 'phrase/api/projects_api'
|
237
245
|
require 'phrase/api/releases_api'
|
238
246
|
require 'phrase/api/screenshot_markers_api'
|
@@ -0,0 +1,100 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::OrganizationJobTemplateLocalesApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'OrganizationJobTemplateLocalesApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::OrganizationJobTemplateLocalesApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of OrganizationJobTemplateLocalesApi' do
|
18
|
+
it 'should create an instance of OrganizationJobTemplateLocalesApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::OrganizationJobTemplateLocalesApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for organization_job_template_locale_delete
|
24
|
+
# Delete an organization job template locale
|
25
|
+
# Delete an existing organization job template locale.
|
26
|
+
# @param account_id Account ID
|
27
|
+
# @param job_template_id Job Template ID
|
28
|
+
# @param job_template_locale_id Job Template Locale ID
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
31
|
+
# @return [nil]
|
32
|
+
describe 'organization_job_template_locale_delete test' do
|
33
|
+
it 'should work' do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# unit tests for organization_job_template_locale_show
|
39
|
+
# Get a single organization job template locale
|
40
|
+
# Get a single job template locale for a given organization job template.
|
41
|
+
# @param account_id Account ID
|
42
|
+
# @param job_template_id Job Template ID
|
43
|
+
# @param job_template_locale_id Job Template Locale ID
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
46
|
+
# @return [JobTemplateLocales]
|
47
|
+
describe 'organization_job_template_locale_show test' 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
|
+
# unit tests for organization_job_template_locale_update
|
54
|
+
# Update an organization job template locale
|
55
|
+
# Update an existing organization job template locale.
|
56
|
+
# @param account_id Account ID
|
57
|
+
# @param job_template_id Job Template ID
|
58
|
+
# @param job_template_locale_id Job Template Locale ID
|
59
|
+
# @param organization_job_template_locale_update_parameters
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
62
|
+
# @return [JobTemplateLocales]
|
63
|
+
describe 'organization_job_template_locale_update test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for organization_job_template_locales_create
|
70
|
+
# Create an organization job template locale
|
71
|
+
# Create a new organization job template locale.
|
72
|
+
# @param account_id Account ID
|
73
|
+
# @param job_template_id Job Template ID
|
74
|
+
# @param organization_job_template_locales_create_parameters
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
77
|
+
# @return [JobTemplateLocales]
|
78
|
+
describe 'organization_job_template_locales_create test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for organization_job_template_locales_list
|
85
|
+
# List organization job template locales
|
86
|
+
# List all job template locales for a given organization job template.
|
87
|
+
# @param account_id Account ID
|
88
|
+
# @param job_template_id Job Template ID
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
91
|
+
# @option opts [Integer] :page Page number
|
92
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
93
|
+
# @return [Array<JobTemplateLocales>]
|
94
|
+
describe 'organization_job_template_locales_list test' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::OrganizationJobTemplatesApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'OrganizationJobTemplatesApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::OrganizationJobTemplatesApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of OrganizationJobTemplatesApi' do
|
18
|
+
it 'should create an instance of OrganizationJobTemplatesApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::OrganizationJobTemplatesApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for organization_job_template_create
|
24
|
+
# Create an organization job template
|
25
|
+
# Create a new organization job template.
|
26
|
+
# @param account_id Account ID
|
27
|
+
# @param organization_job_template_create_parameters
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
30
|
+
# @return [OrganizationJobTemplateDetails]
|
31
|
+
describe 'organization_job_template_create 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 organization_job_template_delete
|
38
|
+
# Delete an organization job template
|
39
|
+
# Delete an existing organization job template.
|
40
|
+
# @param account_id Account ID
|
41
|
+
# @param id ID
|
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 'organization_job_template_delete 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 organization_job_template_update
|
52
|
+
# Update an organization job template
|
53
|
+
# Update an existing organization job template.
|
54
|
+
# @param account_id Account ID
|
55
|
+
# @param id ID
|
56
|
+
# @param organization_job_template_update_parameters
|
57
|
+
# @param [Hash] opts the optional parameters
|
58
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
59
|
+
# @return [OrganizationJobTemplateDetails]
|
60
|
+
describe 'organization_job_template_update test' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# unit tests for organization_job_templates_list
|
67
|
+
# List organization job templates
|
68
|
+
# List all job templates for the given account.
|
69
|
+
# @param account_id Account ID
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
72
|
+
# @option opts [Integer] :page Page number
|
73
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
74
|
+
# @return [Array<OrganizationJobTemplate>]
|
75
|
+
describe 'organization_job_templates_list 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 organization_job_templates_show
|
82
|
+
# Get a single organization job template
|
83
|
+
# Get details on a single organization job template for a given account.
|
84
|
+
# @param account_id Account ID
|
85
|
+
# @param id ID
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
88
|
+
# @return [OrganizationJobTemplateDetails]
|
89
|
+
describe 'organization_job_templates_show test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::OrganizationJobTemplateCreateParameters
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'OrganizationJobTemplateCreateParameters' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::OrganizationJobTemplateCreateParameters.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of OrganizationJobTemplateCreateParameters' do
|
19
|
+
it 'should create an instance of OrganizationJobTemplateCreateParameters' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::OrganizationJobTemplateCreateParameters)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "name"' 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 "briefing"' 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
|
+
end
|