pulp_ansible_client 0.11.0.dev1637205359 → 0.11.0.dev1638328524

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  4. data/docs/AnsibleGitRemote.md +23 -23
  5. data/docs/AnsibleGitRemoteResponse.md +23 -23
  6. data/docs/AnsibleRoleResponse.md +2 -2
  7. data/docs/PatchedansibleGitRemote.md +23 -23
  8. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
  9. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
  10. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
  11. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
  12. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
  13. data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
  14. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +191 -0
  15. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
  16. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +291 -118
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +122 -122
  19. data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
  20. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +158 -0
  21. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  22. data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
  23. data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
  24. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
  25. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
  26. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +183 -0
  27. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +277 -112
  28. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +150 -0
  29. data/lib/pulp_ansible_client/version.rb +1 -1
  30. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  31. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  32. data/spec/models/ansible_git_remote_spec.rb +18 -18
  33. data/spec/models/ansible_role_response_spec.rb +2 -2
  34. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  35. metadata +70 -70
@@ -15,58 +15,58 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- attr_accessor :pulp_href
18
+ # A unique name for this remote.
19
+ attr_accessor :name
19
20
 
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
21
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
+ attr_accessor :sock_read_timeout
22
23
 
23
- # Limits total download rate in requests per second
24
- attr_accessor :rate_limit
24
+ # A PEM encoded client certificate used for authentication.
25
+ attr_accessor :client_cert
25
26
 
26
- # Timestamp of the most recent update of the remote.
27
- attr_accessor :pulp_last_updated
27
+ # Headers for aiohttp.Clientsession
28
+ attr_accessor :headers
28
29
 
29
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
30
- attr_accessor :max_retries
30
+ attr_accessor :pulp_href
31
31
 
32
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
33
- attr_accessor :sock_connect_timeout
32
+ # The proxy URL. Format: scheme://host:port
33
+ attr_accessor :proxy_url
34
+
35
+ # Timestamp of the most recent update of the remote.
36
+ attr_accessor :pulp_last_updated
34
37
 
35
38
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
39
  attr_accessor :ca_cert
37
40
 
38
- # The proxy URL. Format: scheme://host:port
39
- attr_accessor :proxy_url
41
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
42
+ attr_accessor :sock_connect_timeout
40
43
 
41
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
42
- attr_accessor :sock_read_timeout
44
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
45
+ attr_accessor :max_retries
43
46
 
44
- # A PEM encoded client certificate used for authentication.
45
- attr_accessor :client_cert
47
+ # Limits total download rate in requests per second
48
+ attr_accessor :rate_limit
46
49
 
47
50
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
51
  attr_accessor :total_timeout
49
52
 
50
- # Headers for aiohttp.Clientsession
51
- attr_accessor :headers
52
-
53
53
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
54
54
  attr_accessor :connect_timeout
55
55
 
56
- # A unique name for this remote.
57
- attr_accessor :name
58
-
59
- # Total number of simultaneous connections. If not set then the default value will be used.
60
- attr_accessor :download_concurrency
61
-
62
- attr_accessor :pulp_labels
63
-
64
56
  # If True, TLS peer validation must be performed.
65
57
  attr_accessor :tls_validation
66
58
 
59
+ attr_accessor :pulp_labels
60
+
67
61
  # The URL of an external content source.
68
62
  attr_accessor :url
69
63
 
64
+ # Timestamp of creation.
65
+ attr_accessor :pulp_created
66
+
67
+ # Total number of simultaneous connections. If not set then the default value will be used.
68
+ attr_accessor :download_concurrency
69
+
70
70
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
71
71
  attr_accessor :metadata_only
72
72
 
@@ -76,24 +76,24 @@ module PulpAnsibleClient
76
76
  # Attribute mapping from ruby-style variable name to JSON key.
77
77
  def self.attribute_map
78
78
  {
79
+ :'name' => :'name',
80
+ :'sock_read_timeout' => :'sock_read_timeout',
81
+ :'client_cert' => :'client_cert',
82
+ :'headers' => :'headers',
79
83
  :'pulp_href' => :'pulp_href',
80
- :'pulp_created' => :'pulp_created',
81
- :'rate_limit' => :'rate_limit',
84
+ :'proxy_url' => :'proxy_url',
82
85
  :'pulp_last_updated' => :'pulp_last_updated',
83
- :'max_retries' => :'max_retries',
84
- :'sock_connect_timeout' => :'sock_connect_timeout',
85
86
  :'ca_cert' => :'ca_cert',
86
- :'proxy_url' => :'proxy_url',
87
- :'sock_read_timeout' => :'sock_read_timeout',
88
- :'client_cert' => :'client_cert',
87
+ :'sock_connect_timeout' => :'sock_connect_timeout',
88
+ :'max_retries' => :'max_retries',
89
+ :'rate_limit' => :'rate_limit',
89
90
  :'total_timeout' => :'total_timeout',
90
- :'headers' => :'headers',
91
91
  :'connect_timeout' => :'connect_timeout',
92
- :'name' => :'name',
93
- :'download_concurrency' => :'download_concurrency',
94
- :'pulp_labels' => :'pulp_labels',
95
92
  :'tls_validation' => :'tls_validation',
93
+ :'pulp_labels' => :'pulp_labels',
96
94
  :'url' => :'url',
95
+ :'pulp_created' => :'pulp_created',
96
+ :'download_concurrency' => :'download_concurrency',
97
97
  :'metadata_only' => :'metadata_only',
98
98
  :'git_ref' => :'git_ref'
99
99
  }
@@ -102,24 +102,24 @@ module PulpAnsibleClient
102
102
  # Attribute type mapping.
103
103
  def self.openapi_types
104
104
  {
105
+ :'name' => :'String',
106
+ :'sock_read_timeout' => :'Float',
107
+ :'client_cert' => :'String',
108
+ :'headers' => :'Array<Object>',
105
109
  :'pulp_href' => :'String',
106
- :'pulp_created' => :'DateTime',
107
- :'rate_limit' => :'Integer',
110
+ :'proxy_url' => :'String',
108
111
  :'pulp_last_updated' => :'DateTime',
109
- :'max_retries' => :'Integer',
110
- :'sock_connect_timeout' => :'Float',
111
112
  :'ca_cert' => :'String',
112
- :'proxy_url' => :'String',
113
- :'sock_read_timeout' => :'Float',
114
- :'client_cert' => :'String',
113
+ :'sock_connect_timeout' => :'Float',
114
+ :'max_retries' => :'Integer',
115
+ :'rate_limit' => :'Integer',
115
116
  :'total_timeout' => :'Float',
116
- :'headers' => :'Array<Object>',
117
117
  :'connect_timeout' => :'Float',
118
- :'name' => :'String',
119
- :'download_concurrency' => :'Integer',
120
- :'pulp_labels' => :'Object',
121
118
  :'tls_validation' => :'Boolean',
119
+ :'pulp_labels' => :'Object',
122
120
  :'url' => :'String',
121
+ :'pulp_created' => :'DateTime',
122
+ :'download_concurrency' => :'Integer',
123
123
  :'metadata_only' => :'Boolean',
124
124
  :'git_ref' => :'String'
125
125
  }
@@ -128,13 +128,13 @@ module PulpAnsibleClient
128
128
  # List of attributes with nullable: true
129
129
  def self.openapi_nullable
130
130
  Set.new([
131
- :'rate_limit',
132
- :'max_retries',
133
- :'sock_connect_timeout',
134
- :'ca_cert',
135
- :'proxy_url',
136
131
  :'sock_read_timeout',
137
132
  :'client_cert',
133
+ :'proxy_url',
134
+ :'ca_cert',
135
+ :'sock_connect_timeout',
136
+ :'max_retries',
137
+ :'rate_limit',
138
138
  :'total_timeout',
139
139
  :'connect_timeout',
140
140
  :'download_concurrency',
@@ -156,80 +156,80 @@ module PulpAnsibleClient
156
156
  h[k.to_sym] = v
157
157
  }
158
158
 
159
- if attributes.key?(:'pulp_href')
160
- self.pulp_href = attributes[:'pulp_href']
159
+ if attributes.key?(:'name')
160
+ self.name = attributes[:'name']
161
161
  end
162
162
 
163
- if attributes.key?(:'pulp_created')
164
- self.pulp_created = attributes[:'pulp_created']
163
+ if attributes.key?(:'sock_read_timeout')
164
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
165
165
  end
166
166
 
167
- if attributes.key?(:'rate_limit')
168
- self.rate_limit = attributes[:'rate_limit']
167
+ if attributes.key?(:'client_cert')
168
+ self.client_cert = attributes[:'client_cert']
169
169
  end
170
170
 
171
- if attributes.key?(:'pulp_last_updated')
172
- self.pulp_last_updated = attributes[:'pulp_last_updated']
171
+ if attributes.key?(:'headers')
172
+ if (value = attributes[:'headers']).is_a?(Array)
173
+ self.headers = value
174
+ end
173
175
  end
174
176
 
175
- if attributes.key?(:'max_retries')
176
- self.max_retries = attributes[:'max_retries']
177
+ if attributes.key?(:'pulp_href')
178
+ self.pulp_href = attributes[:'pulp_href']
177
179
  end
178
180
 
179
- if attributes.key?(:'sock_connect_timeout')
180
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
181
+ if attributes.key?(:'proxy_url')
182
+ self.proxy_url = attributes[:'proxy_url']
183
+ end
184
+
185
+ if attributes.key?(:'pulp_last_updated')
186
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
181
187
  end
182
188
 
183
189
  if attributes.key?(:'ca_cert')
184
190
  self.ca_cert = attributes[:'ca_cert']
185
191
  end
186
192
 
187
- if attributes.key?(:'proxy_url')
188
- self.proxy_url = attributes[:'proxy_url']
193
+ if attributes.key?(:'sock_connect_timeout')
194
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
189
195
  end
190
196
 
191
- if attributes.key?(:'sock_read_timeout')
192
- self.sock_read_timeout = attributes[:'sock_read_timeout']
197
+ if attributes.key?(:'max_retries')
198
+ self.max_retries = attributes[:'max_retries']
193
199
  end
194
200
 
195
- if attributes.key?(:'client_cert')
196
- self.client_cert = attributes[:'client_cert']
201
+ if attributes.key?(:'rate_limit')
202
+ self.rate_limit = attributes[:'rate_limit']
197
203
  end
198
204
 
199
205
  if attributes.key?(:'total_timeout')
200
206
  self.total_timeout = attributes[:'total_timeout']
201
207
  end
202
208
 
203
- if attributes.key?(:'headers')
204
- if (value = attributes[:'headers']).is_a?(Array)
205
- self.headers = value
206
- end
207
- end
208
-
209
209
  if attributes.key?(:'connect_timeout')
210
210
  self.connect_timeout = attributes[:'connect_timeout']
211
211
  end
212
212
 
213
- if attributes.key?(:'name')
214
- self.name = attributes[:'name']
215
- end
216
-
217
- if attributes.key?(:'download_concurrency')
218
- self.download_concurrency = attributes[:'download_concurrency']
213
+ if attributes.key?(:'tls_validation')
214
+ self.tls_validation = attributes[:'tls_validation']
219
215
  end
220
216
 
221
217
  if attributes.key?(:'pulp_labels')
222
218
  self.pulp_labels = attributes[:'pulp_labels']
223
219
  end
224
220
 
225
- if attributes.key?(:'tls_validation')
226
- self.tls_validation = attributes[:'tls_validation']
227
- end
228
-
229
221
  if attributes.key?(:'url')
230
222
  self.url = attributes[:'url']
231
223
  end
232
224
 
225
+ if attributes.key?(:'pulp_created')
226
+ self.pulp_created = attributes[:'pulp_created']
227
+ end
228
+
229
+ if attributes.key?(:'download_concurrency')
230
+ self.download_concurrency = attributes[:'download_concurrency']
231
+ end
232
+
233
233
  if attributes.key?(:'metadata_only')
234
234
  self.metadata_only = attributes[:'metadata_only']
235
235
  end
@@ -243,14 +243,18 @@ module PulpAnsibleClient
243
243
  # @return Array for valid properties with the reasons
244
244
  def list_invalid_properties
245
245
  invalid_properties = Array.new
246
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
247
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
246
+ if @name.nil?
247
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
248
248
  end
249
249
 
250
250
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
251
251
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
252
252
  end
253
253
 
254
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
255
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
256
+ end
257
+
254
258
  if !@total_timeout.nil? && @total_timeout < 0.0
255
259
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
256
260
  end
@@ -259,44 +263,30 @@ module PulpAnsibleClient
259
263
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
260
264
  end
261
265
 
262
- if @name.nil?
263
- invalid_properties.push('invalid value for "name", name cannot be nil.')
266
+ if @url.nil?
267
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
264
268
  end
265
269
 
266
270
  if !@download_concurrency.nil? && @download_concurrency < 1
267
271
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
268
272
  end
269
273
 
270
- if @url.nil?
271
- invalid_properties.push('invalid value for "url", url cannot be nil.')
272
- end
273
-
274
274
  invalid_properties
275
275
  end
276
276
 
277
277
  # Check to see if the all the properties in the model are valid
278
278
  # @return true if the model is valid
279
279
  def valid?
280
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
+ return false if @name.nil?
281
281
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
282
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
282
283
  return false if !@total_timeout.nil? && @total_timeout < 0.0
283
284
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
284
- return false if @name.nil?
285
- return false if !@download_concurrency.nil? && @download_concurrency < 1
286
285
  return false if @url.nil?
286
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
287
287
  true
288
288
  end
289
289
 
290
- # Custom attribute writer method with validation
291
- # @param [Object] sock_connect_timeout Value to be assigned
292
- def sock_connect_timeout=(sock_connect_timeout)
293
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
294
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
295
- end
296
-
297
- @sock_connect_timeout = sock_connect_timeout
298
- end
299
-
300
290
  # Custom attribute writer method with validation
301
291
  # @param [Object] sock_read_timeout Value to be assigned
302
292
  def sock_read_timeout=(sock_read_timeout)
@@ -307,6 +297,16 @@ module PulpAnsibleClient
307
297
  @sock_read_timeout = sock_read_timeout
308
298
  end
309
299
 
300
+ # Custom attribute writer method with validation
301
+ # @param [Object] sock_connect_timeout Value to be assigned
302
+ def sock_connect_timeout=(sock_connect_timeout)
303
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
304
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
305
+ end
306
+
307
+ @sock_connect_timeout = sock_connect_timeout
308
+ end
309
+
310
310
  # Custom attribute writer method with validation
311
311
  # @param [Object] total_timeout Value to be assigned
312
312
  def total_timeout=(total_timeout)
@@ -342,24 +342,24 @@ module PulpAnsibleClient
342
342
  def ==(o)
343
343
  return true if self.equal?(o)
344
344
  self.class == o.class &&
345
+ name == o.name &&
346
+ sock_read_timeout == o.sock_read_timeout &&
347
+ client_cert == o.client_cert &&
348
+ headers == o.headers &&
345
349
  pulp_href == o.pulp_href &&
346
- pulp_created == o.pulp_created &&
347
- rate_limit == o.rate_limit &&
350
+ proxy_url == o.proxy_url &&
348
351
  pulp_last_updated == o.pulp_last_updated &&
349
- max_retries == o.max_retries &&
350
- sock_connect_timeout == o.sock_connect_timeout &&
351
352
  ca_cert == o.ca_cert &&
352
- proxy_url == o.proxy_url &&
353
- sock_read_timeout == o.sock_read_timeout &&
354
- client_cert == o.client_cert &&
353
+ sock_connect_timeout == o.sock_connect_timeout &&
354
+ max_retries == o.max_retries &&
355
+ rate_limit == o.rate_limit &&
355
356
  total_timeout == o.total_timeout &&
356
- headers == o.headers &&
357
357
  connect_timeout == o.connect_timeout &&
358
- name == o.name &&
359
- download_concurrency == o.download_concurrency &&
360
- pulp_labels == o.pulp_labels &&
361
358
  tls_validation == o.tls_validation &&
359
+ pulp_labels == o.pulp_labels &&
362
360
  url == o.url &&
361
+ pulp_created == o.pulp_created &&
362
+ download_concurrency == o.download_concurrency &&
363
363
  metadata_only == o.metadata_only &&
364
364
  git_ref == o.git_ref
365
365
  end
@@ -373,7 +373,7 @@ module PulpAnsibleClient
373
373
  # Calculates hash code according to all attributes.
374
374
  # @return [Integer] Hash code
375
375
  def hash
376
- [pulp_href, pulp_created, rate_limit, pulp_last_updated, max_retries, sock_connect_timeout, ca_cert, proxy_url, sock_read_timeout, client_cert, total_timeout, headers, connect_timeout, name, download_concurrency, pulp_labels, tls_validation, url, metadata_only, git_ref].hash
376
+ [name, sock_read_timeout, client_cert, headers, pulp_href, proxy_url, pulp_last_updated, ca_cert, sock_connect_timeout, max_retries, rate_limit, total_timeout, connect_timeout, tls_validation, pulp_labels, url, pulp_created, download_concurrency, metadata_only, git_ref].hash
377
377
  end
378
378
 
379
379
  # Builds the object from hash
@@ -94,14 +94,26 @@ module PulpAnsibleClient
94
94
  invalid_properties.push('invalid value for "version", version cannot be nil.')
95
95
  end
96
96
 
97
+ if @version.to_s.length < 1
98
+ invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
99
+ end
100
+
97
101
  if @name.nil?
98
102
  invalid_properties.push('invalid value for "name", name cannot be nil.')
99
103
  end
100
104
 
105
+ if @name.to_s.length < 1
106
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
107
+ end
108
+
101
109
  if @namespace.nil?
102
110
  invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
103
111
  end
104
112
 
113
+ if @namespace.to_s.length < 1
114
+ invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
115
+ end
116
+
105
117
  invalid_properties
106
118
  end
107
119
 
@@ -110,11 +122,56 @@ module PulpAnsibleClient
110
122
  def valid?
111
123
  return false if @artifact.nil?
112
124
  return false if @version.nil?
125
+ return false if @version.to_s.length < 1
113
126
  return false if @name.nil?
127
+ return false if @name.to_s.length < 1
114
128
  return false if @namespace.nil?
129
+ return false if @namespace.to_s.length < 1
115
130
  true
116
131
  end
117
132
 
133
+ # Custom attribute writer method with validation
134
+ # @param [Object] version Value to be assigned
135
+ def version=(version)
136
+ if version.nil?
137
+ fail ArgumentError, 'version cannot be nil'
138
+ end
139
+
140
+ if version.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @version = version
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] name Value to be assigned
149
+ def name=(name)
150
+ if name.nil?
151
+ fail ArgumentError, 'name cannot be nil'
152
+ end
153
+
154
+ if name.to_s.length < 1
155
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
156
+ end
157
+
158
+ @name = name
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] namespace Value to be assigned
163
+ def namespace=(namespace)
164
+ if namespace.nil?
165
+ fail ArgumentError, 'namespace cannot be nil'
166
+ end
167
+
168
+ if namespace.to_s.length < 1
169
+ fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
170
+ end
171
+
172
+ @namespace = namespace
173
+ end
174
+
118
175
  # Checks equality by comparing each attribute.
119
176
  # @param [Object] Object to be compared
120
177
  def ==(o)